@extends('layouts.admin')

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

@section('content')
    <section class="dashboard-head">
        <div>
            <span class="eyebrow">Marketing</span>
            <h1>Edit Announcement</h1>
        </div>
        <a class="button ghost" href="{{ route('admin.announcements.index') }}">Back</a>
    </section>

    <section class="panel form-panel">
        <form method="POST" action="{{ route('admin.announcements.update', $announcement) }}" class="admin-form">
            @method('PATCH')
            @include('admin.announcements._form')
            <button class="button primary" type="submit">Update announcement</button>
        </form>
    </section>
@endsection
