@extends('layouts.student')
@section('title', 'Discipline')
@section('content')
    <x-page-head title="Discipline" subtitle="Your records" />
    <x-panel>@if($cases->isEmpty())<x-empty-state title="No records" message="No disciplinary records on file." />@else<div class="table-wrap"><table><thead><tr><th>Case</th><th>Category</th><th>Date</th><th>Outcome</th><th></th></tr></thead><tbody>
        @foreach($cases as $case)<tr><td>{{ $case->case_number }}</td><td>{{ $case->category }}</td><td>{{ optional($case->finalized_at)->format('d M Y') ?? '—' }}</td><td>{{ Str::limit($case->outcome_details ?? $case->outcome ?? '—', 40) }}</td></tr>@endforeach
    </tbody></table></div>{{ $cases->links() }}@endif</x-panel>
@endsection
