@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">{{ __('Dashboard') }}</div>
            <form action="{{ route('home.update', $home) }}" method="POST">
                <div class="card-body">
                    @if (session('status'))
                        <div class="alert alert-success" role="alert">
                            {{ session('status') }}
                        </div>
                    @endif


                        @csrf
                        @method('PUT')
                        <div class="mb-3">
                            <label for="name" class="form-label">Nome</label>
                            <input type="text" class="form-control" id="name" name="name" value="{{ $tenant->id }}">
                        </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>
            </form>
            </div>
        </div>
    </div>
</div>
@endsection
