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

Detail Pelanggaran

Informasi lengkap pelanggaran siswa

@if(!$violation->is_verified)
@csrf
@endif
@csrf @method('DELETE')
{{-- Content Grid --}}
{{-- Left: Info Siswa + Pelanggaran --}}
{{-- Card Siswa --}}
{{ strtoupper(substr($violation->student->full_name ?? '?', 0, 1)) }}

{{ $violation->student->full_name ?? '-' }}

{{ $violation->student->nisn ?? '' }} • {{ $violation->student->class_name ?? '' }}

{{ $violation->student->department_name ?? '' }}

Total Poin

{{ $violation->student->total_points }}

{{-- Card Detail Pelanggaran --}}

Detail Pelanggaran

{{ $violation->violationType?->category?->name ?? '-' }}
{{-- Info bars --}}
Jenis Pelanggaran
{{ $violation->violationType->name ?? '-' }}
Poin
+{{ $violation->points }}
Sanksi
{{ $violation->sanction ?? '-' }}
Tanggal
{{ $violation->violation_date->format('d F Y') }} @if($violation->violation_time){{ \Carbon\Carbon::parse($violation->violation_time)->format('H:i') }} WIB @endif
Lokasi
{{ $violation->location ?? '-' }}
Dicatat oleh
{{ $violation->recorder->name ?? '-' }}
{{-- Deskripsi --}} @if($violation->description)

Deskripsi / Catatan

{{ $violation->description }}

@endif
{{-- Right Sidebar: Status + Evidences --}}
{{-- Status Card --}}

Status

{{-- Verifikasi --}}
Verifikasi @if($violation->is_verified) Terverifikasi @else Belum @endif
@if($violation->is_verified)
oleh {{ $violation->verifier->name ?? '-' }} • {{ $violation->verified_at?->format('d/m/Y H:i') }}
@endif {{-- Waktu input --}}

Dibuat pada

{{ $violation->created_at->format('d F Y H:i') }}

@if($violation->updated_at != $violation->created_at)

Terakhir diubah

{{ $violation->updated_at->format('d F Y H:i') }}

@endif
{{-- Evidence Photos --}} @if($violation->evidences->count() > 0)

Bukti Foto

{{ $violation->evidences->count() }} file
@foreach($violation->evidences as $evidence) {{ $evidence->original_name }}
@endforeach
@endif
@endsection