@extends('admin.layouts.master') @section('title', 'Client Details') @section('content')

{{ $client->name }}

← Back to List
Profile

{{ $client->title ?? 'Mrs' }} {{ $client->name }}

{{ $client->email }}
{{ $client->is_active ? 'Active' : 'Inactive' }}
Phone

{{ $client->full_phone }}

Email

{{ $client->email ?? 'N/A' }}

IP Address

{{ $client->ip ?? 'N/A' }}

Login Provider

{{ $client->login_provider ?? 'Manual' }}

Country

{{ $client->country_name ?? 'N/A' }} ({{ $client->country_code ?? 'N/A' }})

City

{{ $client->city ?? 'N/A' }} ({{ $client->city_code ?? 'N/A' }})

Total Bookings

{{ $totalBookings }}

Total Passengers

{{ $totalPassengers }}

Total Revenue

PKR {{ number_format($totalRevenue, 2) }}

Recent Bookings
@forelse ($client->bookings->take(10) as $booking) @empty @endforelse
# Order ID Airline Type Status Price Created Agent
{{ $loop->iteration }} {{ $booking->order_id }} {{ $booking->airline }} {{ $booking->type }} {{ strtoupper($booking->status) }} {{ $booking->total_tax_price }} {{ $booking->created_at->format('M d, Y') }} {{ optional($booking->agent)->name ?? 'Unassigned' }}
No bookings found.
Passengers
@forelse ($client->passengers as $passenger) @empty @endforelse
# Name Type Nationality Passport / Cnic Expiry Date of Birth
{{ $loop->iteration }} {{ $passenger->title }} {{ $passenger->given_name }} {{ $passenger->surname }} {{ strtoupper($passenger->type) }} {{ $passenger->nationality }} {{ $passenger->passport_no }} {{ $passenger->passport_exp?->format('M d, Y') ?? 'N/A' }} {{ $passenger->dob?->format('M d, Y') ?? 'N/A' }}
No passengers found.
@endsection @section('script') @endsection