<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Admin - <?php echo $__env->yieldContent('title', 'Dashboard'); ?></title>
    <script src="https://cdn.tailwindcss.com"></script>
    <!-- Alpine.js -->
    <script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>
</head>
<body class="bg-gray-100">
    <div x-data="{ sidebarOpen: false }">
        <!-- Sidebar -->
        <div class="fixed inset-y-0 left-0 w-64 bg-gray-900 text-white transform transition-transform duration-200" 
             :class="{ '-translate-x-full': !sidebarOpen, 'translate-x-0': sidebarOpen }">
            <div class="p-6">
                <h1 class="text-2xl font-bold">Admin Panel</h1>
            </div>
            
            <nav class="mt-4">
                <a href="<?php echo e(route('admin.dashboard')); ?>" 
                   class="block py-2.5 px-6 text-gray-300 hover:bg-gray-800 <?php echo e(request()->routeIs('admin.dashboard') ? 'bg-gray-800' : ''); ?>">
                    Dashboard
                </a>
                <a href="<?php echo e(route('admin.shipments.index')); ?>" 
                   class="block py-2.5 px-6 text-gray-300 hover:bg-gray-800 <?php echo e(request()->routeIs('admin.shipments.*') ? 'bg-gray-800' : ''); ?>">
                    Shipments
                </a>
                <a href="<?php echo e(route('admin.settings.general')); ?>" 
                   class="block py-2.5 px-6 text-gray-300 hover:bg-gray-800 <?php echo e(request()->routeIs('admin.settings.general') ? 'bg-gray-800' : ''); ?>">
                    General Settings
                </a>
             <a href="<?php echo e(route('admin.settings.email')); ?>" 
                   class="block py-2.5 px-6 text-gray-300 hover:bg-gray-800 <?php echo e(request()->routeIs('admin.settings.email') ? 'bg-gray-800' : ''); ?>">
                    Email Settings
                </a>
                <a href="<?php echo e(route('admin.profile')); ?>" 
                   class="block py-2.5 px-6 text-gray-300 hover:bg-gray-800 <?php echo e(request()->routeIs('admin.profile') ? 'bg-gray-800' : ''); ?>">
                    Profile
                </a>
            </nav>
        </div>

        <!-- Content area -->
        <div class="min-h-screen" :class="{ 'ml-64': sidebarOpen }">
            <!-- Top bar -->
            <div class="bg-white shadow">
                <div class="flex items-center justify-between h-16 px-4">
                    <button @click="sidebarOpen = !sidebarOpen" class="text-gray-500 hover:text-gray-700">
                        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"/>
                        </svg>
                    </button>
                    
                    <div class="flex items-center">
                        <div x-data="{ dropdownOpen: false }" class="relative">
                            <button @click="dropdownOpen = !dropdownOpen" class="flex items-center space-x-2">
                                <span><?php echo e(Auth::user()->name); ?></span>
                                <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/>
                                </svg>
                            </button>
                            
                            <div x-show="dropdownOpen" 
                                 @click.away="dropdownOpen = false"
                                 class="absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1">
                                <form method="POST" action="<?php echo e(route('logout')); ?>">
                                    <?php echo csrf_field(); ?>
                                    <button type="submit" 
                                            class="block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">
                                        Logout
                                    </button>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Main content -->
            <div class="p-6">
                <?php echo $__env->yieldContent('content'); ?>
            </div>
        </div>
    </div>
</body>
</html><?php /**PATH /home/waccoama/expressdeliveryfreight.com/resources/views/admin/layouts/app.blade.php ENDPATH**/ ?>