@extends('layouts.app')

@section('content')
<div class="container-fluid">
    <div class="row">
        <div class="col-12">
            <div class="d-flex justify-content-between align-items-center mb-4">
                <h1><i class="fas fa-home"></i> Affitti</h1>
                <a href="{{ route('admin.affitti.create') }}" class="btn btn-primary">
                    <i class="fas fa-plus"></i> Nuovo Contratto
                </a>
            </div>

            {{-- Dashboard Affitti --}}
            <div class="row mb-4">
                <div class="col-md-4">
                    <div class="card text-center">
                        <div class="card-body">
                            <h5 class="card-title">Contratti Attivi</h5>
                            <h3 class="text-success">45</h3>
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="card text-center">
                        <div class="card-body">
                            <h5 class="card-title">In Scadenza</h5>
                            <h3 class="text-warning">7</h3>
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="card text-center">
                        <div class="card-body">
                            <h5 class="card-title">Incasso Mensile</h5>
                            <h3 class="text-primary">€ 28.500</h3>
                        </div>
                    </div>
                </div>
            </div>

            <div class="card">
                <div class="card-header">
                    <h5>Gestione Affitti</h5>
                </div>
                <div class="card-body">
                    <p>Funzionalità in fase di implementazione...</p>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
