@extends('layouts.business') @section('title', 'Client Details') @section('breadcrumb_title', 'Clients') @section('breadcrumb_title_route', route('business.clients.index')) @section('breadcrumb_sub_title', 'Client View') @section('page_title', 'Client Details') @section('content')
{{ $client->email }}
{{ $client->phone }}
Total Bookings
Total Spent
| Vehicle | Pickup Date | Return Date | Location | Total Price | Status |
|---|---|---|---|---|---|
{{ $booking->vehicle ? $booking->vehicle->vehicle_name : 'N/A' }}{{ $booking->vehicle ? $booking->vehicle->vehicle_no : '' }} |
{{ $booking->pickup_date ? $booking->pickup_date->format('M d, Y') : '-' }} | {{ $booking->return_date ? $booking->return_date->format('M d, Y') : '-' }} | {{ $booking->location ?? '-' }} | Rs. {{ number_format($booking->total_price, 2) }} | @php $statusValue = (int)$booking->status; $statusLabel = ''; $statusClass = ''; switch($statusValue) { case 0: $statusLabel = 'Pending'; $statusClass = 'warning'; break; case 1: $statusLabel = 'Confirmed'; $statusClass = 'success'; break; case 2: $statusLabel = 'Handover to Client'; $statusClass = 'info'; break; case 3: $statusLabel = 'Return by Client'; $statusClass = 'primary'; break; case 4: $statusLabel = 'Rejected'; $statusClass = 'danger'; break; default: $statusLabel = 'Unknown'; $statusClass = 'secondary'; break; } @endphp {{ $statusLabel }} |
No bookings found for this client.