migrate to gtea from bistbucket
This commit is contained in:
26
public/restaurant/app/Mail/OrderInvoiceMail.php
Normal file
26
public/restaurant/app/Mail/OrderInvoiceMail.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Modules\Restaurant\Models\Order;
|
||||
|
||||
class OrderInvoiceMail extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
public Order $order;
|
||||
|
||||
public function __construct(Order $order)
|
||||
{
|
||||
$this->order = $order;
|
||||
}
|
||||
|
||||
public function build()
|
||||
{
|
||||
return $this->subject("Your Invoice for Order #{$this->order?->order_number}")
|
||||
->markdown('emails.orders.invoice');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user