<?php $__env->startSection('content'); ?>
<?php
    $membersCount  = isset($members) ? $members->count() : 0;
    $messagesCount = isset($messages) ? $messages->count() : 0;
    $contentCount  = isset($content) ? $content->count() : 0;
?>

<div class="max-w-7xl mx-auto px-6 py-10">

    <!-- Header -->
    <div class="mb-10">
        <h1 class="text-4xl font-bold text-gray-800">Admin Dashboard</h1>
        <p class="text-gray-500 mt-2">Overview of members, messages, and site content</p>
    </div>

    <!-- Stats Grid -->
    <div class="grid grid-cols-1 md:grid-cols-3 gap-8">

        <!-- Members Card -->
        <div class="bg-gradient-to-br from-green-50 to-white shadow-xl rounded-2xl p-6 relative overflow-hidden">
            <div class="absolute top-0 right-0 opacity-20 text-7xl">
                <svg xmlns="http://www.w3.org/2000/svg" class="h-24 w-24 text-green-300" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5.121 17.804A4.992 4.992 0 015 16.5C5 13.462 7.462 11 10.5 11h3c3.038 0 5.5 2.462 5.5 5.5 0 .966-.263 1.868-.72 2.64M15 10a3 3 0 11-6 0 3 3 0 016 0z" />
                </svg>
            </div>
            <h2 class="text-gray-500 uppercase tracking-wide text-sm font-semibold">Members</h2>
            <p class="text-4xl font-bold text-gray-800 mt-2"><?php echo e($membersCount); ?></p>
            <a href="/admin/members" class="mt-6 inline-block bg-green-600 hover:bg-green-700 text-white px-5 py-2 rounded-lg shadow transition">
                Manage Members
            </a>
        </div>

        <!-- Messages Card -->
        <div class="bg-gradient-to-br from-blue-50 to-white shadow-xl rounded-2xl p-6 relative overflow-hidden">
            <div class="absolute top-0 right-0 opacity-20 text-7xl">
                <svg xmlns="http://www.w3.org/2000/svg" class="h-24 w-24 text-blue-300" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 10h.01M12 10h.01M16 10h.01M21 16V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2h14a2 2 0 002-2z" />
                </svg>
            </div>
            <h2 class="text-gray-500 uppercase tracking-wide text-sm font-semibold">Messages</h2>
            <p class="text-4xl font-bold text-gray-800 mt-2"><?php echo e($messagesCount); ?></p>
            <a href="/admin/messages" class="mt-6 inline-block bg-blue-600 hover:bg-blue-700 text-white px-5 py-2 rounded-lg shadow transition">
                View Messages
            </a>
        </div>

        <!-- Site Content Card -->
        <div class="bg-gradient-to-br from-purple-50 to-white shadow-xl rounded-2xl p-6 relative overflow-hidden">
            <div class="absolute top-0 right-0 opacity-20 text-7xl">
                <svg xmlns="http://www.w3.org/2000/svg" class="h-24 w-24 text-purple-300" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 7h18M3 12h18M3 17h18" />
                </svg>
            </div>
            <h2 class="text-gray-500 uppercase tracking-wide text-sm font-semibold">Site Content</h2>
            <p class="text-4xl font-bold text-gray-800 mt-2"><?php echo e($contentCount); ?></p>
            <a href="/admin/content" class="mt-6 inline-block bg-purple-600 hover:bg-purple-700 text-white px-5 py-2 rounded-lg shadow transition">
                Manage Content
            </a>
        </div>

    </div>


</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/dawoodik/Documents/x/ahoj-admin/resources/views/admin/dashboard.blade.php ENDPATH**/ ?>