@lang('profile.documents_information.edit.title')
@csrf @method('put') @php $fileFields = [ 'bank_swift' => 'SWIFT / Branch Code', 'business_license' => 'Business License', 'tax_certificate' => 'Tax Certificate', 'bank_statement' => 'Bank Statement', 'company_certificate' => 'Company Constitution / Certificate', ]; @endphp
@foreach ($fileFields as $field => $label) @php $doc = $dealer->media->firstWhere('type', $field); @endphp
{{ $label }}
@if ($doc)

File: {{ $doc->original_name ?? 'Unnamed' }}

Type: {{ strtoupper(pathinfo($doc->original_name, PATHINFO_EXTENSION)) }}

Size: {{ number_format($doc->size / 1024, 2) }} KB

View Document
@else @endif
@endforeach