<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
    <title>Admin Panel - Dr. Rajan Shah</title>
    <?php if(file_exists(public_path('build/manifest.json')) || file_exists(public_path('hot'))): ?>
        <?php echo app('Illuminate\Foundation\Vite')(['resources/css/app.css', 'resources/js/app.js']); ?>
    <?php else: ?>
        <script src="https://cdn.tailwindcss.com"></script>
        <script>
            tailwind.config = {
                theme: {
                    extend: {
                        fontFamily: {
                            sans: ['Inter', 'sans-serif'],
                        },
                        colors: {
                            teal: {
                                50: '#fcf3f4',
                                100: '#f8e4e6',
                                200: '#efc3c8',
                                300: '#e2979f',
                                400: '#d0606e',
                                500: '#bc3c4d',
                                600: '#80182a',
                                700: '#751324',
                                800: '#641321',
                                900: '#55151f',
                            }
                        }
                    }
                }
            }
        </script>
    <?php endif; ?>
</head>
<body class="bg-gray-100 font-sans antialiased">
    <div class="min-h-screen flex">
        <!-- Sidebar -->
        <aside class="w-64 bg-teal-800 text-white flex-shrink-0 flex flex-col">
            <div class="h-16 flex items-center px-6 bg-teal-900 font-bold text-xl tracking-tight">
                <a href="<?php echo e(route('admin.dashboard')); ?>">Admin Panel</a>
            </div>
            <nav class="flex-1 px-4 py-6 space-y-2">
                <a href="<?php echo e(route('admin.dashboard')); ?>" class="block px-4 py-2 rounded-md hover:bg-teal-700 <?php echo e(request()->routeIs('admin.dashboard') ? 'bg-teal-700' : ''); ?>">Dashboard</a>
                <a href="<?php echo e(route('admin.services.index')); ?>" class="block px-4 py-2 rounded-md hover:bg-teal-700 <?php echo e(request()->routeIs('admin.services.*') ? 'bg-teal-700' : ''); ?>">Services</a>
                <a href="<?php echo e(route('admin.gallery.index')); ?>" class="block px-4 py-2 rounded-md hover:bg-teal-700 <?php echo e(request()->routeIs('admin.gallery.*') ? 'bg-teal-700' : ''); ?>">Gallery</a>
                <a href="<?php echo e(route('admin.blogs.index')); ?>" class="block px-4 py-2 rounded-md hover:bg-teal-700 <?php echo e(request()->routeIs('admin.blogs.*') ? 'bg-teal-700' : ''); ?>">Blogs</a>
                <a href="<?php echo e(route('admin.appointments.index')); ?>" class="block px-4 py-2 rounded-md hover:bg-teal-700 <?php echo e(request()->routeIs('admin.appointments.*') ? 'bg-teal-700' : ''); ?>">Appointments</a>
                <a href="<?php echo e(route('admin.messages.index')); ?>" class="block px-4 py-2 rounded-md hover:bg-teal-700 <?php echo e(request()->routeIs('admin.messages.*') ? 'bg-teal-700' : ''); ?>">Contact Messages</a>
                <a href="<?php echo e(route('admin.homepage.edit')); ?>" class="block px-4 py-2 rounded-md hover:bg-teal-700 <?php echo e(request()->routeIs('admin.homepage.*') ? 'bg-teal-700' : ''); ?>">Homepage Content</a>
                <a href="<?php echo e(route('admin.about.edit')); ?>" class="block px-4 py-2 rounded-md hover:bg-teal-700 <?php echo e(request()->routeIs('admin.about.*') ? 'bg-teal-700' : ''); ?>">About Page Content</a>
                <a href="<?php echo e(route('admin.features.index')); ?>" class="block px-4 py-2 rounded-md hover:bg-teal-700 <?php echo e(request()->routeIs('admin.features.*') ? 'bg-teal-700' : ''); ?>">Homepage Benefits</a>
                <a href="<?php echo e(route('admin.testimonials.index')); ?>" class="block px-4 py-2 rounded-md hover:bg-teal-700 <?php echo e(request()->routeIs('admin.testimonials.*') ? 'bg-teal-700' : ''); ?>">Testimonials</a>
                <a href="<?php echo e(route('admin.settings.index')); ?>" class="block px-4 py-2 rounded-md hover:bg-teal-700 <?php echo e(request()->routeIs('admin.settings.*') ? 'bg-teal-700' : ''); ?>">Site Settings</a>
            </nav>
            <div class="p-4 border-t border-teal-700">
                <a href="<?php echo e(route('home')); ?>" target="_blank" class="block text-center w-full bg-teal-600 hover:bg-teal-500 text-white px-4 py-2 rounded-md text-sm font-medium transition">View Live Site</a>
            </div>
        </aside>

        <!-- Main Content Area -->
        <div class="flex-1 flex flex-col min-w-0 overflow-hidden">
            <!-- Header (Optional, could just use empty space or a breadcrumb) -->
            <header class="bg-white shadow h-16 flex items-center px-6 justify-between">
                <h2 class="text-lg font-medium text-gray-800">
                    <?php echo $__env->yieldContent('header', 'Dashboard'); ?>
                </h2>
                <div class="flex items-center space-x-4">
                    <span class="text-sm text-gray-500">Welcome, Admin</span>
                    <form method="POST" action="<?php echo e(route('logout')); ?>" class="inline">
                        <?php echo csrf_field(); ?>
                        <button type="submit" class="text-sm text-red-600 hover:text-red-800 font-medium transition">
                            Logout
                        </button>
                    </form>
                </div>
            </header>

            <!-- Main Content -->
            <main class="flex-1 overflow-auto p-6">
                <?php if(session('success')): ?>
                <div class="mb-6 bg-green-50 border-l-4 border-green-500 p-4 rounded-md shadow-sm">
                    <div class="flex">
                        <div class="flex-shrink-0">
                            <svg class="h-5 w-5 text-green-400" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"/></svg>
                        </div>
                        <div class="ml-3">
                            <p class="text-sm text-green-700 font-medium"><?php echo e(session('success')); ?></p>
                        </div>
                    </div>
                </div>
                <?php endif; ?>

                <?php if($errors->any()): ?>
                <div class="mb-6 bg-red-50 border-l-4 border-red-500 p-4 rounded-md shadow-sm">
                    <div class="flex">
                        <div class="ml-3">
                            <h3 class="text-sm font-medium text-red-800">There were errors with your submission</h3>
                            <div class="mt-2 text-sm text-red-700">
                                <ul class="list-disc pl-5 space-y-1">
                                    <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <li><?php echo e($error); ?></li>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
                <?php endif; ?>

                <?php echo $__env->yieldContent('content'); ?>
            </main>
        </div>
    </div>
    <?php echo $__env->yieldPushContent('scripts'); ?>
</body>
</html>
<?php /**PATH /Users/sumankc/Desktop/ Websites/Dr Rajan/resources/views/layouts/admin.blade.php ENDPATH**/ ?>