@extends('layouts.shop') @section('title', 'My Profile - Delivery Agent') @section('content')
@include('delivery.partials.sidebar')

My Profile

@csrf
@if($user->profile_photo_path) {{ $user->name }} @else
@endif

Bank Details

Contact Information

Alternate Phone

{{ $agent->alternate_phone ?? 'N/A' }}

Date of Birth

{{ $agent->dob ? $agent->dob->format('M d, Y') : 'N/A' }}

Gender

{{ $agent->gender ?? 'N/A' }}

Full Address

{{ $agent->address ?? 'N/A' }}

Registered Vehicles

@if($agent->vehicles->count() > 0)
@foreach($agent->vehicles as $vehicle)

{{ $vehicle->vehicle_number }}

{{ $vehicle->type }}

@if($vehicle->model)

{{ $vehicle->model }}

@endif
@endforeach
@else

No vehicles registered.

@endif

KYC Documents

@if($agent->documents->count() > 0)
@foreach($agent->documents as $doc)
@if($doc->image_path) {{ $doc->type }} @else
@endif

{{ ucfirst(str_replace('_', ' ', $doc->type)) }}

{{ $doc->number ?? 'No ID Number' }}

View Full Image
@endforeach
@else

No documents found.

@endif
@endsection