|
@php
$statusColors = [
0 => ['bg' => '#FEF3C7', 'text' => '#92400E'], // PENDING - Yellow
1 => ['bg' => '#DBEAFE', 'text' => '#1E40AF'], // CONFIRMED - Blue
2 => ['bg' => '#D1FAE5', 'text' => '#065F46'], // HANDOVER - Green (Success)
3 => ['bg' => '#BFDBFE', 'text' => '#1E3A8A'], // RETURN - Blue
4 => ['bg' => '#FEE2E2', 'text' => '#991B1B'], // REJECTED - Red
];
$statusMessages = [
0 => 'Booking Request Received',
1 => 'Booking Confirmed Successfully',
2 => 'Vehicle Handed Over to Customer',
3 => 'Vehicle Returned Successfully',
4 => 'Booking Request Declined',
];
$color = $statusColors[$status] ?? ['bg' => '#E5E7EB', 'text' => '#374151'];
$message = $statusMessages[$status] ?? 'Booking Status Updated';
@endphp
{{ $message }}
|
|
Hello {{ $booking->client->full_name ?? 'Valued Customer' }},
|
|
@if($status === 0)
Thank you for your booking request with Ibson Eco Rental. We have received your details and will review them shortly.
@elseif($status === 1)
Great news! Your vehicle booking with Ibson Eco Rental has been confirmed.
@elseif($status === 2)
Vehicle handover completed successfully! Your journey begins now with Ibson Eco Rental.
@elseif($status === 3)
We have successfully received your vehicle return. Thank you for choosing Ibson Eco Rental!
@elseif($status === 4)
We regret to inform you that your booking request cannot be processed at this time.
@endif
|
@if($status === 1)
|
We are excited to serve you and look forward to providing you with an excellent rental experience.
|
@elseif($status === 2)
|
Drive safely and enjoy your trip! We wish you a wonderful experience.
|
@endif
|
Your Booking Details
|
|
Booking Reference No:
|
|
{{ $booking->client_ref ?? 'N/A' }}
|
|
Vehicle:
|
|
{{ $booking->vehicle->vehicle_name ?? 'N/A' }}
|
|
{{ $booking->vehicle->vehicle_no ?? 'N/A' }}
|
|
Pickup Date & Time:
|
|
{{ \Carbon\Carbon::parse($booking->pickup_date)->format('F d, Y \a\t g:i A') }}
|
|
Return Date & Time:
|
|
{{ \Carbon\Carbon::parse($booking->return_date)->format('F d, Y \a\t g:i A') }}
|
|
Pickup Location:
|
|
{{ $booking->location ?? 'N/A' }}
|
|
Total Price:
|
|
Rs. {{ number_format($booking->total_price ?? 0, 2) }}
|
@if($booking->special_requests)
|
Special Requests:
|
|
{{ $booking->special_requests }}
|
@endif
|
@if($status === 0)
⏳ Status: Pending Review
We will review your booking request and get back to you shortly. You will receive a confirmation email once your booking is approved.
|
@elseif($status === 1)
✓ Next Steps:
• Please arrive at the pickup location on time
• Bring a valid ID and driving license
• Contact us if you need to make any changes
|
@elseif($status === 2)
🚗 Safe Travel Tips:
• Follow all traffic rules and speed limits
• Keep the vehicle documents with you at all times
• Contact us immediately in case of any issues
• Have a safe and pleasant journey!
|
@elseif($status === 3)
✓ Return Completed
Thank you for returning the vehicle in good condition. We hope you had a great experience and look forward to serving you again!
|
@elseif($status === 4)
⚠️ Important Information
Unfortunately, we cannot proceed with your booking at this time. This may be due to vehicle unavailability or other constraints. Please contact us if you have any questions.
|
@endif
|
If you have any questions or need assistance, please don't hesitate to contact our support team.
|