%PDF- %PDF-
Direktori : /home/forge/api-takeaseat.eco-n-tech.co.uk/app/Mail/Clients/ |
Current File : //home/forge/api-takeaseat.eco-n-tech.co.uk/app/Mail/Clients/NewBooking.php |
<?php namespace App\Mail\Clients; use App\Models\User; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; class NewBooking extends Mailable implements ShouldQueue { use Queueable, SerializesModels; /** * @var User */ protected $user; /** * @var User */ protected $therapist; /** * @var array */ protected $bookings; /** * Create a new message instance. * * @return void */ public function __construct(User $user, User $therapist, array $bookings) { $this->user = $user; $this->therapist = $therapist; $this->bookings = $bookings; } /** * Build the message. * * @return $this */ public function build() { return $this->subject('Your bookings') ->markdown('emails.clients.bookings.new', [ 'first_name' => $this->user->first_name, 'bookings' => $this->bookings, 'therapist_name' => $this->therapist->full_name, 'therapist_email' => $this->therapist->email, 'therapist_phone' => $this->therapist->phone, 'url' => config('app.frontend_url').'/bookings' ]); } }