<!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>Walton Plaza - <?php echo $__env->yieldContent('title'); ?></title>
    
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    
    <!-- Font Awesome 6 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <!-- Google Fonts - Inter -->
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
    
    <style>
        :root {
            --walton-blue: #003366;
            --walton-gold: #FFD700;
            --walton-light-blue: #E6F0FA;
            --walton-dark-blue: #002244;
            --walton-gray: #F5F5F5;
            --walton-white: #FFFFFF;
            --walton-black: #333333;
            --walton-text: #4a4a4a;
            --walton-text-light: #6c757d;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Inter', sans-serif;
            background: var(--walton-gray);
            color: var(--walton-text);
            font-size: 14px;
            line-height: 1.6;
        }
        
        /* Walton Top Bar */
        .walton-top-bar {
            background: var(--walton-dark-blue);
            color: var(--walton-white);
            padding: 6px 0;
            font-size: 12px;
            border-bottom: 2px solid var(--walton-gold);
        }
        
        .walton-top-bar a {
            color: var(--walton-white);
            text-decoration: none;
            margin-right: 15px;
            font-size: 12px;
            transition: color 0.3s;
        }
        
        .walton-top-bar a:hover {
            color: var(--walton-gold);
        }
        
        /* Main Header */
        .walton-header {
            background: var(--walton-white);
            padding: 12px 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .walton-logo {
            max-height: 45px;
        }
        
        .walton-header .nav-link {
            color: var(--walton-blue);
            font-weight: 500;
            font-size: 13px;
            padding: 8px 12px !important;
            transition: all 0.3s;
        }
        
        .walton-header .nav-link i {
            font-size: 14px;
            margin-right: 5px;
        }
        
        .walton-header .nav-link:hover {
            color: var(--walton-gold);
            background: var(--walton-light-blue);
            border-radius: 5px;
        }
        
        .walton-header .nav-link.active {
            color: var(--walton-gold);
            background: var(--walton-blue);
            border-radius: 5px;
        }
        
        /* Sidebar */
        .walton-sidebar {
            background: var(--walton-white);
            min-height: calc(100vh - 130px);
            box-shadow: 2px 0 10px rgba(0,0,0,0.05);
            border-right: 1px solid #e0e0e0;
            position: sticky;
            top: 0;
            height: 100vh;
            overflow-y: auto;
        }
        
        .walton-sidebar::-webkit-scrollbar {
            width: 4px;
        }
        
        .walton-sidebar::-webkit-scrollbar-track {
            background: #f1f1f1;
        }
        
        .walton-sidebar::-webkit-scrollbar-thumb {
            background: var(--walton-blue);
            border-radius: 5px;
        }
        
        .walton-sidebar .nav {
            padding: 15px 0;
        }
        
        .walton-sidebar .nav-link {
            color: var(--walton-text);
            padding: 10px 20px;
            border-left: 3px solid transparent;
            transition: all 0.3s;
            font-weight: 400;
            font-size: 13px;
            display: flex;
            align-items: center;
            white-space: nowrap;
        }
        
        .walton-sidebar .nav-link i {
            width: 22px;
            color: var(--walton-blue);
            font-size: 14px;
            margin-right: 8px;
        }
        
        .walton-sidebar .nav-link:hover {
            background: var(--walton-light-blue);
            border-left-color: var(--walton-blue);
            color: var(--walton-blue);
            font-weight: 500;
        }
        
        .walton-sidebar .nav-link.active {
            background: var(--walton-light-blue);
            border-left-color: var(--walton-gold);
            color: var(--walton-blue);
            font-weight: 500;
        }
        
        .walton-sidebar .nav-divider {
            color: var(--walton-blue);
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            padding: 20px 20px 5px;
            letter-spacing: 0.5px;
        }
        
        /* Dropdown/Submenu Styles */
        .nav-item {
            position: relative;
            width: 100%;
        }
        
        .nav-submenu {
            list-style: none;
            padding-left: 42px;
            margin-top: 3px;
            margin-bottom: 3px;
            display: none;
        }
        
        .nav-item.open .nav-submenu {
            display: block;
            animation: slideDown 0.2s ease;
        }
        
        .nav-submenu .nav-link {
            padding: 6px 15px !important;
            font-size: 12px;
            white-space: nowrap;
            font-weight: 400;
        }
        
        .nav-submenu .nav-link i {
            font-size: 11px;
            width: 18px;
            margin-right: 6px;
        }
        
        .has-submenu {
            cursor: pointer;
            position: relative;
        }
        
        .has-submenu i.float-end {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            transition: transform 0.3s;
            font-size: 11px;
        }
        
        .nav-item.open .has-submenu i.float-end {
            transform: translateY(-50%) rotate(180deg);
        }
        
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-5px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* Main Content */
        .walton-main-content {
            padding: 25px;
            background: var(--walton-gray);
            min-height: calc(100vh - 130px);
        }
        
        /* Walton Cards */
        .walton-card {
            background: var(--walton-white);
            border: none;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            margin-bottom: 20px;
            overflow: hidden;
        }
        
        .walton-card-header {
            background: linear-gradient(135deg, var(--walton-blue) 0%, var(--walton-dark-blue) 100%);
            color: var(--walton-white);
            padding: 12px 20px;
            font-weight: 500;
            font-size: 14px;
            border-bottom: 2px solid var(--walton-gold);
        }
        
        .walton-card-header i {
            margin-right: 8px;
            color: var(--walton-gold);
            font-size: 15px;
        }
        
        .walton-card-body {
            padding: 20px;
        }
        
        .walton-card-footer {
            background: var(--walton-gray);
            padding: 12px 20px;
            border-top: 1px solid #e0e0e0;
        }
        
        /* Walton Buttons */
        .walton-btn {
            padding: 8px 20px;
            border: none;
            border-radius: 5px;
            font-weight: 500;
            font-size: 13px;
            transition: all 0.3s;
            cursor: pointer;
        }
        
        .walton-btn-primary {
            background: var(--walton-blue);
            color: var(--walton-white);
        }
        
        .walton-btn-primary:hover {
            background: var(--walton-dark-blue);
            transform: translateY(-1px);
            box-shadow: 0 3px 10px rgba(0,51,102,0.2);
        }
        
        .walton-btn-gold {
            background: var(--walton-gold);
            color: var(--walton-blue);
        }
        
        .walton-btn-gold:hover {
            background: #E6C200;
            transform: translateY(-1px);
        }
        
        .walton-btn-outline {
            background: transparent;
            border: 1.5px solid var(--walton-blue);
            color: var(--walton-blue);
            padding: 6px 18px;
        }
        
        .walton-btn-outline:hover {
            background: var(--walton-blue);
            color: var(--walton-white);
        }
        
        /* Walton Table */
        .walton-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }
        
        .walton-table thead th {
            background: var(--walton-light-blue);
            color: var(--walton-blue);
            font-weight: 600;
            font-size: 13px;
            padding: 10px 15px;
            border-bottom: 2px solid var(--walton-gold);
        }
        
        .walton-table tbody td {
            padding: 10px 15px;
            border-bottom: 1px solid #e0e0e0;
            color: var(--walton-text);
        }
        
        .walton-table tbody tr:hover {
            background: var(--walton-light-blue);
        }
        
        /* Walton Badges */
        .walton-badge {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 500;
            display: inline-block;
        }
        
        .walton-badge-success {
            background: #27ae60;
            color: white;
        }
        
        .walton-badge-warning {
            background: var(--walton-gold);
            color: var(--walton-blue);
        }
        
        .walton-badge-danger {
            background: #e74c3c;
            color: white;
        }
        
        .walton-badge-info {
            background: var(--walton-blue);
            color: white;
        }
        
        /* Walton Form */
        .walton-form-control {
            width: 100%;
            padding: 8px 12px;
            border: 1.5px solid #e0e0e0;
            border-radius: 5px;
            font-size: 13px;
            transition: all 0.3s;
        }
        
        .walton-form-control:focus {
            border-color: var(--walton-blue);
            outline: none;
            box-shadow: 0 0 0 2px rgba(0,51,102,0.1);
        }
        
        .walton-form-label {
            font-weight: 500;
            color: var(--walton-blue);
            margin-bottom: 5px;
            font-size: 13px;
        }
        
        /* Footer */
        .walton-footer {
            background: var(--walton-dark-blue);
            color: var(--walton-white);
            padding: 12px 0;
            text-align: center;
            font-size: 12px;
            border-top: 2px solid var(--walton-gold);
        }
        
        .walton-footer a {
            color: var(--walton-gold);
            text-decoration: none;
        }
        
        .walton-footer a:hover {
            text-decoration: underline;
        }
        
        /* Animations */
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(15px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .walton-animated {
            animation: slideIn 0.4s ease-out;
        }
        
        /* Alerts */
        .alert {
            border-radius: 6px;
            margin-bottom: 20px;
            padding: 12px 20px;
            font-size: 13px;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .walton-main-content {
                padding: 15px;
            }
            
            .walton-sidebar {
                min-height: auto;
                margin-bottom: 20px;
                position: relative;
                height: auto;
            }
            
            .walton-table {
                display: block;
                overflow-x: auto;
            }
            
            .walton-header .navbar {
                display: none;
            }
            
            .walton-sidebar .nav-link {
                font-size: 12px;
                padding: 8px 15px;
            }
        }
    </style>
    
    <?php echo $__env->yieldPushContent('styles'); ?>
</head>
<body>
    <!-- Walton Top Bar -->
    <div class="walton-top-bar">
        <div class="container">
            <div class="row">
                <div class="col-md-6">
                    <i class="fas fa-phone-alt me-2"></i> 24/7 Support: 09612-712345
                    <i class="fas fa-envelope ms-4 me-2"></i> support@waltonplaza.com
                </div>
                <div class="col-md-6 text-end">
                    <a href="#"><i class="fab fa-facebook-f me-2"></i></a>
                    <a href="#"><i class="fab fa-youtube me-2"></i></a>
                    <a href="#"><i class="fab fa-instagram me-2"></i></a>
                </div>
            </div>
        </div>
    </div>
    
    <!-- Main Header -->
    <header class="walton-header">
        <div class="container">
            <div class="d-flex justify-content-between align-items-center">
                <img src="<?php echo e(asset('images/walton-logo.png')); ?>" alt="Walton Plaza" class="walton-logo">
                
                <nav class="navbar navbar-expand-lg">
                    <div class="collapse navbar-collapse">
                        <ul class="navbar-nav">
                            <li class="nav-item">
                                <a class="nav-link <?php echo e(request()->routeIs('dashboard') ? 'active' : ''); ?>" 
                                   href="<?php echo e(route('dashboard')); ?>">
                                    <i class="fas fa-home"></i> Dashboard
                                </a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link <?php echo e(request()->routeIs('sales.*') ? 'active' : ''); ?>" 
                                   href="<?php echo e(route('sales.index')); ?>">
                                    <i class="fas fa-shopping-cart"></i> Sales
                                </a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link <?php echo e(request()->routeIs('products.*') ? 'active' : ''); ?>" 
                                   href="<?php echo e(route('products.index')); ?>">
                                    <i class="fas fa-box"></i> Products
                                </a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link <?php echo e(request()->routeIs('customers.*') ? 'active' : ''); ?>" 
                                   href="<?php echo e(route('customers.index')); ?>">
                                    <i class="fas fa-users"></i> Customers
                                </a>
                            </li>
                        </ul>
                    </div>
                </nav>
                
                <div class="dropdown">
                    <button class="walton-btn walton-btn-outline dropdown-toggle" type="button" 
                            id="userDropdown" data-bs-toggle="dropdown">
                        <i class="fas fa-user-circle me-2"></i><?php echo e(Auth::user()->name ?? 'User'); ?>

                    </button>
                    <ul class="dropdown-menu dropdown-menu-end">
                        <li><a class="dropdown-item" href="#"><i class="fas fa-user me-2"></i>Profile</a></li>
                        <li><a class="dropdown-item" href="#"><i class="fas fa-key me-2"></i>Change Password</a></li>
                        <li><hr class="dropdown-divider"></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="fas fa-sign-out-alt me-2"></i>Logout
                                </button>
                            </form>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </header>
    
    <!-- Main Content -->
    <div class="container-fluid">
        <div class="row">
            <!-- Sidebar -->
            <div class="col-md-2 p-0">
                <div class="walton-sidebar">
                    <nav class="nav flex-column">
                        <span class="nav-divider">MAIN MENU</span>
                        
                        <!-- Dashboard -->
                        <a class="nav-link <?php echo e(request()->routeIs('dashboard') ? 'active' : ''); ?>" 
                           href="<?php echo e(route('dashboard')); ?>">
                            <i class="fas fa-tachometer-alt"></i> Dashboard
                        </a>
                        
                        <!-- Sales Management Dropdown -->
                        <div class="nav-item">
                            <a class="nav-link has-submenu <?php echo e(request()->routeIs('sales.*') ? 'active' : ''); ?>" 
                               href="javascript:void(0)" onclick="toggleSubmenu(this)">
                                <i class="fas fa-shopping-cart"></i> Sales Management
                                <i class="fas fa-chevron-down float-end"></i>
                            </a>
                            <ul class="nav-submenu">
                                <li>
                                    <a class="nav-link <?php echo e(request()->routeIs('sales.index') ? 'active' : ''); ?>" 
                                       href="<?php echo e(route('sales.index')); ?>">
                                        <i class="fas fa-list"></i> All Sales
                                    </a>
                                </li>
                                <li>
                                    <a class="nav-link <?php echo e(request()->routeIs('sales.create') ? 'active' : ''); ?>" 
                                       href="<?php echo e(route('sales.create')); ?>">
                                        <i class="fas fa-plus-circle"></i> New Sale
                                    </a>
                                </li>
                                <li>
                                    <a class="nav-link <?php echo e(request()->routeIs('sales.report') ? 'active' : ''); ?>" 
                                       href="<?php echo e(route('reports.sales')); ?>">
                                        <i class="fas fa-chart-line"></i> Sales Report
                                    </a>
                                </li>
                            </ul>
                        </div>
                        
                        <!-- Customer Management Dropdown -->
                        <div class="nav-item">
                            <a class="nav-link has-submenu <?php echo e(request()->routeIs('customers.*') ? 'active' : ''); ?>" 
                               href="javascript:void(0)" onclick="toggleSubmenu(this)">
                                <i class="fas fa-users"></i> Customer Management
                                <i class="fas fa-chevron-down float-end"></i>
                            </a>
                            <ul class="nav-submenu">
                                <li>
                                    <a class="nav-link <?php echo e(request()->routeIs('customers.index') ? 'active' : ''); ?>" 
                                       href="<?php echo e(route('customers.index')); ?>">
                                        <i class="fas fa-list"></i> All Customers
                                    </a>
                                </li>
                                <li>
                                    <a class="nav-link <?php echo e(request()->routeIs('customers.create') ? 'active' : ''); ?>" 
                                       href="<?php echo e(route('customers.create')); ?>">
                                        <i class="fas fa-user-plus"></i> New Customer
                                    </a>
                                </li>
                                <li>
                                    <a class="nav-link <?php echo e(request()->routeIs('customers.statement', ['customer' => 1]) ? 'active' : ''); ?>" 
                                       href="#">
                                        <i class="fas fa-file-invoice"></i> Customer Statement
                                    </a>
                                </li>
                            </ul>
                        </div>
                        
                        <!-- Product Management Dropdown -->
                        <div class="nav-item">
                            <a class="nav-link has-submenu <?php echo e(request()->routeIs('products.*') ? 'active' : ''); ?>" 
                               href="javascript:void(0)" onclick="toggleSubmenu(this)">
                                <i class="fas fa-box"></i> Product Management
                                <i class="fas fa-chevron-down float-end"></i>
                            </a>
                            <ul class="nav-submenu">
                                <li>
                                    <a class="nav-link <?php echo e(request()->routeIs('products.index') ? 'active' : ''); ?>" 
                                       href="<?php echo e(route('products.index')); ?>">
                                        <i class="fas fa-list"></i> All Products
                                    </a>
                                </li>
                                <li>
                                    <a class="nav-link <?php echo e(request()->routeIs('products.create') ? 'active' : ''); ?>" 
                                       href="<?php echo e(route('products.create')); ?>">
                                        <i class="fas fa-plus-circle"></i> New Product
                                    </a>
                                </li>
                                <li>
                                    <a class="nav-link <?php echo e(request()->routeIs('products.stock') ? 'active' : ''); ?>" 
                                       href="<?php echo e(route('products.stock', ['product' => 1])); ?>">
                                        <i class="fas fa-warehouse"></i> Stock Management
                                    </a>
                                </li>
                            </ul>
                        </div>
                        
                        <!-- Installments -->
                        <a class="nav-link <?php echo e(request()->routeIs('installments.*') ? 'active' : ''); ?>" 
                           href="<?php echo e(route('installments.index')); ?>">
                            <i class="fas fa-calendar-alt"></i> Installments
                        </a>
                        
                        <!-- Payments -->
                        <a class="nav-link <?php echo e(request()->routeIs('payments.*') ? 'active' : ''); ?>" 
                           href="<?php echo e(route('payments.index')); ?>">
                            <i class="fas fa-money-bill"></i> Payments
                        </a>
                        
                        <!-- Reports -->
                        <a class="nav-link <?php echo e(request()->routeIs('reports.*') ? 'active' : ''); ?>" 
                           href="<?php echo e(route('reports.index')); ?>">
                            <i class="fas fa-chart-bar"></i> Reports
                        </a>
                        
                        <span class="nav-divider">SETTINGS</span>
                        
                        <!-- Unit Management -->
                        <a class="nav-link <?php echo e(request()->routeIs('settings.units.*') ? 'active' : ''); ?>" 
                           href="<?php echo e(route('settings.units.index')); ?>">
                            <i class="fas fa-weight"></i> Unit Management
                        </a>
                        
                        <!-- Category Management Dropdown -->
                        <div class="nav-item">
                            <a class="nav-link has-submenu <?php echo e(request()->routeIs('settings.categories.*') ? 'active' : ''); ?>" 
                               href="javascript:void(0)" onclick="toggleSubmenu(this)">
                                <i class="fas fa-sitemap"></i> Category Management
                                <i class="fas fa-chevron-down float-end"></i>
                            </a>
                            <ul class="nav-submenu">
                                <li>
                                    <a class="nav-link <?php echo e(request()->routeIs('settings.categories.index') ? 'active' : ''); ?>" 
                                       href="<?php echo e(route('settings.categories.index')); ?>">
                                        <i class="fas fa-list"></i> Category List
                                    </a>
                                </li>
                                <li>
                                    <a class="nav-link <?php echo e(request()->routeIs('settings.categories.create') ? 'active' : ''); ?>" 
                                       href="<?php echo e(route('settings.categories.create')); ?>">
                                        <i class="fas fa-plus-circle"></i> New Category
                                    </a>
                                </li>
                                <li>
                                    <a class="nav-link <?php echo e(request()->routeIs('settings.categories.tree') ? 'active' : ''); ?>" 
                                       href="<?php echo e(route('settings.categories.tree')); ?>">
                                        <i class="fas fa-tree"></i> Category Tree
                                    </a>
                                </li>
                            </ul>
                        </div>
                        
                        <!-- Brand Management Dropdown -->
                        <div class="nav-item">
                            <a class="nav-link has-submenu <?php echo e(request()->routeIs('settings.brands.*') ? 'active' : ''); ?>" 
                               href="javascript:void(0)" onclick="toggleSubmenu(this)">
                                <i class="fas fa-trademark"></i> Brand Management
                                <i class="fas fa-chevron-down float-end"></i>
                            </a>
                            <ul class="nav-submenu">
                                <li>
                                    <a class="nav-link <?php echo e(request()->routeIs('settings.brands.index') ? 'active' : ''); ?>" 
                                       href="<?php echo e(route('settings.brands.index')); ?>">
                                        <i class="fas fa-list"></i> Brand List
                                    </a>
                                </li>
                                <li>
                                    <a class="nav-link <?php echo e(request()->routeIs('settings.brands.create') ? 'active' : ''); ?>" 
                                       href="<?php echo e(route('settings.brands.create')); ?>">
                                        <i class="fas fa-plus-circle"></i> New Brand
                                    </a>
                                </li>
                            </ul>
                        </div>
                        
                        <!-- Model Management Dropdown -->
                        <div class="nav-item">
                            <a class="nav-link has-submenu <?php echo e(request()->routeIs('settings.models.*') ? 'active' : ''); ?>" 
                               href="javascript:void(0)" onclick="toggleSubmenu(this)">
                                <i class="fas fa-cube"></i> Model Management
                                <i class="fas fa-chevron-down float-end"></i>
                            </a>
                            <ul class="nav-submenu">
                                <li>
                                    <a class="nav-link <?php echo e(request()->routeIs('settings.models.index') ? 'active' : ''); ?>" 
                                       href="<?php echo e(route('settings.models.index')); ?>">
                                        <i class="fas fa-list"></i> Model List
                                    </a>
                                </li>
                                <li>
                                    <a class="nav-link <?php echo e(request()->routeIs('settings.models.create') ? 'active' : ''); ?>" 
                                       href="<?php echo e(route('settings.models.create')); ?>">
                                        <i class="fas fa-plus-circle"></i> New Model
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </nav>
                </div>
            </div>
            
            <!-- Main Content Area -->
            <div class="col-md-10">
                <div class="walton-main-content">
                    <?php if(session('success')): ?>
                        <div class="alert alert-success alert-dismissible fade show" role="alert">
                            <i class="fas fa-check-circle me-2"></i> <?php echo e(session('success')); ?>

                            <button type="button" class="btn-close" data-bs-dismiss="alert"></button>
                        </div>
                    <?php endif; ?>
                    
                    <?php if(session('error')): ?>
                        <div class="alert alert-danger alert-dismissible fade show" role="alert">
                            <i class="fas fa-exclamation-circle me-2"></i> <?php echo e(session('error')); ?>

                            <button type="button" class="btn-close" data-bs-dismiss="alert"></button>
                        </div>
                    <?php endif; ?>
                    
                    <?php echo $__env->yieldContent('content'); ?>
                </div>
                
                <!-- Footer -->
                <footer class="walton-footer">
                    <div class="container">
                        <p>&copy; <?php echo e(date('Y')); ?> Walton Plaza. All rights reserved. | Developed by <a href="#">Walton Digital</a></p>
                    </div>
                </footer>
            </div>
        </div>
    </div>
    
    <!-- Scripts -->
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // Toggle submenu function
        function toggleSubmenu(element) {
            event.preventDefault();
            const parent = element.closest('.nav-item');
            parent.classList.toggle('open');
        }
        
        // Auto hide alerts
        setTimeout(function() {
            $('.alert').fadeOut('slow');
        }, 5000);
        
        // Keep submenus open if they contain active links
        document.addEventListener('DOMContentLoaded', function() {
            document.querySelectorAll('.nav-submenu .nav-link.active').forEach(link => {
                const parent = link.closest('.nav-item');
                if (parent) {
                    parent.classList.add('open');
                }
            });
        });
        
        // Sidebar toggle for mobile
        $('#sidebarToggle').click(function() {
            $('.walton-sidebar').toggleClass('show');
        });
    </script>
    
    <?php echo $__env->yieldPushContent('scripts'); ?>
</body>
</html><?php /**PATH /home/naowarin/walton.naowarinternational.my.id/resources/views/layouts/app.blade.php ENDPATH**/ ?>