@extends('admin.layouts.app')

@section('title', 'Dashboard')

@section('content')
    <div class="flex justify-between items-center mb-8">
        <h2 class="text-2xl font-bold text-white tracking-tight">Welcome Admin!</h2>
    </div>

    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
        <div class="bg-[#1e293b] border border-[#334155] rounded-2xl p-6 shadow-lg hover:shadow-blue-500/10 transition-shadow">
            <div class="flex items-center gap-4 mb-4">
                <div class="w-12 h-12 rounded-xl bg-blue-500/10 text-blue-400 flex items-center justify-center text-xl border border-blue-500/20">
                    <i class="fa-solid fa-users"></i>
                </div>
                <h5 class="text-gray-400 font-bold text-xs uppercase tracking-widest">Total Users</h5>
            </div>
            <h3 class="text-4xl font-extrabold text-white">{{ \App\Models\User::count() }}</h3>
        </div>

        <div class="bg-[#1e293b] border border-[#334155] rounded-2xl p-6 shadow-lg hover:shadow-emerald-500/10 transition-shadow">
            <div class="flex items-center gap-4 mb-4">
                <div class="w-12 h-12 rounded-xl bg-emerald-500/10 text-emerald-400 flex items-center justify-center text-xl border border-emerald-500/20">
                    <i class="fa-solid fa-globe"></i>
                </div>
                <h5 class="text-gray-400 font-bold text-xs uppercase tracking-widest">Active Domains</h5>
            </div>
            <h3 class="text-4xl font-extrabold text-white">{{ \App\Models\UserDomain::where('status', 'active')->count() }}</h3>
        </div>
    </div>
@endsection
