@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 Profile
{{ $client->full_name }}
{{ $client->full_name }}

{{ $client->email }}

{{ $client->phone }}


{{ $client->bookings->count() }}

Total Bookings

Rs. {{ number_format($client->bookings->sum('total_price'), 2) }}

Total Spent

Client Information
  • Full Name
    {{ $client->full_name }}
  • Email
    {{ $client->email }}
  • Phone
    {{ $client->phone }}
  • Member Since
    {{ $client->created_at->format('M d, Y') }}
Booking History ({{ $client->bookings->count() }})
@if($client->bookings && $client->bookings->count() > 0)
@foreach($client->bookings as $booking) @endforeach
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 }}
@else

No bookings found for this client.

@endif
@endsection @section('scripts') @endsection