{{--
    Dashboard Admin - Statistiche Principali
    Modulo per le statistiche dell'amministratore
--}}

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

<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
    
    <!-- Stabili Totali -->
    <x-dashboard.shared.stat-card
        title="Stabili Totali"
        :value="$stats['stabili_totali'] ?? 0"
        icon="fas fa-building"
        color="primary"
        subtitle="Stabili gestiti"
        :link="route('admin.stabili.index')"
    />
    
    <!-- Condomini -->
    <x-dashboard.shared.stat-card
        title="Condomini"
        :value="$stats['condomini_totali'] ?? 0"
        icon="fas fa-users"
        color="success"
        subtitle="Condomini registrati"
        :link="route('admin.soggetti.index')"
    />
    
    <!-- Tickets Aperti -->
    <x-dashboard.shared.stat-card
        title="Tickets Aperti"
        :value="$stats['tickets_aperti'] ?? 0"
        icon="fas fa-ticket-alt"
        color="warning"
        subtitle="Richieste in corso"
        :link="route('admin.tickets.index')"
    />
    
    <!-- Assemblee del Mese -->
    <x-dashboard.shared.stat-card
        title="Assemblee"
        :value="$stats['assemblee_mese'] ?? 0"
        icon="fas fa-calendar-alt"
        color="info"
        subtitle="Questo mese"
        :link="route('admin.assemblee.index')"
    />
    
</div>
