<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo e($title ?? 'Dashboard Partner'); ?> - AmikomEventHub</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
    <link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght=300;400;500;600;700&display=swap" rel="stylesheet">
    <style>
        body { font-family: 'Plus Jakarta Sans', sans-serif; }
    </style>
</head>
<body class="bg-slate-50 text-slate-900 flex min-h-screen">

    <aside class="w-64 bg-emerald-900 text-emerald-100 flex flex-col p-6 space-y-8 sticky top-0 h-screen shadow-xl">
        <div class="flex items-center gap-3">
            <div class="w-10 h-10 bg-white rounded-xl flex items-center justify-center text-emerald-900 font-bold text-xl">PH</div>
            <span class="text-xl font-bold text-white tracking-tight">Partner Hub</span>
        </div>

        <nav class="flex-1 space-y-2 overflow-y-auto">
            <p class="text-[10px] font-bold uppercase tracking-widest text-emerald-400 mb-4 px-2">Menu Partner</p>

            <a href="<?php echo e(route('partner.dashboard')); ?>" class="flex items-center gap-3 px-4 py-3 <?php echo e(request()->routeIs('partner.dashboard') ? 'bg-emerald-800 text-white' : 'hover:bg-emerald-800'); ?> rounded-xl font-bold transition">
                <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"></path>
                </svg>
                Dashboard
            </a>

            <a href="<?php echo e(route('partner.events.index')); ?>" class="flex items-center gap-3 px-4 py-3 <?php echo e(request()->routeIs('partner.events.*') ? 'bg-emerald-800 text-white' : 'hover:bg-emerald-800'); ?> rounded-xl font-bold transition">
                <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path>
                </svg>
                Kelola Event
            </a>

            <a href="<?php echo e(route('partner.analytics')); ?>" class="flex items-center gap-3 px-4 py-3 <?php echo e(request()->routeIs('partner.analytics') ? 'bg-emerald-800 text-white' : 'hover:bg-emerald-800'); ?> rounded-xl font-bold transition">
                <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"></path>
                </svg>
                Analitik & Laporan
            </a>
        </nav>

        <div class="pt-6 border-t border-emerald-800">
            <div class="mb-4 px-2">
                <p class="text-sm font-bold text-white"><?php echo e($partner->name ?? Auth::guard('partner')->user()?->name); ?></p>
                <p class="text-xs text-emerald-300">
                    <?php if(($partner ?? Auth::guard('partner')->user())?->status === 'active'): ?>
                        <span class="text-green-300">&#9679; Aktif</span>
                    <?php else: ?>
                        <span class="text-yellow-300">&#9679; Pending</span>
                    <?php endif; ?>
                </p>
            </div>
            <form action="<?php echo e(route('partner.logout')); ?>" method="POST">
                <?php echo csrf_field(); ?>
                <button type="submit" class="w-full flex items-center gap-3 px-4 py-3 text-emerald-300 hover:text-white transition font-medium text-left rounded-xl hover:bg-emerald-800/50">
                    <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"></path>
                    </svg>
                    Keluar
                </button>
            </form>
        </div>
    </aside>

    <main class="flex-1 p-10 overflow-y-auto">
        <?php if(session('success')): ?>
            <div class="mb-6 bg-green-100 border border-green-300 text-green-800 px-6 py-4 rounded-2xl font-medium">
                <?php echo e(session('success')); ?>

            </div>
        <?php endif; ?>
        <?php if(session('error')): ?>
            <div class="mb-6 bg-red-100 border border-red-300 text-red-800 px-6 py-4 rounded-2xl font-medium">
                <?php echo e(session('error')); ?>

            </div>
        <?php endif; ?>
        <?php echo $__env->yieldContent('content'); ?>
    </main>

</body>
</html>

<?php /**PATH C:\laragon\www\Eventamikom-3182\resources\views/partner/layouts/partner.blade.php ENDPATH**/ ?>