%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/forge/api-takeaseat.eco-n-tech.co.uk/app/Mail/Therapist/
Upload File :
Create Path :
Current File : //home/forge/api-takeaseat.eco-n-tech.co.uk/app/Mail/Therapist/CancelledBooking.php

<?php

namespace App\Mail\Therapist;

use App\Models\Booking;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;

class CancelledBooking extends Mailable
{
    use Queueable, SerializesModels;

    /**
     * @var Booking
     */
    protected $booking;

    /**
     * Create a new message instance.
     *
     * @return void
     */
    public function __construct(Booking $booking)
    {
        $this->booking = $booking;
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        return $this->subject('Your booking with has been cancelled')
            ->markdown('emails.therapist.bookings.cancelled', [
                'first_name' => $this->booking->therapist->user->first_name,
                'client_name' => $this->booking->user->full_name,
                'booking_date' => $this->booking->start_date->format('d/m/Y')
            ]);
    }
}

Zerion Mini Shell 1.0