@extends('layouts.app') @section('title', 'Kategori Pelanggaran') @section('content')
{{-- Header --}}

Kategori Pelanggaran

Kelompokkan jenis pelanggaran berdasarkan tingkat keparahan

{{-- Cards Grid --}}
@forelse($categories as $cat) @php $typeCount = $cat->violationTypes()->count(); @endphp
{{-- Color strip gradient --}}
{{-- Header row --}}

{{ $cat->name }}

{{ $cat->description ?: 'Tanpa deskripsi' }}

@if(!$cat->is_active) Nonaktif @endif
{{-- Stats row --}}
{{ $typeCount }} jenis Urutan #{{ $cat->sort_order }}
{{-- Actions --}}
@if($cat->is_active)
@csrf @method('PUT')
@else
@csrf @method('PUT')
@endif
@if($typeCount === 0)
@csrf @method('DELETE')
@endif
@empty

Belum ada kategori pelanggaran

@endforelse
{{-- Modal Create/Edit --}}
@push('scripts') @endpush @endsection