39 lines
817 B
PHP
39 lines
817 B
PHP
<?php
|
|
|
|
namespace Modules\Quotation\Emails;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
class QuotationMail extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
public $quotation;
|
|
/**
|
|
* Create a new message instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct($quotation)
|
|
{
|
|
$this->quotation = $quotation;
|
|
}
|
|
|
|
/**
|
|
* Build the message.
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function build()
|
|
{
|
|
return $this->subject('Quotation - ' . settings()->company_name)
|
|
->view('quotation::emails.quotation', [
|
|
'settings' => settings(),
|
|
'customer' => $this->quotation->customer
|
|
]);
|
|
}
|
|
}
|