Status Terkini & Masa Respons

@php $counter = 1; @endphp @forelse($recentApplications as $application) @php $tempoh = $application->tempoh_masa ?? 0; $rowClass = ''; if (!is_null($tempoh)) { if ($tempoh >= 1 && $tempoh <= 10) { $rowClass = 'table-success'; } elseif ($tempoh >= 11 && $tempoh <= 14) { $rowClass = 'table-warning'; } elseif ($tempoh > 14) { $rowClass = 'table-danger'; }else { $rowClass = 'table-secondary'; // Default to warning if no tempoh } } @endphp @empty @endforelse
No. No. Surat Jenis Surat Pegawai Bertugas Tarikh Terima Tempoh Masa Status
{{ $counter++ }} {{ $application->no_siri_rujukan }} {{ $application->type }} {{ $application->assignedUser->name ?? 'Tiada' }} {{ $application->tarikh_permohonan ? \Carbon\Carbon::parse($application->tarikh_permohonan)->format('d/m/Y') : 'N/A' }} {{ $tempoh }} hari {{ config('optionHandler.status.' . $application->status, 'Tiada Tindakan') }}
Tiada aplikasi terkini