@extends('layouts.teacher')
@section('title', 'Compose Message')
@section('content')
    <x-page-head title="Compose" subtitle="Send a message">
        <x-slot:actions><a href="{{ route('teacher.messages.index') }}" class="btn btn-outline">Back</a></x-slot:actions>
    </x-page-head>
    <x-panel>
        <form method="POST" action="{{ route('teacher.messages.store') }}">
            @csrf
            @include('messages._audience-form', ['audienceTypes' => $audienceTypes ?? []])
            <button type="submit" class="btn btn-primary" style="margin-top:16px;">Send</button>
        </form>
    </x-panel>
@endsection
