@extends('layouts.app')
@section('title', $case->case_number)
@section('content')
    <x-page-head title="{{ $case->case_number }}" subtitle="{{ $case->title }}">
        <x-slot:actions><a href="{{ route('school.cases.index') }}" class="btn btn-outline">Back</a></x-slot:actions>
    </x-page-head>
    @include('cases._show', ['advanceRoute' => route('school.cases.advance', $case), 'showOutcomeForm' => true])
    @if (!$case->isClosed())
    <x-panel title="Upload Evidence" style="margin-top:16px;">
        <form method="POST" action="{{ route('school.cases.evidence', $case) }}" enctype="multipart/form-data">
            @csrf
            <input class="input" type="file" name="evidence[]" multiple required>
            <button type="submit" class="btn btn-primary btn-sm" style="margin-top:12px;">Upload</button>
        </form>
    </x-panel>
    @endif
@endsection
