@extends('Admin.layout') @section('content')
Documents
Profile Details Documents
@foreach ($documentTypes as $docType) @php $doc = $documents->get($docType->id); $filePath = ($doc && $doc->file_path) ? asset('storage/' . $doc->file_path) : ''; $extension = ($doc && $doc->file_path) ? strtolower(pathinfo($doc->file_path, PATHINFO_EXTENSION)) : ''; $isPdf = ($extension === 'pdf'); $hasFile = !empty($filePath); @endphp
Upload {{ $docType->name }}
@if($doc) @php $badge = 'warning'; if ($doc->status === 'Approved') $badge = 'success'; if ($doc->status === 'Rejected') $badge = 'danger'; @endphp {{ $doc->status }} @endif
{{-- Upload Placeholder --}}
Drop your file here

or

Click the upload icon to browse

Supported formats: PDF, JPG, PNG

Max file size: 5 MB

{{-- Image Preview --}} {{ $docType->name }} {{-- PDF Preview Container --}}
{{-- Action Controls --}}
@endforeach
{{-- Reject Modal --}} {{-- Preview Modal --}} {{-- Approve Modal --}} @endsection