Spaces:
Running
Running
File size: 970 Bytes
0c117c4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | <?php
namespace App\Mails;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Carbon\Carbon;
class BookingMail extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return void
*/
private $booking;
private $payment;
private $title;
public function __construct($booking,$payment,$title)
{
$this->title=$title;
$this->booking=$booking;
$this->payment=$payment;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
// tự code header vào footer và tự css
return $this->markdown('emails.bookings.detail_all')
->subject($this->title)
->with([
'booking' => $this->booking,
'payment' => $this->payment,
]);
}
}
|