Added command line send/reject for orders
This commit is contained in:
@@ -50,6 +50,6 @@ class OrderRequestApprove extends Mailable
|
||||
return $this
|
||||
->markdown('email.admin.order.approve')
|
||||
->subject($subject)
|
||||
->with(['site'=>config('SITE_SETUP')]);
|
||||
->with(['site'=>$this->service->site]);
|
||||
}
|
||||
}
|
42
app/Mail/OrderRequestReject.php
Normal file
42
app/Mail/OrderRequestReject.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?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;
|
||||
|
||||
public $service;
|
||||
public $reason;
|
||||
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(Service $o,$reason)
|
||||
{
|
||||
$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]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user