{{--
    Dashboard Admin - Attività Recenti
    Modulo per le attività recenti dell'amministratore
--}}

<div class="bg-white dark:bg-gray-800 overflow-hidden shadow-sm sm:rounded-lg">
    <div class="p-6">
        <div class="flex items-center justify-between mb-6">
            <h3 class="text-lg font-semibold text-gray-900 dark:text-white">Attività Recenti</h3>
            <a href="{{ route('admin.dashboard') }}" 
               class="text-sm text-blue-600 hover:text-blue-800 dark:text-blue-400">
                Dashboard
            </a>
        </div>
        
        <div class="space-y-4">
            {{-- Attività fittizie per ora, da sostituire con dati reali --}}
            
            <!-- Nuovo Ticket -->
            <div class="flex items-start space-x-3 py-3 border-b border-gray-200 dark:border-gray-700 last:border-b-0">
                <div class="flex-shrink-0">
                    <div class="w-8 h-8 bg-yellow-100 rounded-full flex items-center justify-center">
                        <i class="fas fa-ticket-alt text-yellow-600 text-sm"></i>
                    </div>
                </div>
                <div class="flex-1 min-w-0">
                    <p class="text-sm text-gray-900 dark:text-white">
                        <span class="font-medium">Nuovo ticket ricevuto</span>
                    </p>
                    <p class="text-xs text-gray-500 dark:text-gray-400">
                        Stabile A - Problema ascensore - 30 min fa
                    </p>
                </div>
            </div>
            
            <!-- Pagamento Ricevuto -->
            <div class="flex items-start space-x-3 py-3 border-b border-gray-200 dark:border-gray-700 last:border-b-0">
                <div class="flex-shrink-0">
                    <div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center">
                        <i class="fas fa-euro-sign text-green-600 text-sm"></i>
                    </div>
                </div>
                <div class="flex-1 min-w-0">
                    <p class="text-sm text-gray-900 dark:text-white">
                        <span class="font-medium">Pagamento ricevuto</span>
                    </p>
                    <p class="text-xs text-gray-500 dark:text-gray-400">
                        Mario Rossi - €500,00 - 2 ore fa
                    </p>
                </div>
            </div>
            
            <!-- Nuovo Condomino -->
            <div class="flex items-start space-x-3 py-3 border-b border-gray-200 dark:border-gray-700 last:border-b-0">
                <div class="flex-shrink-0">
                    <div class="w-8 h-8 bg-blue-100 rounded-full flex items-center justify-center">
                        <i class="fas fa-user-plus text-blue-600 text-sm"></i>
                    </div>
                </div>
                <div class="flex-1 min-w-0">
                    <p class="text-sm text-gray-900 dark:text-white">
                        <span class="font-medium">Nuovo condomino registrato</span>
                    </p>
                    <p class="text-xs text-gray-500 dark:text-gray-400">
                        Giulia Bianchi - Appartamento 12 - 1 giorno fa
                    </p>
                </div>
            </div>
            
            <!-- Assemblea Programmata -->
            <div class="flex items-start space-x-3 py-3 border-b border-gray-200 dark:border-gray-700 last:border-b-0">
                <div class="flex-shrink-0">
                    <div class="w-8 h-8 bg-purple-100 rounded-full flex items-center justify-center">
                        <i class="fas fa-calendar-plus text-purple-600 text-sm"></i>
                    </div>
                </div>
                <div class="flex-1 min-w-0">
                    <p class="text-sm text-gray-900 dark:text-white">
                        <span class="font-medium">Assemblea programmata</span>
                    </p>
                    <p class="text-xs text-gray-500 dark:text-gray-400">
                        15 Marzo 2024 - Bilancio annuale - 2 giorni fa
                    </p>
                </div>
            </div>
            
        </div>
        
    </div>
</div>
