Insurance Company Forms

@if (session()->has('message'))
{{ session('message') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif
{{ $editing_id ? 'Edit Form' : 'Upload New Form' }}
@error('form_label')
{{ $message }}
@enderror
@if (!$editing_id)
@error('form_file')
{{ $message }}
@enderror Supported formats: PDF, DOC, DOCX, XLS, XLSX, TXT, JPG, JPEG, PNG, GIF, SVG, WEBP (Max: 10MB)
@endif
@if ($editing_id) @endif
Uploaded Forms
@if($forms->count() > 0)
@foreach($forms as $form) @endforeach
Document Name File Type Upload Date Actions
{{ $form->form_label }} @php $extension = pathinfo($form->form_path, PATHINFO_EXTENSION); $iconClass = match(strtolower($extension)) { 'pdf' => 'fas fa-file-pdf text-danger', 'doc', 'docx' => 'fas fa-file-word text-primary', 'xls', 'xlsx' => 'fas fa-file-excel text-success', 'txt' => 'fas fa-file-alt text-secondary', default => 'fas fa-file text-muted' }; @endphp {{ strtoupper($extension) }} {{ $form->created_at->format('M d, Y H:i') }}
@else

No forms uploaded yet.

Upload your first form using the form on the left.

@endif