<?php
    $currentPath = request()->path();

    $dashboardActive = $currentPath === 'dashboard';

    $inventoryActive = request()->is('inventory/*');
    $categoryActive = request()->is('categories/*');
    $customerActive = request()->is('customer/*');
    $orderActive = request()->is('order/*') || request()->is('invoice/*');
    $staffActive = request()->is('staff/*');
    $paymentActive = request()->is('payments*');
    $reportActive = request()->is('report*');
    $settingsActive = request()->is('settings*');
?>


<div class="iq-sidebar sidebar-default">

    <div class="iq-sidebar-logo d-flex align-items-center justify-content-between">

        <a href="<?php echo e(url('/dashboard')); ?>" class="header-logo">

            <img src="<?php echo e(asset('assets/images/logo.png')); ?>"
                 class="img-fluid rounded-normal light-logo"
                 alt="logo">

            <h5 class="logo-title light-logo ml-3">
                Z&T Stationary
            </h5>

        </a>

        <div class="iq-menu-bt-sidebar ml-0">
            <i class="las la-bars wrapper-menu"></i>
        </div>

    </div>


    <div class="data-scrollbar" data-scroll="1">

        <nav class="iq-sidebar-menu">

            <ul id="iq-sidebar-toggle" class="iq-menu">


                

                <li class="<?php echo e($dashboardActive ? 'active' : ''); ?>">

                    <a href="<?php echo e(url('/dashboard')); ?>"
                       class="<?php echo e($dashboardActive ? '' : 'collapsed'); ?>">

                        <i class="las la-home"
                           style="font-size:20px;">
                        </i>

                        <span class="ml-4">
                            Dashboards
                        </span>

                    </a>

                </li>


                

                <li class="<?php echo e($inventoryActive ? 'active' : ''); ?>">

                    <a href="#inventory"
                       class="<?php echo e($inventoryActive ? '' : 'collapsed'); ?>"
                       data-toggle="collapse"
                       aria-expanded="<?php echo e($inventoryActive ? 'true' : 'false'); ?>">

                        <i class="las la-shopping-cart"
                           style="font-size:20px;">
                        </i>

                        <span class="ml-4">
                            Inventory
                        </span>

                        <i class="las la-angle-down ml-auto"></i>

                    </a>


                    <ul id="inventory"
                        class="iq-submenu collapse <?php echo e($inventoryActive ? 'show' : ''); ?>"
                        data-parent="#iq-sidebar-toggle">

                        <li class="<?php echo e(request()->is('inventory/list') ? 'active' : ''); ?>">

                            <a href="<?php echo e(url('/inventory/list')); ?>">

                                <i class="las la-minus"></i>

                                <span>
                                    List Inventory
                                </span>

                            </a>

                        </li>


                        <li class="<?php echo e(request()->is('inventory/add') ? 'active' : ''); ?>">

                            <a href="<?php echo e(url('/inventory/add')); ?>">

                                <i class="las la-minus"></i>

                                <span>
                                    Add Inventory
                                </span>

                            </a>

                        </li>

                    </ul>

                </li>


                

                <li class="<?php echo e($categoryActive ? 'active' : ''); ?>">

                    <a href="#category"
                       class="<?php echo e($categoryActive ? '' : 'collapsed'); ?>"
                       data-toggle="collapse"
                       aria-expanded="<?php echo e($categoryActive ? 'true' : 'false'); ?>">

                        <i class="las la-copy"
                           style="font-size:20px;">
                        </i>

                        <span class="ml-4">
                            Categories
                        </span>

                        <i class="las la-angle-down ml-auto"></i>

                    </a>


                    <ul id="category"
                        class="iq-submenu collapse <?php echo e($categoryActive ? 'show' : ''); ?>"
                        data-parent="#iq-sidebar-toggle">

                        <li class="<?php echo e(request()->is('categories/list') ? 'active' : ''); ?>">

                            <a href="<?php echo e(url('/categories/list')); ?>">

                                <i class="las la-minus"></i>

                                <span>
                                    List Category
                                </span>

                            </a>

                        </li>


                        <li class="<?php echo e(request()->is('categories/add') ? 'active' : ''); ?>">

                            <a href="<?php echo e(url('/categories/add')); ?>">

                                <i class="las la-minus"></i>

                                <span>
                                    Add Category
                                </span>

                            </a>

                        </li>

                    </ul>

                </li>


                

                <li class="<?php echo e($customerActive ? 'active' : ''); ?>">

                    <a href="#customer"
                       class="<?php echo e($customerActive ? '' : 'collapsed'); ?>"
                       data-toggle="collapse"
                       aria-expanded="<?php echo e($customerActive ? 'true' : 'false'); ?>">

                        <i class="las la-users"
                           style="font-size:20px;">
                        </i>

                        <span class="ml-4">
                            Customer
                        </span>

                        <i class="las la-angle-down ml-auto"></i>

                    </a>


                    <ul id="customer"
                        class="iq-submenu collapse <?php echo e($customerActive ? 'show' : ''); ?>"
                        data-parent="#iq-sidebar-toggle">

                        <li class="<?php echo e(request()->is('customer/list') ? 'active' : ''); ?>">

                            <a href="<?php echo e(url('/customer/list')); ?>">

                                <i class="las la-minus"></i>

                                <span>
                                    List Customer
                                </span>

                            </a>

                        </li>


                        <li class="<?php echo e(request()->is('customer/add') ? 'active' : ''); ?>">

                            <a href="<?php echo e(url('/customer/add')); ?>">

                                <i class="las la-minus"></i>

                                <span>
                                    Add Customer
                                </span>

                            </a>

                        </li>

                    </ul>

                </li>


                

                <li class="<?php echo e($orderActive ? 'active' : ''); ?>">

                    <a href="#order"
                       class="<?php echo e($orderActive ? '' : 'collapsed'); ?>"
                       data-toggle="collapse"
                       aria-expanded="<?php echo e($orderActive ? 'true' : 'false'); ?>">

                        <i class="las la-shopping-bag"
                           style="font-size:20px;">
                        </i>

                        <span class="ml-4">
                            Orders
                        </span>

                        <i class="las la-angle-down ml-auto"></i>

                    </a>


                    <ul id="order"
                        class="iq-submenu collapse <?php echo e($orderActive ? 'show' : ''); ?>"
                        data-parent="#iq-sidebar-toggle">

                        <li class="<?php echo e(request()->is('order/list') ? 'active' : ''); ?>">

                            <a href="<?php echo e(url('/order/list')); ?>">

                                <i class="las la-minus"></i>

                                <span>
                                    List Orders
                                </span>

                            </a>

                        </li>


                        <li class="<?php echo e(request()->is('order/add') ? 'active' : ''); ?>">

                            <a href="<?php echo e(url('/order/add')); ?>">

                                <i class="las la-minus"></i>

                                <span>
                                    Create Order
                                </span>

                            </a>

                        </li>

                    </ul>

                </li>


                

                <li class="<?php echo e($staffActive ? 'active' : ''); ?>">

                    <a href="#staff"
                       class="<?php echo e($staffActive ? '' : 'collapsed'); ?>"
                       data-toggle="collapse"
                       aria-expanded="<?php echo e($staffActive ? 'true' : 'false'); ?>">

                        <i class="las la-user-tie"
                           style="font-size:20px;">
                        </i>

                        <span class="ml-4">
                            Staff
                        </span>

                        <i class="las la-angle-down ml-auto"></i>

                    </a>


                    <ul id="staff"
                        class="iq-submenu collapse <?php echo e($staffActive ? 'show' : ''); ?>"
                        data-parent="#iq-sidebar-toggle">

                        <li class="<?php echo e(request()->is('staff/list') ? 'active' : ''); ?>">

                            <a href="<?php echo e(url('/staff/list')); ?>">

                                <i class="las la-minus"></i>

                                <span>
                                    List Staff
                                </span>

                            </a>

                        </li>


                        <li class="<?php echo e(request()->is('staff/add') ? 'active' : ''); ?>">

                            <a href="<?php echo e(route('staff.add')); ?>">

                                <i class="las la-minus"></i>

                                <span>
                                    Add Staff
                                </span>

                            </a>

                        </li>

                    </ul>

                </li>


                

                <li class="<?php echo e($paymentActive ? 'active' : ''); ?>">

                    <a href="#payment"
                       class="<?php echo e($paymentActive ? '' : 'collapsed'); ?>"
                       data-toggle="collapse"
                       aria-expanded="<?php echo e($paymentActive ? 'true' : 'false'); ?>">

                        <i class="las la-credit-card"
                           style="font-size:20px;">
                        </i>

                        <span class="ml-4">
                            Payments
                        </span>

                        <i class="las la-angle-down ml-auto"></i>

                    </a>


                    <ul id="payment"
                        class="iq-submenu collapse <?php echo e($paymentActive ? 'show' : ''); ?>"
                        data-parent="#iq-sidebar-toggle">

                        <li class="<?php echo e(request()->is('payments') ? 'active' : ''); ?>">

                            <a href="<?php echo e(route('payments.index')); ?>">

                                <i class="las la-minus"></i>

                                <span>
                                    List Payments
                                </span>

                            </a>

                        </li>


                        <li class="<?php echo e(request()->is('payments/create') ? 'active' : ''); ?>">

                            <a href="<?php echo e(route('payments.create')); ?>">

                                <i class="las la-minus"></i>

                                <span>
                                    Add Payment
                                </span>

                            </a>

                        </li>

                    </ul>

                </li>


                

                <li class="<?php echo e($reportActive ? 'active' : ''); ?>">

                    <a href="#report"
                       class="<?php echo e($reportActive ? '' : 'collapsed'); ?>"
                       data-toggle="collapse"
                       aria-expanded="<?php echo e($reportActive ? 'true' : 'false'); ?>">

                        <i class="las la-chart-bar"
                           style="font-size:20px;">
                        </i>

                        <span class="ml-4">
                            Report
                        </span>

                        <i class="las la-angle-down ml-auto"></i>

                    </a>


                    <ul id="report"
                        class="iq-submenu collapse <?php echo e($reportActive ? 'show' : ''); ?>"
                        data-parent="#iq-sidebar-toggle">

                        <li class="<?php echo e(request()->is('report') ? 'active' : ''); ?>">

                            <a href="<?php echo e(url('/report')); ?>">

                                <i class="las la-minus"></i>

                                <span>
                                    Report
                                </span>

                            </a>

                        </li>

                    </ul>

                </li>


                

                <li class="<?php echo e($settingsActive ? 'active' : ''); ?>">

                    <a href="#settings"
                       class="<?php echo e($settingsActive ? '' : 'collapsed'); ?>"
                       data-toggle="collapse"
                       aria-expanded="<?php echo e($settingsActive ? 'true' : 'false'); ?>">

                        <i class="las la-cog"
                           style="font-size:20px;">
                        </i>

                        <span class="ml-4">
                            Settings
                        </span>

                        <i class="las la-angle-down ml-auto"></i>

                    </a>


                    <ul id="settings"
                        class="iq-submenu collapse <?php echo e($settingsActive ? 'show' : ''); ?>"
                        data-parent="#iq-sidebar-toggle">

                        <li class="<?php echo e(request()->is('settings') ? 'active' : ''); ?>">

                            <a href="<?php echo e(url('/settings')); ?>">

                                <i class="las la-minus"></i>

                                <span>
                                    System Settings
                                </span>

                            </a>

                        </li>

                    </ul>

                </li>


            </ul>

        </nav>

    </div>

</div><?php /**PATH C:\xampp\htdocs\zt-stationery\resources\views/partial/sidebar.blade.php ENDPATH**/ ?>