@extends('emails.layouts.emailTemplate.master') @section('title', 'Booking ' . ucfirst($newStatus) . ' - ' . $booking->booking_code) @section('content')
Booking {{ ucfirst($newStatus) }}Dear {{ $booking->user->fullname }}, @if($newStatus == 'confirmed') Your warehouse booking #{{ $booking->booking_code }} has been confirmed! @elseif($newStatus == 'active') Your warehouse booking #{{ $booking->booking_code }} is now active and your rental period has started. @elseif($newStatus == 'completed') Your warehouse booking #{{ $booking->booking_code }} has been marked as completed. @elseif($newStatus == 'cancelled') Your warehouse booking #{{ $booking->booking_code }} has been cancelled. @elseif($newStatus == 'expired') Your warehouse booking #{{ $booking->booking_code }} has expired. @else The status of your warehouse booking #{{ $booking->booking_code }} has been updated to {{ ucfirst($newStatus) }}. @endif
{{ ucfirst($newStatus) }}
@include('emails.partials.booking-details', ['booking' => $booking, 'forAdmin' => false])
@if($adminNote)
@if($newStatus == 'cancelled' || $newStatus == 'expired') Reason: @else Admin Note: @endif
@endif
{{ nl2br(e($adminNote)) }} @if($newStatus == 'confirmed' || $newStatus == 'active') Thank you for choosing us! @elseif($newStatus == 'completed') We hope you had a great experience! @elseif($newStatus == 'cancelled' || $newStatus == 'expired') If you have any questions, please contact support. @endif
Best regards, |