{{--
    Dashboard Condomino - Banner Benvenuto
    Banner personalizzato per dare il benvenuto al condomino
--}}

<div class="bg-gradient-to-r from-blue-500 to-purple-600 overflow-hidden shadow-sm sm:rounded-lg">
    <div class="p-6 text-white">
        <div class="flex items-center justify-between">
            <div class="flex-1">
                <h2 class="text-2xl font-bold">Benvenuto, {{ Auth::user()->name }}!</h2>
                <p class="mt-2 text-blue-100">
                    Gestisci le tue proprietà e rimani aggiornato su tutto quello che riguarda il tuo condominio.
                </p>
            </div>
            <div class="flex-shrink-0 hidden md:block">
                <div class="w-16 h-16 bg-white bg-opacity-20 rounded-full flex items-center justify-center">
                    <i class="fas fa-home text-3xl"></i>
                </div>
            </div>
        </div>
        
        <!-- Informazioni rapide -->
        <div class="mt-6 grid grid-cols-1 md:grid-cols-3 gap-4">
            <div class="bg-white bg-opacity-10 rounded-lg p-4">
                <div class="flex items-center">
                    <i class="fas fa-map-marker-alt text-xl mr-3"></i>
                    <div>
                        <p class="text-sm text-blue-100">Il tuo condominio</p>
                        <p class="font-semibold">Via Roma, 123</p>
                    </div>
                </div>
            </div>
            
            <div class="bg-white bg-opacity-10 rounded-lg p-4">
                <div class="flex items-center">
                    <i class="fas fa-user-tie text-xl mr-3"></i>
                    <div>
                        <p class="text-sm text-blue-100">Amministratore</p>
                        <p class="font-semibold">Dott. Mario Bianchi</p>
                    </div>
                </div>
            </div>
            
            <div class="bg-white bg-opacity-10 rounded-lg p-4">
                <div class="flex items-center">
                    <i class="fas fa-clock text-xl mr-3"></i>
                    <div>
                        <p class="text-sm text-blue-100">Ultimo accesso</p>
                        <p class="font-semibold">{{ Auth::user()->last_login_at?->format('d/m/Y H:i') ?? 'Primo accesso' }}</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
