@extends('layouts.app')

@section('title', 'New Announcement')

@section('content')
    <x-page-head title="New Announcement" subtitle="Create a school-wide notice" />
    <x-panel>
        <form method="POST" action="{{ route('system.announcements.store') }}">
            @csrf
            @include('admin.announcements._form')
            <div style="margin-top:16px; display:flex; gap:10px;">
                <button type="submit" class="btn btn-primary">Save Announcement</button>
                <a href="{{ route('system.announcements.index') }}" class="btn btn-outline">Cancel</a>
            </div>
        </form>
    </x-panel>
@endsection
