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
775 B
PHTML
39 lines
775 B
PHTML
2 years ago
|
<?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 DocumentShare 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.share', [
|
||
|
'no_doc' => $this->doc->no_doc,
|
||
|
'end_date' => $this->doc->end_date->format('d-m-Y'),
|
||
|
'url' => route('docs.show', $this->doc)
|
||
|
]);
|
||
|
}
|
||
|
}
|