@extends('admin.layout') @section('title', 'Admin Dashboard') @section('content')

Total User

{{ $userCount }}

Total Admin

{{ $adminCount }}

Absensi Hari Ini

{{ $attendanceToday }}

Terlambat Hari Ini

{{ $lateToday }}

💬 Keluhan Pending

{{ $pendingComplaints }}
Keluhan perlu ditangani

✅ Keluhan Resolved

{{ $resolvedComplaints }}
Keluhan terselesaikan

🔒 Keluhan Closed

{{ $closedComplaints }}
Keluhan ditutup

📋 Izin Kerja Hari Ini

{{ $workLeaveToday }}
Karyawan izin hari ini

📊 Izin Kerja Bulan Ini

{{ $workLeaveThisMonth }}
Total izin bulan {{ now()->translatedFormat('F') }}
👥

Laporan Per User

Detail absensi setiap karyawan

👤

Kelola User

Manajemen pengguna sistem

💬

Kelola Keluhan

Review & respond keluhan karyawan

📋

Kelola Pengajuan

Review izin dan cuti

🏢

Kelola Izin Kerja

Review & approve izin kerja

⏳ Menunggu Persetujuan

{{ $pendingLeaveRequests }}
Pengajuan pending

✅ Disetujui

{{ $approvedLeaveRequests }}
Total disetujui

❌ Ditolak

{{ $rejectedLeaveRequests }}
Total ditolak
@if($recentComplaints->count() > 0)

🔔 Pengajuan Baru (Menunggu Persetujuan)

Lihat Semua
@foreach($recentComplaints as $complaint) @endforeach
Tanggal Karyawan Kategori Judul Prioritas Aksi
{{ $complaint->created_at->format('d/m/Y H:i') }} {{ $complaint->user->name }}
{{ $complaint->user->email }}
@php $categoryBadge = [ 'cuti' => ['bg' => '#dbeafe', 'text' => '#1e40af', 'icon' => '🏖️'], 'sakit' => ['bg' => '#fee2e2', 'text' => '#991b1b', 'icon' => '🤒'], 'izin' => ['bg' => '#fef3c7', 'text' => '#92400e', 'icon' => '📝'], 'lainnya' => ['bg' => '#f3f4f6', 'text' => '#374151', 'icon' => '💬'], ]; $badge = $categoryBadge[$complaint->category] ?? $categoryBadge['lainnya']; @endphp {{ $badge['icon'] }} {{ ucfirst($complaint->category) }} {{ Str::limit($complaint->title, 40) }} @php $priorityBadge = [ 'low' => ['bg' => '#d1fae5', 'text' => '#065f46', 'label' => 'Rendah'], 'medium' => ['bg' => '#fef3c7', 'text' => '#92400e', 'label' => 'Sedang'], 'high' => ['bg' => '#fee2e2', 'text' => '#991b1b', 'label' => 'Tinggi'], ]; $priority = $priorityBadge[$complaint->priority] ?? $priorityBadge['medium']; @endphp {{ $priority['label'] }} 👁️ Lihat & Review
@if($recentComplaints->hasPages())
{{ $recentComplaints->links() }}
@endif
@endif @if($recentWorkLeave->count() > 0)

🏢 Pengajuan Izin Kerja Terbaru

Lihat Semua
@foreach($recentWorkLeave as $workLeave) @endforeach
Karyawan Tanggal Keterangan Dokumen Aksi
{{ strtoupper(substr($workLeave->user->name, 0, 1)) }}
{{ $workLeave->user->name }}
{{ $workLeave->user->employee_id }}
{{ \Carbon\Carbon::parse($workLeave->date)->translatedFormat('d F Y') }} {{ Str::limit($workLeave->notes, 50) }} @if($workLeave->hasDocument()) 📎 Ada Dokumen @else 📄 Tidak Ada @endif 👁️ Review
@if($recentWorkLeave->hasPages())
{{ $recentWorkLeave->links() }}
@endif
@endif

Selamat Datang di Panel Admin

Gunakan menu sidebar untuk mengelola sistem absensi.

@endsection