@extends('admin.layouts.app')

@section('title', 'New Blog Post')
@section('subtitle', 'Add a new article to the public blog feed and single post pages.')

@section('content')
    <form method="POST" action="{{ route('admin.blog-posts.store') }}" class="space-y-6">
        @csrf

        @include('admin.blog-posts.partials.form')

        <div class="flex flex-wrap gap-3">
            <button type="submit" class="admin-button">Publish post</button>
            <a href="{{ route('admin.blog-posts.index') }}" class="admin-button admin-button--secondary">Cancel</a>
        </div>
    </form>
@endsection
