@extends('layouts.app')

@section('title', 'Edit Incident')

@section('content')
    <x-page-head title="Edit Incident" subtitle="{{ $record->student?->full_name }}">
        <x-slot:actions><a href="{{ route('school.discipline.index') }}" class="btn btn-outline">Back</a></x-slot:actions>
    </x-page-head>
    <x-panel>
        <form method="POST" action="{{ route('school.discipline.update', $record) }}">
            @csrf @method('PUT')
            @include('admin.discipline._form')
            <button type="submit" class="btn btn-primary" style="margin-top:16px;">Update</button>
        </form>
    </x-panel>
@endsection
