Files

55 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2025-10-22 11:58:18 +02:00
<?php
namespace App\Mail;
use App\Models\Invoice;
2025-12-05 09:52:11 +01:00
use App\Models\Setting;
2025-10-22 11:58:18 +02:00
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Address;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Queue\SerializesModels;
class Reminder extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*/
2025-10-29 12:07:51 +01:00
public function __construct(public array $invoice) {}
2025-10-22 11:58:18 +02:00
/**
* Get the message envelope.
*/
public function envelope(): Envelope
{
return new Envelope(
2025-12-05 09:52:11 +01:00
from: new Address(Setting::get('company.email'), Setting::get('company.name')),
2025-10-22 11:58:18 +02:00
subject: 'Zahlungserinnerung',
);
}
/**
* Get the message content definition.
*/
public function content(): Content
{
return new Content(
2025-10-29 12:07:51 +01:00
view: 'mail.invoices.reminder',
2025-10-22 11:58:18 +02:00
);
}
/**
* Get the attachments for the message.
*
* @return array<int, \Illuminate\Mail\Mailables\Attachment>
*/
public function attachments(): array
{
return [];
}
}