@if (!$dhawasuma)
Application data not found!
@else
Application #{{ $application->id }} - {{ $dhawasuma->application_number ?? 'N/A' }}
Customer Information

{{ $application->customer->name ?? 'N/A' }}
{{ $application->service->name ?? 'N/A' }}
{{ $application->office->name ?? 'N/A' }}
{{ $application->created_at->format('d M, Y H:i A') ?? 'N/A' }}
{{ $dhawasuma->assigned_date ?? 'N/A' }} By {{ $dhawasuma->followupBy->name ?? 'N/A' }}
@php $status = strtolower($dhawasuma->status ?? ''); $statusConfig = [ 'approved' => ['class' => 'bg-label-success', 'icon' => 'bx-check-circle'], 'request' => ['class' => 'bg-label-info', 'icon' => 'bx-time'], 'rejected' => ['class' => 'bg-label-danger', 'icon' => 'bx-x-circle'], 'accept' => ['class' => 'bg-label-primary', 'icon' => 'bx-like'], 'default' => [ 'class' => 'bg-label-secondary', 'icon' => 'bx-question-mark', ], ]; $currentStatus = $statusConfig[$status] ?? $statusConfig['default']; @endphp {{ ucfirst($status) ?: 'N/A' }}
Officer Approval

@if (($dhawasuma->status ?? '') == 'request' && !$application->service->is_leader_approve_required)
@csrf
@csrf
@elseif(($dhawasuma->status ?? '') == 'accept')
Accepted by: {{ $dhawasuma->acceptedBy->name ?? 'Unknown' }}
Approval Page @elseif(in_array($dhawasuma->status ?? '', ['approved', 'appointment'])) Approval Page @endif
Applicants Information

@csrf @method('PUT') @if (!empty($dhawasuma->fullnames))
@foreach ($dhawasuma->fullnames ?? [] as $index => $name) @endforeach
# Full Name Age Gender Jobless ID Education Level Department Phone Government ID Photo
{{ $index + 1 }} @if (isset($dhawasuma->gov_id_paths[$index]) && $dhawasuma->gov_id_paths[$index]) View @else N/A @endif @if (isset($dhawasuma->photo_paths[$index]) && $dhawasuma->photo_paths[$index]) View @else N/A @endif
@else
No applicant information available.
@endif
Supporting Documents

@if ($dhawasuma->file ?? false)
Download

Attached File

@endif @if ($dhawasuma->application_letter ?? false)
Download Application Letter

Attached Application Letter

@endif @if ($dhawasuma->required_file ?? false)
Download Required File

Attached Required File

@endif
@endif