@extends('home/layouts/master') @section('title', 'Traveler Profile') @section('style') @endsection @section('content')
@if($client->profile_path) Profile @else @endif

{{ $client->name }} Member

{{ $client->email }}   •   {{ $client->full_phone }}
@if($client->city) {{ $client->city }}, {{ $client->country_name }} @endif

IP Address
{{ $client->ip ?? 'N/A' }}
Login Provider
{{ $client->login_provider ?? 'local' }}
Joined
{{ $client->created_at->format('M d, Y') }}
Recent Bookings
@forelse($client->bookings as $booking) @empty @endforelse
# Order ID Airline Type Status Price Created Action
{{ $loop->iteration }} {{ $booking->order_id }}
@php $airlineName = $booking->airline ?? $booking->airline_code; $logoPath = 'assets/images/logos/' . strtolower($airlineName) . '.png'; @endphp Logo {{ $airlineName }}
{{ $booking->type }} @php $badgeClass = match($booking->status) { 'confirmed', 'issued' => 'bg-success', 'pending' => 'bg-warning text-dark', 'cancelled', 'cancel' => 'bg-danger', 'expired' => 'bg-secondary', default => 'bg-primary' }; @endphp {{ ucfirst($booking->status) }} {{ $booking->total_price }} {{ $booking->created_at->format('M d, Y') }}
No bookings found.
Passengers
@forelse($client->passengers as $passenger) @empty @endforelse
# Name Type Nationality Passport / CNIC Expiry DOB Action
{{ $loop->iteration }} {{ $passenger->title }} {{ $passenger->given_name }} {{ $passenger->surname }} {{ $passenger->type }} {{ $passenger->nationality }} {{ $passenger->passport_no }} {{ $passenger->passport_exp ? \Carbon\Carbon::parse($passenger->passport_exp)->format('M d, Y') : '-' }} {{ \Carbon\Carbon::parse($passenger->dob)->format('M d, Y') }}
No passengers found.
Total Bookings

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

Lifetime
Total Passengers

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

Saved profiles
Actions
Notes

Welcome to your dashboard. Here you can track all your flight bookings and manage your passenger details.

@section('script') @endsection @endsection