<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['header']));

foreach ($attributes->all() as $__key => $__value) {
    if (in_array($__key, $__propNames)) {
        $$__key = $$__key ?? $__value;
    } else {
        $__newAttributes[$__key] = $__value;
    }
}

$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);

unset($__propNames);
unset($__newAttributes);

foreach (array_filter((['header']), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
}

$__defined_vars = get_defined_vars();

foreach ($attributes->all() as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
}

unset($__defined_vars); ?>
<!DOCTYPE html>
<html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>" dir="<?php echo e(app()->getLocale() === 'ar' ? 'rtl' : 'ltr'); ?>">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">

        <title>POS</title>
        <link rel="icon" href="data:,">

        <!-- Fonts -->
        <link rel="preconnect" href="https://fonts.bunny.net">
        <link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
        <?php if(app()->getLocale() === 'ar'): ?>
        <link href="https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&display=swap" rel="stylesheet">
        <?php elseif(app()->getLocale() === 'bn'): ?>
        <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap" rel="stylesheet">
        <?php endif; ?>

        <!-- Bootstrap CDN -->
        <?php if(app()->getLocale() === 'ar'): ?>
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.rtl.min.css">
        <?php else: ?>
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
        <?php endif; ?>
        <!-- Bootstrap Icons -->
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
        <!-- Searchable select dropdowns -->
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tom-select@2.3.1/dist/css/tom-select.bootstrap5.min.css">

        <style>
            :root { --brand: #0dcaee; --brand-dark: #0aa8c8; }
            body { background: #f0f4f8; }
            <?php if(app()->getLocale() === 'ar'): ?> body { font-family: 'Cairo', sans-serif; } <?php endif; ?>
            <?php if(app()->getLocale() === 'bn'): ?> body { font-family: 'Noto Sans Bengali', sans-serif; } <?php endif; ?>
            .navbar-brand { font-weight: 700; letter-spacing: .5px; font-size: 1.1rem; }
            .main-navbar { background: linear-gradient(135deg, #0dcaee 0%, #0a9fc0 100%); box-shadow: 0 2px 12px rgba(13,202,238,.35); }
            .main-navbar .nav-link { color: rgba(255,255,255,.9) !important; font-size: .875rem; font-weight: 500; padding: .45rem .75rem !important; border-radius: 6px; transition: background .2s; }
            .main-navbar .nav-link:hover, .main-navbar .nav-link.active { background: rgba(255,255,255,.18); color: #fff !important; }
            .main-navbar .dropdown-menu { border: none; box-shadow: 0 8px 24px rgba(0,0,0,.12); border-radius: 10px; margin-top: 6px; }
            .main-navbar .dropdown-item { font-size: .85rem; padding: .45rem 1rem; border-radius: 6px; }
            .main-navbar .dropdown-item:hover { background: #e8f9fd; color: #0aa8c8; }
            .main-navbar .dropdown-item i { width: 18px; }
            .main-navbar .nav-divider { border-left: 1px solid rgba(255,255,255,.3); height: 20px; margin: auto .5rem; }
            .navbar-toggler { border-color: rgba(255,255,255,.4); }
            .navbar-toggler-icon { filter: invert(1); }
            .badge-dot { width:8px;height:8px;border-radius:50%;display:inline-block;background:#28a745;margin-left:3px;vertical-align:middle; }
            .page-content { padding: 1.5rem 0; }
            .ts-wrapper {
                width: 100%;
            }
            .ts-wrapper .ts-control {
                min-height: calc(2.25rem + 2px);
            }
            .ts-dropdown {
                z-index: 2100;
            }
        </style>
    </head>
    <body>
        <nav class="navbar navbar-expand-lg main-navbar">
            <div class="container-fluid px-3">
                <a class="navbar-brand text-white" href="<?php echo e(route('dashboard')); ?>">
                    <i class="bi bi-shop me-2"></i>Dubai Resturant
                </a>
                <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mainNavbar" aria-controls="mainNavbar" aria-expanded="false" aria-label="Toggle navigation">
                    <span class="navbar-toggler-icon"></span>
                </button>

                <div class="collapse navbar-collapse" id="mainNavbar">
                    <ul class="navbar-nav me-auto mb-2 mb-lg-0 gap-1">
                        <li class="nav-item">
                            <a class="nav-link<?php echo e(request()->routeIs('dashboard') ? ' active' : ''); ?>" href="<?php echo e(route('dashboard')); ?>">
                                <i class="bi bi-speedometer2 me-1"></i><?php echo e(__('app.dashboard')); ?>

                            </a>
                        </li>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('sales.view')): ?>
                        <li class="nav-item">
                            <a class="nav-link<?php echo e(request()->routeIs('sales.*') ? ' active' : ''); ?>" href="<?php echo e(route('sales.index')); ?>">
                                <i class="bi bi-cart3 me-1"></i><?php echo e(__('app.sales')); ?>

                            </a>
                        </li>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('purchases.view')): ?>
                        <li class="nav-item">
                            <a class="nav-link<?php echo e(request()->routeIs('purchases.*') ? ' active' : ''); ?>" href="<?php echo e(route('purchases.index')); ?>">
                                <i class="bi bi-box-seam me-1"></i><?php echo e(__('app.purchases')); ?>

                            </a>
                        </li>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('expenses.view')): ?>
                        <li class="nav-item">
                            <a class="nav-link<?php echo e(request()->routeIs('expenses.*') ? ' active' : ''); ?>" href="<?php echo e(route('expenses.index')); ?>">
                                <i class="bi bi-receipt me-1"></i><?php echo e(__('app.expenses')); ?>

                            </a>
                        </li>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('bank-withdrawals.view')): ?>
                        <li class="nav-item">
                            <a class="nav-link<?php echo e(request()->routeIs('bank-withdrawals.*') ? ' active' : ''); ?>" href="<?php echo e(route('bank-withdrawals.index')); ?>">
                                <i class="bi bi-bank me-1"></i><?php echo e(__('app.bank_withdrawals')); ?>

                            </a>
                        </li>
                        <?php endif; ?>
                        <!-- HR Dropdown -->
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['employees.view', 'rosters.view', 'employee-payments.view'])): ?>
                        <li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle<?php echo e(request()->routeIs('employees.*','rosters.*','employee-payments.*') ? ' active' : ''); ?>" href="#" data-bs-toggle="dropdown">
                                <i class="bi bi-people me-1"></i><?php echo e(__('app.employees')); ?>

                            </a>
                            <ul class="dropdown-menu">
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('employees.view')): ?>
                                <li><a class="dropdown-item" href="<?php echo e(route('employees.index')); ?>"><i class="bi bi-person-badge me-1"></i><?php echo e(__('app.employees')); ?></a></li>
                                <?php endif; ?>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('rosters.view')): ?>
                                <li><a class="dropdown-item" href="<?php echo e(route('rosters.index')); ?>"><i class="bi bi-calendar3 me-1"></i><?php echo e(__('app.rosters')); ?></a></li>
                                <?php endif; ?>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('employee-payments.view')): ?>
                                <li><a class="dropdown-item" href="<?php echo e(route('employee-payments.index')); ?>"><i class="bi bi-cash-coin me-1"></i><?php echo e(__('app.employee_payments')); ?></a></li>
                                <?php endif; ?>
                            </ul>
                        </li>
                        <?php endif; ?>
                        <!-- Customers Dropdown -->
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['customers.view', 'customer-ledgers.view'])): ?>
                        <li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle<?php echo e(request()->routeIs('customers.*','customer-ledgers.*') ? ' active' : ''); ?>" href="#" data-bs-toggle="dropdown">
                                <i class="bi bi-person-lines-fill me-1"></i><?php echo e(__('app.customers')); ?>

                            </a>
                            <ul class="dropdown-menu">
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('customers.view')): ?>
                                <li><a class="dropdown-item" href="<?php echo e(route('customers.index')); ?>"><i class="bi bi-person-check me-1"></i><?php echo e(__('app.customers')); ?></a></li>
                                <?php endif; ?>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('customer-ledgers.view')): ?>
                                <li><a class="dropdown-item" href="<?php echo e(route('customer-ledgers.index')); ?>"><i class="bi bi-journal-text me-1"></i><?php echo e(__('app.customer_dues')); ?></a></li>
                                <?php endif; ?>
                            </ul>
                        </li>
                        <?php endif; ?>
                        <!-- Reports Dropdown -->
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['reports.view', 'shareholder-reports.view'])): ?>
                        <li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle<?php echo e(request()->routeIs('reports.*') ? ' active' : ''); ?>" href="#" data-bs-toggle="dropdown">
                                <i class="bi bi-bar-chart-line me-1"></i><?php echo e(__('app.reports')); ?>

                            </a>
                            <ul class="dropdown-menu">
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('reports.view')): ?>
                                <li><a class="dropdown-item" href="<?php echo e(route('reports.daily')); ?>"><i class="bi bi-calendar-day me-1"></i><?php echo e(__('app.daily_income')); ?></a></li>
                                <li><a class="dropdown-item" href="<?php echo e(route('reports.monthly')); ?>"><i class="bi bi-calendar-month me-1"></i><?php echo e(__('app.monthly_profit_loss')); ?></a></li>
                                <li><a class="dropdown-item" href="<?php echo e(route('reports.vendor')); ?>"><i class="bi bi-truck me-1"></i><?php echo e(__('app.vendor_report')); ?></a></li>
                                <?php endif; ?>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('shareholder-reports.view')): ?>
                                <li><a class="dropdown-item" href="<?php echo e(route('reports.shareholders')); ?>"><i class="bi bi-person-workspace me-1"></i><?php echo e(__('app.shareholder_report')); ?></a></li>
                                <?php endif; ?>
                            </ul>
                        </li>
                        <?php endif; ?>
                        <!-- Settings Dropdown -->
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['items.view', 'currencies.view', 'sale-sources.view', 'expense-categories.view', 'vendors.view', 'shareholders.view', 'users.view', 'roles.view'])): ?>
                        <li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle<?php echo e(request()->routeIs('users.*','roles.*','currencies.*','items.*','vendors.*','shareholders.*','settings.*') ? ' active' : ''); ?>" href="#" data-bs-toggle="dropdown">
                                <i class="bi bi-gear me-1"></i><?php echo e(__('app.settings')); ?>

                            </a>
                            <ul class="dropdown-menu">
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('items.view')): ?>
                                <li><a class="dropdown-item" href="<?php echo e(route('items.index')); ?>"><i class="bi bi-archive me-1"></i><?php echo e(__('app.items_stock')); ?></a></li>
                                <?php endif; ?>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('currencies.view')): ?>
                                <li><a class="dropdown-item" href="<?php echo e(route('currencies.index')); ?>"><i class="bi bi-currency-exchange me-1"></i><?php echo e(__('app.currency')); ?></a></li>
                                <?php endif; ?>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('sale-sources.view')): ?>
                                <li><a class="dropdown-item" href="<?php echo e(route('settings.sale-sources.index')); ?>"><i class="bi bi-tags me-1"></i><?php echo e(__('app.sale_sources')); ?></a></li>
                                <?php endif; ?>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('expense-categories.view')): ?>
                                <li><a class="dropdown-item" href="<?php echo e(route('settings.expense-categories.index')); ?>"><i class="bi bi-folder2-open me-1"></i><?php echo e(__('app.expense_categories')); ?></a></li>
                                <?php endif; ?>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['vendors.view', 'shareholders.view'])): ?>
                                <li><hr class="dropdown-divider"></li>
                                <?php endif; ?>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('vendors.view')): ?>
                                <li><a class="dropdown-item" href="<?php echo e(route('vendors.index')); ?>"><i class="bi bi-truck me-1"></i><?php echo e(__('app.vendors')); ?></a></li>
                                <?php endif; ?>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('shareholders.view')): ?>
                                <li><a class="dropdown-item" href="<?php echo e(route('shareholders.index')); ?>"><i class="bi bi-person-workspace me-1"></i><?php echo e(__('app.shareholders')); ?></a></li>
                                <?php endif; ?>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['users.view', 'roles.view'])): ?>
                                <li><hr class="dropdown-divider"></li>
                                <?php endif; ?>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('users.view')): ?>
                                <li><a class="dropdown-item" href="<?php echo e(route('users.index')); ?>"><i class="bi bi-people-fill me-1"></i><?php echo e(__('app.users')); ?></a></li>
                                <?php endif; ?>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('roles.view')): ?>
                                <li><a class="dropdown-item" href="<?php echo e(route('roles.index')); ?>"><i class="bi bi-shield-lock me-1"></i><?php echo e(__('app.roles_permissions')); ?></a></li>
                                <?php endif; ?>
                            </ul>
                        </li>
                        <?php endif; ?>
                    </ul>

                    <ul class="navbar-nav ms-auto mb-2 mb-lg-0 gap-1 align-items-center">
                        <!-- Language -->
                        <li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown">
                                <i class="bi bi-translate me-1"></i><?php echo e(strtoupper(app()->getLocale())); ?>

                            </a>
                            <ul class="dropdown-menu dropdown-menu-end">
                                <li><a class="dropdown-item<?php echo e(app()->getLocale() == 'en' ? ' active' : ''); ?>" href="<?php echo e(route('locale.switch', 'en')); ?>">🇺🇸 English</a></li>
                                <li><a class="dropdown-item<?php echo e(app()->getLocale() == 'bn' ? ' active' : ''); ?>" href="<?php echo e(route('locale.switch', 'bn')); ?>">🇧🇩 বাংলা</a></li>
                                <li><a class="dropdown-item<?php echo e(app()->getLocale() == 'ar' ? ' active' : ''); ?>" href="<?php echo e(route('locale.switch', 'ar')); ?>">🇸🇦 العربية</a></li>
                            </ul>
                        </li>
                        <!-- User -->
                        <li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle d-flex align-items-center gap-1" href="#" data-bs-toggle="dropdown">
                                <span class="bg-white text-primary rounded-circle d-inline-flex align-items-center justify-content-center fw-bold" style="width:28px;height:28px;font-size:.8rem;">
                                    <?php echo e(strtoupper(substr(Auth::user()->name, 0, 1))); ?>

                                </span>
                                <span class="d-none d-lg-inline"><?php echo e(Auth::user()->name); ?></span>
                            </a>
                            <ul class="dropdown-menu dropdown-menu-end">
                                <li class="px-3 py-2 small text-muted"><?php echo e(Auth::user()->email); ?></li>
                                <li><hr class="dropdown-divider my-1"></li>
                                <li><a class="dropdown-item" href="<?php echo e(route('profile.edit')); ?>"><i class="bi bi-person-circle me-1"></i><?php echo e(__('app.profile')); ?></a></li>
                                <li>
                                    <form method="POST" action="<?php echo e(route('logout')); ?>">
                                        <?php echo csrf_field(); ?>
                                        <button type="submit" class="dropdown-item text-danger"><i class="bi bi-box-arrow-right me-1"></i><?php echo e(__('app.logout')); ?></button>
                                    </form>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>

        <main class="container-fluid px-4 page-content">
            <?php if(session('success')): ?>
                <div class="alert alert-success alert-dismissible fade show" role="alert">
                    <?php echo e(session('success')); ?>

                    <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                </div>
            <?php endif; ?>
            <?php if(session('error')): ?>
                <div class="alert alert-danger alert-dismissible fade show" role="alert">
                    <?php echo e(session('error')); ?>

                    <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                </div>
            <?php endif; ?>

            <?php if($errors->any()): ?>
                <div class="alert alert-danger">
                    <ul class="mb-0">
                        <?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>
            <?php endif; ?>

            <?php if(isset($header)): ?>
                <div class="mb-4 d-flex align-items-center gap-2">
                    <h1 class="h4 mb-0 fw-bold"><?php echo e($header); ?></h1>
                </div>
            <?php endif; ?>

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

        </main>

        <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
        <script src="https://cdn.jsdelivr.net/npm/tom-select@2.3.1/dist/js/tom-select.complete.min.js"></script>
        <script>
            document.addEventListener('DOMContentLoaded', function () {
                document.querySelectorAll('select').forEach(function (el) {
                    if (el.dataset.searchableInit === '1' || el.dataset.noSearch === '1') {
                        return;
                    }

                    new TomSelect(el, {
                        create: false,
                        allowEmptyOption: true,
                        maxOptions: 500,
                        hidePlaceholder: false,
                    });

                    el.dataset.searchableInit = '1';
                });
            });
        </script>
    </body>
</html>
<?php /**PATH C:\Users\anwar\OneDrive\Desktop\Babu KSA\software\restaurant-management\resources\views/components/app-layout.blade.php ENDPATH**/ ?>