42 lines
739 B
PHP
42 lines
739 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Mail;
|
||
|
|
||
|
use Illuminate\Bus\Queueable;
|
||
|
use Illuminate\Mail\Mailable;
|
||
|
use Illuminate\Queue\SerializesModels;
|
||
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||
|
|
||
|
use App\Models\Service;
|
||
|
|
||
|
class OrderRequestApprove extends Mailable
|
||
|
{
|
||
|
use Queueable, SerializesModels;
|
||
|
|
||
|
public $service;
|
||
|
public $notes;
|
||
|
|
||
|
/**
|
||
|
* Create a new message instance.
|
||
|
*
|
||
|
* @param Service $o
|
||
|
* @param string $notes
|
||
|
*/
|
||
|
public function __construct(Service $o,$notes='')
|
||
|
{
|
||
|
$this->service = $o;
|
||
|
$this->notes = $notes;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Build the message.
|
||
|
*
|
||
|
* @return $this
|
||
|
*/
|
||
|
public function build()
|
||
|
{
|
||
|
return $this
|
||
|
->markdown('email.admin.order.approve')
|
||
|
->with(['site'=>config('SITE_SETUP')]);
|
||
|
}
|
||
|
}
|