{{-- Company Information --}}
1. Company Information

{!! canEmpty($dealer->company_name) !!}

{!! canEmpty($dealer->registration_number) !!}

{!! canEmpty($dealer->tax_identification_number) !!}

@if ($dealer->addresses->isNotEmpty()) @php $addr = $dealer->addresses->first(); @endphp

{!! canEmpty($addr->country) !!}

{!! canEmpty($addr->state) !!}

{!! canEmpty($addr->city) !!}

{!! canEmpty($addr->street) !!}

{!! canEmpty($addr->postal_code) !!}

@endif

{!! canEmpty(optional($dealer->user)->phone) !!}

{!! canEmpty(optional($dealer->user)->email) !!}


{{-- Representative --}}
2. Authorized Representative Information
@if ($dealer->representatives->isNotEmpty()) @php $rep = $dealer->representatives->first(); @endphp

{!! canEmpty($rep->full_name) !!}

{!! canEmpty($rep->nic_number) !!}

{!! canEmpty($rep->position) !!}

{!! canEmpty($rep->contact_phone) !!}

@endif
{{-- Bank --}}
3. Bank & Financial Information
@if ($dealer->finances->isNotEmpty()) @php $finance = $dealer->finances->first(); @endphp

{!! canEmpty($finance->name) !!}

{!! canEmpty($finance->account_holder_name) !!}

{!! canEmpty($finance->account_number) !!}

@endif
{{-- Status & Timestamps --}}

{!! $dealer->user->getStatusBadge() !!}

{!! createdAt($dealer, isHumanTime: false) !!}

{!! updatedAt($dealer, isHumanTime: false) !!}


{{-- Listings --}}
Dealer Listings
@if ($dealer->user && $dealer->user->listings->isNotEmpty())
@foreach ($dealer->user->listings as $listing) @endforeach
Title Price Location Type Status Created
{{ $listing->title }} ${{ number_format($listing->price, 2) }} {{ $listing->location }} {{ ucfirst($listing->type) }} {!! $listing->status->badge() !!} {{ $listing->created_at->format('d M Y') }}
@else

No listings found for this dealer.

@endif