<div class="ui-page">
    <div class="mx-auto flex max-w-5xl flex-col gap-6 px-4 py-8">
        @include('filament.partials.page-header', [
            'kicker' => '教材编辑',
            'title' => '编辑教材信息',
            'subtitle' => '按区块完善教材基础信息、版本与封面',
            'actions' => new \Illuminate\Support\HtmlString('<a class="btn btn-outline" href="' . route('filament.admin.resources.textbooks.index') . '">返回列表</a>'),
        ])

        <div class="ui-card">
            <div class="ui-card-body">
                <form wire:submit="save" class="space-y-6">
                    {{ $this->form }}
                    <div class="mt-6 flex items-center justify-end gap-3">
                        <a href="{{ route('filament.admin.resources.textbooks.index') }}" class="btn btn-ghost">取消</a>
                        <button type="submit" class="btn btn-primary">保存更改</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
    @include('filament.partials.loading-overlay')
</div>
