37 lines
849 B
PHP
37 lines
849 B
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use App\Models\Application;
|
|
use App\Models\StaffAssignment;
|
|
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 KtmCreatedApplicantMail extends Mailable implements ShouldQueue
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
public function __construct(
|
|
public Application $application,
|
|
public StaffAssignment $ktmAssignment,
|
|
) {}
|
|
|
|
public function envelope(): Envelope
|
|
{
|
|
return new Envelope(
|
|
subject: 'Makluman Pendaftaran KP oleh KTM',
|
|
);
|
|
}
|
|
|
|
public function content(): Content
|
|
{
|
|
return new Content(
|
|
markdown: 'emails.ktm.created-applicant',
|
|
);
|
|
}
|
|
}
|