@extends('layouts.app')

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

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