@extends('layouts.app')

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

@section('content')
    <x-page-head title="Edit Announcement" subtitle="{{ $announcement->title }}" />
    <x-panel>
        <form method="POST" action="{{ route('system.announcements.update', $announcement) }}">
            @csrf
            @method('PUT')
            @include('admin.announcements._form', ['announcement' => $announcement])
            <div style="margin-top:16px; display:flex; gap:10px;">
                <button type="submit" class="btn btn-primary">Update Announcement</button>
                <a href="{{ route('system.announcements.index') }}" class="btn btn-outline">Cancel</a>
            </div>
        </form>
    </x-panel>
@endsection
