@extends('layouts.app') @section('content')

Agency Profile

@include('admin.agency.agency_header')
{{-- Toast Notification --}} @if(session()->has('success'))
{{ session()->get('success') }}
@endif @if(session()->has('error'))
{{ session()->get('error') }}
@endif {{-- ══════════════════════════════════════════════ Mandatory Documents Warning Banner ══════════════════════════════════════════════ --}} @if(!empty($mandatoryDocs))
Important Note

Mandatory: Please upload the following documents before proceeding.

@foreach($mandatoryDocs as $type => $label) @php $labelText = is_array($label) ? ($label['label'] ?? $type) : $label; @endphp
{{ $labelText }}
@endforeach
@endif {{-- ══════════════════════════════════════════════ End Mandatory Documents Warning Banner ══════════════════════════════════════════════ --}}

Agency Documents

@if($documents && $documents->count() > 0)
@foreach($documents as $doc) @endforeach
# Document Name Type Status Uploaded On Action
{{ $loop->iteration }}
{{ $doc->document_name ?? basename($doc->file_path) }} @if(array_key_exists($doc->document_type, $mandatoryDocs)) Mandatory @endif
{{ strtoupper(str_replace('_', ' ', $doc->document_type ?? 'Document')) }} Uploaded {{ $doc->created_at->format('d M Y') }} View
@csrf @method('DELETE')
@else

No documents uploaded yet.

@endif
@endsection @section('scripts') @endsection