@extends('layouts.appback')

@section('content')
    <div class="container-fluid py-2">
        <div class="row">
            <div class="col-12">
                <div class="card my-4">
                    <div class="card-header p-0 position-relative mt-n4 mx-3 z-index-2">
                        <div class="bg-gradient-dark shadow-dark border-radius-lg pt-4 pb-3">
                            <h6 class="text-white text-capitalize ps-3">Nuova azienda</h6>
                        </div>
                    </div>
                    <div class="card-body px-0 pb-2">
                        <div class="table-responsive p-0">

                            <form action="{{ route('aziende.store') }}" method="POST" class="card card-body">
                                @csrf
                                @include('backend.aziende._form', ['submitLabel' => 'Crea'])
                            </form>

                            <a href="{{ route('aziende.index') }}" class="btn btn-link mt-3">← Torna all’elenco</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
