@extends('admin.layout') @section('title', 'Admin Dashboard') @section('content')
Detail absensi setiap karyawan
Manajemen pengguna sistem
Review & respond keluhan karyawan
Review izin dan cuti
Review & approve izin kerja
| 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 |
| 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 |
Gunakan menu sidebar untuk mengelola sistem absensi.