@extends('admin.layouts.app')

@section('title', 'Edit Blog Post')
@section('subtitle', 'Update article copy, featured image, SEO, and publishing status.')

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

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

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