@extends('Admin.layout') @section('content')
Documents — {{ $restaurant->name }}
Profile Details Documents
@csrf
@foreach (['fssai' => 'FSSAI Certificate', 'aadhar' => 'Aadhar Card', 'pan' => 'PAN Card', 'gst' => 'GST Certificate'] as $type => $label) @php $doc = $documents[$type] ?? null; @endphp
Upload {{ $label }}
Drop your file here

or

Click the upload icon to browse

Supported: PDF, JPG, PNG

Max: 5 MB

@if ($doc && $doc->file_path) @php $extension = strtolower(pathinfo($doc->file_path, PATHINFO_EXTENSION)); $fileUrl = asset('storage/' . $doc->file_path); @endphp @if ($extension === 'pdf') @else {{ $label }} @endif @endif
@if ($doc && $doc->file_path) @endif @php $statusMap = [ 'Pending' => 'warning', 'Approved' => 'success', 'Rejected' => 'danger', ]; $currentStatus = $doc->status ?? 'Pending'; @endphp {{ $currentStatus }}
@endforeach
@endsection