{{ $stats['pending'] ?? 0 }}
Pending
{{ $stats['process'] ?? 0 }}
Diproses
{{ $stats['done'] ?? 0 }}
Selesai
@forelse($complaints as $complaint)
{{-- Pagination --}}
@if(isset($pagination) && $pagination->total() > 0)
{{ $complaint['ticketNumber'] }}
@php
$statusText = [
'pending' => 'Menunggu',
'process' => 'Diproses',
'done' => 'Selesai',
];
@endphp
{{ $statusText[$complaint['status']] ?? $complaint['status'] }}
{{ $complaint['title'] }}
{{ Str::limit($complaint['description'], 100) }}
@empty
@endforelse
@if($pagination->onFirstPage())
«
@else
«
@endif
@foreach(range(1, $pagination->lastPage()) as $page)
@if($page == $pagination->currentPage())
{{ $page }}
@else
{{ $page }}
@endif
@endforeach
@if($pagination->hasMorePages())
»
@else
»
@endif
@endif