%PDF- %PDF-
Direktori : /home/forge/api-takeaseat.eco-n-tech.co.uk/app/Notifications/Client/ |
Current File : //home/forge/api-takeaseat.eco-n-tech.co.uk/app/Notifications/Client/CancelledBooking.php |
<?php namespace App\Notifications\Client; use App\Models\Booking; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Illuminate\Notifications\Messages\NexmoMessage; class CancelledBooking extends Notification implements ShouldQueue { use Queueable; /** * @var Booking $booking */ protected $booking; /** * Create a new notification instance. * * @param Booking $booking */ public function __construct(Booking $booking) { $this->booking = $booking; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['nexmo']; } /** * Get the Vonage / SMS representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\NexmoMessage */ public function toNexmo($notifiable) { return (new NexmoMessage) ->content('Your booking with '.$this->booking->therapist->user->full_name.' on '.$this->booking->start_date.' has been cancelled. Any refunds due will appear in your account within seven days. Log in to your account to book another session www.takeaseat.co.uk'); } }