<?php
if (!function_exists('_54f5ac09180420401b42f31ddcebfb06')):
function _54f5ac09180420401b42f31ddcebfb06($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
$__env = $__blaze->env;
$__slots['slot'] ??= new \Illuminate\View\ComponentSlot('');
if (($__data['attributes'] ?? null) instanceof \Illuminate\View\ComponentAttributeBag) { $__data = $__data + $__data['attributes']->all(); unset($__data['attributes']); }
extract($__slots, EXTR_SKIP); unset($__slots);
extract($__data, EXTR_SKIP);
$attributes = \Livewire\Blaze\Runtime\BlazeAttributeBag::make($__data, $__bound, $__keys);
unset($__data, $__bound, $__keys);
ob_start();
?>
<?php
$__defaults = ['title' => null, 'pageTitle' => 'Restaurant Portal'];
$title ??= $attributes['title'] ?? $__defaults['title']; unset($attributes['title']);
$pageTitle ??= $attributes['page-title'] ?? $attributes['pageTitle'] ?? $__defaults['pageTitle']; unset($attributes['pageTitle'], $attributes['page-title']);
unset($__defaults);
?>

<!DOCTYPE html>
<html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?php echo e($title ? $title . ' | ' : ''); ?>Client Portal</title>
    <?php echo app('Illuminate\Foundation\Vite')(['resources/css/app.css', 'resources/js/app.js']); ?>
</head>
<body class="bg-zinc-50 font-sans antialiased text-zinc-900">
    <div class="flex min-h-screen">
        <!-- Sidebar -->
        <aside class="w-64 border-r border-zinc-200 bg-white hidden md:flex flex-col z-20">
            <div class="p-6 border-b border-zinc-200">
                <div class="flex items-center space-x-3">
                    <div class="w-9 h-9 bg-amber-600 rounded-sm flex items-center justify-center text-white font-bold shadow-lg shadow-amber-900/10">
                        <?php echo e(substr(auth()->user()->activeBranch->name ?? 'R', 0, 1)); ?>

                    </div>
                    <div class="flex-1 min-w-0">
                        <h2 class="text-xs font-bold truncate uppercase tracking-tight text-zinc-900"><?php echo e(auth()->user()->activeBranch->name ?? 'No Branch'); ?></h2>
                        <p class="text-[9px] text-amber-600 font-bold uppercase tracking-widest">Active Branch</p>
                    </div>
                </div>
            </div>
            
            <nav class="flex-1 p-3 space-y-1 overflow-y-auto">
                <a href="<?php echo e(route('portal.dashboard')); ?>" class="flex items-center px-3 py-2 text-xs font-medium rounded-sm <?php echo e(request()->routeIs('portal.dashboard') ? 'bg-amber-50 text-amber-600 border-l-2 border-amber-600' : 'text-zinc-600 hover:bg-zinc-50'); ?>">
                    Dashboard
                </a>
                <a href="<?php echo e(route('portal.settings.edit')); ?>" class="flex items-center px-3 py-2 text-xs font-medium rounded-sm <?php echo e(request()->routeIs('portal.settings.*') ? 'bg-amber-50 text-amber-600 border-l-2 border-amber-600' : 'text-zinc-600 hover:bg-zinc-50'); ?>">
                    Settings
                </a>
                <div class="pt-6 pb-2 px-3 text-[10px] font-bold text-zinc-400 uppercase tracking-widest">Workspace</div>
                <a href="<?php echo e(route('portal.categories.index')); ?>" class="flex items-center px-3 py-2 text-xs font-medium rounded-sm <?php echo e(request()->routeIs('portal.categories.*') ? 'bg-amber-50 text-amber-600 border-l-2 border-amber-600' : 'text-zinc-600 hover:bg-zinc-50'); ?>">
                    Categories
                </a>
                <a href="<?php echo e(route('portal.items.index')); ?>" class="flex items-center px-3 py-2 text-xs font-medium rounded-sm <?php echo e(request()->routeIs('portal.items.*') ? 'bg-amber-50 text-amber-600 border-l-2 border-amber-600' : 'text-zinc-600 hover:bg-zinc-50'); ?>">
                    Menu Items
                </a>
                <a href="<?php echo e(route('portal.deals.index')); ?>" class="flex items-center px-3 py-2 text-xs font-medium rounded-sm <?php echo e(request()->routeIs('portal.deals.*') ? 'bg-amber-50 text-amber-600 border-l-2 border-amber-600' : 'text-zinc-600 hover:bg-zinc-50'); ?>">
                    Deals & Offers
                </a>
                <div class="pt-6 pb-2 px-3 text-[10px] font-bold text-zinc-400 uppercase tracking-widest">Layout</div>
                <a href="<?php echo e(route('portal.table-areas.index')); ?>" class="flex items-center px-3 py-2 text-xs font-medium rounded-sm <?php echo e(request()->routeIs('portal.table-areas.*') ? 'bg-amber-50 text-amber-600 border-l-2 border-amber-600' : 'text-zinc-600 hover:bg-zinc-50'); ?>">
                    Areas/Zones
                </a>
                <a href="<?php echo e(route('portal.tables.index')); ?>" class="flex items-center px-3 py-2 text-xs font-medium rounded-sm <?php echo e(request()->routeIs('portal.tables.*') ? 'bg-amber-50 text-amber-600 border-l-2 border-amber-600' : 'text-zinc-600 hover:bg-zinc-50'); ?>">
                    Tables Grid
                </a>
                <div class="pt-6 pb-2 px-3 text-[10px] font-bold text-zinc-400 uppercase tracking-widest">Team</div>
                <a href="<?php echo e(route('portal.staff.index')); ?>" class="flex items-center px-3 py-2 text-xs font-medium rounded-sm <?php echo e(request()->routeIs('portal.staff.*') ? 'bg-amber-50 text-amber-600 border-l-2 border-amber-600' : 'text-zinc-600 hover:bg-zinc-50'); ?>">
                    Staff Members
                </a>
            </nav>

            <div class="p-4 border-t border-zinc-100 bg-zinc-50/50">
                <div class="flex items-center space-x-3 mb-4 p-2 rounded-sm bg-white border border-zinc-200 shadow-sm">
                    <div class="w-8 h-8 rounded-full bg-zinc-100 flex items-center justify-center text-xs font-bold text-zinc-600 border border-zinc-200">
                        <?php echo e(substr(auth()->user()->name, 0, 1)); ?>

                    </div>
                    <div class="flex-1 min-w-0">
                        <p class="text-xs font-bold truncate leading-none text-zinc-900"><?php echo e(auth()->user()->name); ?></p>
                        <a href="<?php echo e(route('portal.branches.select')); ?>" class="text-[9px] text-amber-600 hover:underline font-bold uppercase tracking-tight mt-1 inline-block">Switch Branch</a>
                    </div>
                </div>
                <form action="<?php echo e(route('portal.logout')); ?>" method="POST">
                    <?php echo csrf_field(); ?>
                    <button type="submit" class="w-full px-2 py-2 text-[10px] font-bold uppercase tracking-widest text-zinc-500 border border-zinc-200 rounded-sm hover:bg-white hover:text-red-600 transition-all">
                        Exit Portal
                    </button>
                </form>
            </div>
        </aside>

        <!-- Main Content -->
        <main class="flex-1 flex flex-col min-w-0">
            <!-- Header -->
            <header class="h-14 border-b border-zinc-200 bg-white flex items-center justify-between px-6 sticky top-0 z-10">
                <h1 class="text-xs font-bold text-zinc-400 uppercase tracking-widest"><?php echo e($pageTitle); ?></h1>
                <div class="flex items-center space-x-4">
                    <div class="flex items-center space-x-2 px-3 py-1 rounded-full bg-green-50 text-green-600 border border-green-200">
                        <div class="w-1.5 h-1.5 rounded-full bg-green-500 animate-pulse"></div>
                        <span class="text-[10px] font-bold uppercase tracking-tight">Active Session</span>
                    </div>
                </div>
            </header>

            <div class="p-8 overflow-auto">
                <?php if(session('success')): ?>
                    <div class="mb-6 p-4 bg-emerald-50 border border-emerald-200 text-emerald-600 rounded-sm flex items-center space-x-3 animate-in fade-in slide-in-from-top-4 duration-300">
                        <svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg>
                        <p class="text-[11px] font-bold uppercase tracking-tight"><?php echo e(session('success')); ?></p>
                    </div>
                <?php endif; ?>

                <?php if(session('error')): ?>
                    <div class="mb-6 p-4 bg-rose-50 border border-rose-200 text-rose-600 rounded-sm flex items-center space-x-3 animate-in fade-in slide-in-from-top-4 duration-300">
                        <svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>
                        <p class="text-[11px] font-bold uppercase tracking-tight"><?php echo e(session('error')); ?></p>
                    </div>
                <?php endif; ?>

                <?php echo e($slot); ?>

            </div>
        </main>
    </div>
</body>
</html>
<?php
echo ltrim(ob_get_clean());
} endif; ?><?php /**PATH /Users/sbs/Downloads/Archive 13/resources/views/components/layouts/portal.blade.php ENDPATH**/ ?>