You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
789 B
PHP
39 lines
789 B
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use App\Models\Document;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class DocumentNotification extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
/**
|
|
* Create a new message instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct(
|
|
public Document $doc
|
|
) {
|
|
}
|
|
|
|
/**
|
|
* Build the message.
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function build()
|
|
{
|
|
return $this->markdown('emails.document.notification', [
|
|
'no_doc' => $this->doc->no_doc,
|
|
'end_date' => $this->doc->end_date->format('d-m-Y'),
|
|
'url' => route('docs.show', $this->doc)
|
|
]);
|
|
}
|
|
}
|