@extends('admin.layouts.app')

@section('title', __('admin/posts.tag_edit'))

@section('content')
<div class="container-fluid px-4">
    <x-admin.page-header
        :title="__('admin/posts.tag_edit')"
        icon="fas fa-tags"
        :buttons="[[
            'label' => __('admin/common.back'),
            'route' => route('admin.tags.index'),
            'icon' => 'fas fa-arrow-left',
            'color' => 'outline-secondary',
        ]]" />

    <x-admin.alert />

    <form method="POST" action="{{ route('admin.tags.update', $tag) }}">
        @csrf @method('PUT')
        <x-admin.card>
            @include('admin.tags._form', ['tag' => $tag])
            <x-slot:footer>
                <x-admin.form-actions :cancel-url="route('admin.tags.index')" />
            </x-slot:footer>
        </x-admin.card>
    </form>
</div>
@endsection
