{{-- Header with Gradient --}}

{{ $agencyOutreach->agency_name }}

Agency lead details and activity

Edit
@csrf @method('DELETE')
{{-- Status and Priority Badges --}}
{{ $agencyOutreach->status_label }} {{ ucfirst($agencyOutreach->priority) }} Priority @if($agencyOutreach->is_flynas_registered) Flynas Registered @endif
{{-- Main Content --}}
{{-- Agency Information --}}

Agency Information

{{ $agencyOutreach->agency_name }}

{{ $agencyOutreach->contact_person ?? 'N/A' }}

{{ $agencyOutreach->iata_code ?? 'N/A' }}

{{ $agencyOutreach->county ?? 'N/A' }}

{{ $agencyOutreach->location ?? 'N/A' }}

{{-- Contact Information --}}

Contact Information

@if($agencyOutreach->secondary_phone) @endif @if($agencyOutreach->email) @endif
{{-- Call History --}}

Call History

{{-- Call Statistics --}}

{{ $totalCalls }}

Total Calls

{{ $pickedCalls }}

Picked

{{ $missedCalls }}

Missed

{{ $successRate }}%

Success Rate

{{-- Call Log List --}} @if($agencyOutreach->callLogs->count() > 0)
@foreach($agencyOutreach->callLogs as $call)
{{ ucfirst(str_replace('_', ' ', $call->call_status)) }} {{ $call->called_at->format('M d, Y - h:i A') }}

Called by: {{ $call->user->name }}

@if($call->notes)

{{ $call->notes }}

@endif
@if($call->call_duration)

{{ gmdate('i:s', $call->call_duration) }}

Duration

@endif
@endforeach
@else

No call history yet

@endif
{{-- Notes --}} @if($agencyOutreach->notes)

Notes

{{ $agencyOutreach->notes }}

@endif {{-- Rejection Reason --}} @if($agencyOutreach->rejection_reason)

Rejection Reason

{{ $agencyOutreach->rejection_reason }}

@endif
{{-- Sidebar --}}
{{-- Management Info --}}

Management

{{ $agencyOutreach->assignedAgent->name ?? 'Not assigned' }}

{{ $agencyOutreach->createdByAgent->name }}

{{ $agencyOutreach->created_at->format('M d, Y - h:i A') }}

@if($agencyOutreach->follow_up_date)

{{ $agencyOutreach->follow_up_date->format('M d, Y - h:i A') }} @if($agencyOutreach->follow_up_date->isPast()) (Overdue) @else ({{ $agencyOutreach->follow_up_date->diffForHumans() }}) @endif

@endif

{{ $agencyOutreach->last_contact_date ? $agencyOutreach->last_contact_date->format('M d, Y - h:i A') : 'Not contacted yet' }}

{{ $agencyOutreach->call_attempts }}

{{-- Onboarding Info --}} @if($agencyOutreach->status === 'onboarded')

Onboarding Details

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

@if($agencyOutreach->bookingChannel)

{{ $agencyOutreach->bookingChannel->name }}

@endif
@endif {{-- Quick Actions --}}

Quick Actions

Call Primary Number @if($agencyOutreach->secondary_phone) Call Secondary Number @endif @if($agencyOutreach->email) Send Email @endif