Riwayat Keluhan
+ Buat
{{ $stats['pending'] ?? 0 }}
Pending
{{ $stats['process'] ?? 0 }}
Diproses
{{ $stats['done'] ?? 0 }}
Selesai
Semua Pending Diproses Selesai
@forelse($complaints as $complaint)
{{ $complaint['ticketNumber'] }}
@php $statusText = [ 'pending' => 'Menunggu', 'process' => 'Diproses', 'done' => 'Selesai', ]; @endphp {{ $statusText[$complaint['status']] ?? $complaint['status'] }}
{{ $complaint['title'] }}
📁 @php $categoryText = [ 'hardware' => 'Hardware/Perangkat', 'software' => 'Software/Aplikasi', 'network' => 'Jaringan/Internet', 'system' => 'Sistem Absensi', 'access' => 'Akses/Login', 'general' => 'Umum', 'other' => 'Lainnya', ]; @endphp {{ $categoryText[$complaint['category']] ?? $complaint['category'] }}
@php $priorityText = [ 'low' => 'Rendah', 'medium' => 'Sedang', 'high' => 'Tinggi', ]; @endphp {{ $priorityText[$complaint['priority']] ?? $complaint['priority'] }}
📅 {{ \Carbon\Carbon::parse($complaint['createdAt'])->translatedFormat('d M Y') }}
{{ Str::limit($complaint['description'], 100) }}
@empty
📋
Belum Ada Keluhan
Buat keluhan pertama Anda untuk melaporkan masalah teknis
Buat Keluhan
@endforelse
{{-- Pagination --}} @if(isset($pagination) && $pagination->total() > 0) @endif