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

Agency Profile

@include('agent.header')
{{-- Toast Notification --}} @if(session()->has('success'))
{{ session()->get('success') }}
@endif @if(session()->has('error'))
{{ session()->get('error') }}
@endif @php $uploadedTypes = $documents ? $documents->pluck('document_type')->toArray() : []; $mandatoryDocs = [ 'company_registration' => 'Company Registration', 'gst_proof' => 'GST Document', 'id_proof' => 'ID Proof', 'tax_proof' => 'Tax / PAN Proof', 'passport' => 'Passport', ]; @endphp
Important Note

Mandatory: Please upload the following documents before proceeding.

@foreach($mandatoryDocs as $type => $label)
{{ $label }}
@endforeach

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 only — NO delete for agent --}} View
@else

No documents uploaded yet.

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