2018-09-18 02:37:04 +00:00
|
|
|
<?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 OrderRequestReject extends Mailable
|
|
|
|
{
|
|
|
|
use Queueable, SerializesModels;
|
|
|
|
|
2021-09-29 06:20:22 +00:00
|
|
|
public Service $service;
|
|
|
|
public string $reason;
|
2018-09-18 02:37:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new message instance.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2021-09-29 06:20:22 +00:00
|
|
|
public function __construct(Service $o,string $reason)
|
2018-09-18 02:37:04 +00:00
|
|
|
{
|
|
|
|
$this->service = $o;
|
|
|
|
$this->reason = $reason;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Build the message.
|
|
|
|
*
|
|
|
|
* @return $this
|
|
|
|
*/
|
|
|
|
public function build()
|
|
|
|
{
|
|
|
|
return $this
|
|
|
|
->markdown('email.admin.order.reject')
|
|
|
|
->subject(sprintf('Your order: #%s was rejected',$this->service->id))
|
|
|
|
->with(['site'=>$this->service->site]);
|
|
|
|
}
|
|
|
|
}
|