%PDF- %PDF-
Direktori : /home/forge/api-takeaseat.eco-n-tech.co.uk/app/Mail/Therapist/ |
Current File : //home/forge/api-takeaseat.eco-n-tech.co.uk/app/Mail/Therapist/NewBooking.php |
<?php namespace App\Mail\Therapist; 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 { use Queueable, SerializesModels; /** * @var User */ protected $user; /** * @var User */ protected $client; /** * @var array */ protected $bookings; /** * Create a new message instance. * * @return void */ public function __construct(User $user, User $client, array $bookings) { $this->user = $user; $this->client = $client; $this->bookings = $bookings; } /** * Build the message. * * @return $this */ public function build() { return $this->subject('Your have a new booking!') ->markdown('emails.therapist.bookings.new', [ 'first_name' => $this->user->first_name, 'bookings' => $this->bookings, 'client_name' => $this->client->full_name, 'client_email' => $this->client->email, 'client_phone' => $this->client->phone, 'url' => config('app.frontend_url').'/therapist/bookings' ]); } }