{{--
    Dashboard Super Admin - Statistiche Principali
    Modulo per le statistiche del super amministratore
--}}

<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
    
    <!-- Totale Utenti -->
    <x-dashboard.shared.stat-card
        title="Totale Utenti"
        :value="\App\Models\User::count()"
        icon="fas fa-users"
        color="primary"
        subtitle="Utenti registrati"
        :link="route('superadmin.users.index')"
    />
    
    <!-- Totale Amministratori -->
    <x-dashboard.shared.stat-card
        title="Amministratori"
        :value="\App\Models\User::role('admin')->count()"
        icon="fas fa-user-shield"
        color="success"
        subtitle="Amministratori attivi"
        :link="route('superadmin.amministratori.index')"
    />
    
    <!-- Totale Condomini -->
    <x-dashboard.shared.stat-card
        title="Condomini"
        :value="\App\Models\User::role('condomino')->count()"
        icon="fas fa-home-user"
        color="info"
        subtitle="Condomini registrati"
        :link="route('superadmin.soggetti.index')"
    />
    
    <!-- Stabili Totali -->
    <x-dashboard.shared.stat-card
        title="Stabili"
        :value="0"
        icon="fas fa-building"
        color="warning"
        subtitle="Stabili gestiti"
        :link="route('superadmin.stabili.index')"
    />
    
</div>
