@extends('layouts.app') @section('content')

Carian Rekod Mengikut Tarikh


Status Terkini & Masa Respons

@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 @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' }} {{ $application->tempoh_masa ?? 0 }} hari {{ config('optionHandler.status.' . $application->status, 'Tiada Tindakan') }}
Tiada aplikasi terkini
Halaman {{ $recentApplications->currentPage() }} daripada {{ $recentApplications->lastPage() }}
{{ $recentApplications->links() }}
@endsection