@forelse ($this->getDepartments() as $dept)
@php
$slug = $dept->slug ?? Str::slug($dept->name ?? 'unknown');
$theme = match($slug) {
'tata-boga', 'kulinerr' => [
'color' => 'orange',
'bg' => 'bg-orange-50 dark:bg-orange-900/10',
'text' => 'text-orange-600 dark:text-orange-400',
'border' => 'border-orange-500',
'ring' => 'ring-orange-500/20',
'icon' => 'heroicon-o-cake'
],
'software-engineering', 'rpl', 'pplg' => [
'color' => 'blue',
'bg' => 'bg-blue-50 dark:bg-blue-900/10',
'text' => 'text-blue-600 dark:text-blue-400',
'border' => 'border-blue-500',
'ring' => 'ring-blue-500/20',
'icon' => 'heroicon-o-code-bracket'
],
'network-engineering', 'tjkt' => [
'color' => 'purple',
'bg' => 'bg-purple-50 dark:bg-purple-900/10',
'text' => 'text-purple-600 dark:text-purple-400',
'border' => 'border-purple-500',
'ring' => 'ring-purple-500/20',
'icon' => 'heroicon-o-wifi'
],
default => [
'color' => 'gray',
'bg' => 'bg-gray-50 dark:bg-gray-800',
'text' => 'text-gray-600 dark:text-gray-400',
'border' => 'border-gray-500',
'ring' => 'ring-gray-500/20',
'icon' => 'heroicon-o-academic-cap'
],
};
@endphp
{{-- Decorative Top Border --}}
{{-- 1. HEADER IMAGE --}}
 }})
{{-- Gradient Overlay --}}
{{-- Icon Badge --}}
@svg($theme['icon'], 'w-5 h-5 text-white')
{{-- Title Overlay --}}
{{-- 2. CONTENT BODY --}}
{{-- Section Kepala Program --}}
 : 'https://ui-avatars.com/api/?name='.urlencode($dept->headOfDepartment?->name ?? 'User').'&color=7F9CF5&background=EBF4FF' }})
@if($dept->headOfDepartment)
@endif
Kepala Program
{{ $dept->headOfDepartment?->name ?? 'Belum Ditentukan' }}
{{-- Stats Box (Single Full Width) --}}
{{ $dept->modules_count }}
{{-- Actions Container (Styles preserved as requested) --}}
{{-- TOMBOL UTAMA (KELOLA) - Style Dipertahankan --}}
Lihat Detail
{{-- TOMBOL HAPUS - Style Dipertahankan --}}
@empty
Belum ada jurusan
Silakan tambahkan data jurusan baru.
@endforelse
{{-- Modal Delete --}}