@extends('layouts.app')

@section('content')
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">{{ __('Nuovo_Tenant') }}</div>
            <form action="{{ route('home.store') }}" method="POST">
                @csrf
                <div class="card-body">
                    @if (session('status'))
                        <div class="alert alert-success" role="alert">
                            {{ session('status') }}
                        </div>
                    @endif
                    <div class="mb-3">
                        <label for="name" class="form-label">Nome</label>
                        <input type="text" class="form-control" id="name" name="tenant_name" >
                    </div>
                    <div class="mb-3">
                        <label for="domain" class="form-label">Dominio (FQDN)</label>
                        <input type="domain" class="form-control" id="domain" name="fqdn_domain" >
                    </div>

                </div>
                <div class="card-footer d-flex flex-row-reverse bd-highlight">
                    <button type="submit" class="btn btn-primary">Salva</button>
                    <a href="{{ route('home.index') }}" class="btn btn-secondary">Annulla</a>
                </div>
            </div>
            </form>
        </div>
    </div>
</div>
@endsection
