Carian Rekod Mengikut Tarikh
Status Terkini & Masa Respons
| No. |
No. Surat |
Jenis Surat |
Pegawai Bertugas |
Tarikh Terima |
Tempoh Masa |
Status |
@php
$counter = ($recentApplications->currentPage() - 1) * $recentApplications->perPage() + 1;
@endphp
@forelse($recentApplications ?? [] as $application)
@php
$tempoh = $application->tempoh_masa ?? 0;
$rowClass = '';
if (!is_null($application->tempoh_masa)) {
if ($application->tempoh_masa >= 1 && $application->tempoh_masa <= 10) {
$rowClass = 'table-success';
} elseif ($application->tempoh_masa >= 11 && $application->tempoh_masa <= 14) {
$rowClass = 'table-warning';
} elseif ($application->tempoh_masa > 14) {
$rowClass = 'table-danger';
}else {
$rowClass = 'table-secondary';
}
}
@endphp
| {{ $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' }} |
{{ $application->tempoh_masa ?? 0 }} hari |
{{ config('optionHandler.status.' . $application->status, 'Tiada Tindakan') }} |
@empty
| Tiada aplikasi terkini |
@endforelse
Halaman {{ $recentApplications->currentPage() }} daripada {{ $recentApplications->lastPage() }}
{{ $recentApplications->links() }}