{{--
    Dashboard Condomino - Statistiche Principali
    Modulo per le statistiche del condomino
--}}

@props(['stats' => []])

<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
    
    <!-- Le Mie Unità -->
    <x-dashboard.shared.stat-card
        title="Le Mie Unità"
        :value="$stats['unita_possedute'] ?? 0"
        icon="fas fa-home"
        color="primary"
        subtitle="Proprietà possedute"
        :link="route('condomino.unita.index')"
    />
    
    <!-- Ticket Aperti -->
    <x-dashboard.shared.stat-card
        title="I Miei Ticket"
        :value="$stats['ticket_aperti'] ?? 0"
        icon="fas fa-ticket-alt"
        color="warning"
        subtitle="Richieste in corso"
        :link="route('condomino.tickets.index')"
    />
    
    <!-- Rate da Pagare -->
    <x-dashboard.shared.stat-card
        title="Rate in Scadenza"
        :value="$stats['rate_scadenza'] ?? 0"
        icon="fas fa-euro-sign"
        color="danger"
        subtitle="Prossime scadenze"
        :link="route('condomino.rate.index')"
    />
    
    <!-- Assemblee -->
    <x-dashboard.shared.stat-card
        title="Assemblee"
        :value="$stats['assemblee_programmate'] ?? 0"
        icon="fas fa-calendar-alt"
        color="info"
        subtitle="Programmate"
        :link="route('condomino.assemblee.index')"
    />
    
</div>
