2024-12-24 15:12:24 +07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Mail;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
|
use Illuminate\Mail\Mailable;
|
|
|
|
|
use Illuminate\Mail\Mailables\Content;
|
|
|
|
|
use Illuminate\Mail\Mailables\Envelope;
|
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
|
|
|
|
class ExpenseRejected extends Mailable
|
|
|
|
|
{
|
|
|
|
|
use Queueable, SerializesModels;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a new message instance.
|
|
|
|
|
*/
|
|
|
|
|
public function __construct(
|
|
|
|
|
protected string $name,
|
|
|
|
|
protected string $expense_number,
|
|
|
|
|
protected string $tanggal,
|
|
|
|
|
protected int $total,
|
2025-01-09 13:22:56 +07:00
|
|
|
protected string $url,
|
2024-12-24 15:12:24 +07:00
|
|
|
) {}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the message envelope.
|
|
|
|
|
*/
|
|
|
|
|
public function envelope(): Envelope
|
|
|
|
|
{
|
|
|
|
|
return new Envelope(
|
|
|
|
|
subject: 'Expense Rejected',
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the message content definition.
|
|
|
|
|
*/
|
|
|
|
|
public function content(): Content
|
|
|
|
|
{
|
|
|
|
|
return new Content(
|
|
|
|
|
view: 'mail.rejected',
|
|
|
|
|
with: [
|
|
|
|
|
'name' => $this->name,
|
|
|
|
|
'expense_number' => $this->expense_number,
|
|
|
|
|
'tanggal' => $this->tanggal,
|
|
|
|
|
'total' => $this->total,
|
2025-01-09 13:22:56 +07:00
|
|
|
'url' => $this->url,
|
2024-12-24 15:12:24 +07:00
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the attachments for the message.
|
|
|
|
|
*
|
|
|
|
|
* @return array<int, \Illuminate\Mail\Mailables\Attachment>
|
|
|
|
|
*/
|
|
|
|
|
public function attachments(): array
|
|
|
|
|
{
|
|
|
|
|
return [];
|
|
|
|
|
}
|
|
|
|
|
}
|