
<aside class="main-sidebar sidebar-dark-primary elevation-4">
    <!-- Brand Logo -->
    <a href="#" class="brand-link">
        <img src="<?php echo e(asset('logo/logo-umi.png')); ?>" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
        <span class="brand-text font-weight-light"> UMI-CELL </span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">
        <!-- Sidebar user panel (optional) -->
        <div class="user-panel mt-3 pb-3 mb-3 d-flex">
            <div class="info">
                <a href="#" class="d-block"> <?php echo e(Auth::user()->name); ?> </a>
            </div>
        </div>

        <!-- SidebarSearch Form -->
        <div class="form-inline">
            <div class="input-group" data-widget="sidebar-search">
                <input class="form-control form-control-sidebar" type="search" placeholder="Search" aria-label="Search">
                <div class="input-group-append">
                    <button class="btn btn-sidebar">
                        <i class="fas fa-search fa-fw"></i>
                    </button>
                </div>
            </div>
        </div>

        <!-- Sidebar Menu -->
        <nav class="mt-2">
            <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
                <li class="nav-item">
                    <a href="<?php echo e(route('home')); ?>" class="nav-link <?php echo e(($title === "home") ? 'active' : ''); ?>">
                        <i class="nav-icon fas fa-home"></i>
                        <p> Home </p>
                    </a>
                </li>

                <li class="nav-item <?php echo e(in_array($title, ['branch','category','brand','supplier','customer']) ? 'menu-open' : ''); ?>">
                    <a href="#" class="nav-link <?php echo e(in_array($title, ['branch','category','brand','supplier','customer']) ? 'active' : ''); ?>">
                        <i class="nav-icon fas fa-database"></i>
                        <p>
                            Master
                            <i class="right fas fa-angle-left"></i>
                        </p>
                    </a>
                    <ul class="nav nav-treeview">
                        <li class="nav-item">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('branches.index')): ?>
                                <a href="<?php echo e(route('branch')); ?>" class="nav-link <?php echo e(($title === "branch") ? 'active' : ''); ?>">
                                    <i class="nav-icon far fa-building"></i>
                                    <p> Cabang </p>
                                </a>
                            <?php endif; ?>
                        </li>
                        <li class="nav-item">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('categories.index')): ?>
                                <a href="<?php echo e(route('category')); ?>" class="nav-link <?php echo e(($title === "category") ? 'active' : ''); ?>">
                                    <i class="nav-icon fas fa-list"></i>
                                    <p> Kategori </p>
                                </a>
                            <?php endif; ?>
                        </li>
                        <li class="nav-item">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('brands.index')): ?>
                                <a href="<?php echo e(route('brand')); ?>" class="nav-link <?php echo e(($title === "brand") ? 'active' : ''); ?>">
                                    <i class="nav-icon fas fa-tag"></i>
                                    <p> Merek </p>
                                </a>
                            <?php endif; ?>
                        </li>
                        <li class="nav-item">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('suppliers.index')): ?>
                                <a href="<?php echo e(route('supplier')); ?>" class="nav-link <?php echo e(($title === "supplier") ? 'active' : ''); ?>">
                                    <i class="nav-icon fas fa-truck"></i>
                                    <p> Supplier </p>
                                </a>
                            <?php endif; ?>
                        </li>
                        <li class="nav-item">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('customers.index')): ?>
                                <a href="<?php echo e(route('customer')); ?>" class="nav-link <?php echo e(($title === "customer") ? 'active' : ''); ?>">
                                    <i class="nav-icon fas fa-users"></i>
                                    <p> Customer </p>
                                </a>
                            <?php endif; ?>
                        </li>
                    </ul>
                </li>

                <li class="nav-item <?php echo e(in_array($title, ['role','permission','user']) ? 'menu-open' : ''); ?>">
                    <a href="#" class="nav-link <?php echo e(in_array($title, ['role','permission','user']) ? 'active' : ''); ?>">
                        <i class="nav-icon fas fa-cogs"></i>
                        <p>
                            Pengaturan
                            <i class="right fas fa-angle-left"></i>
                        </p>
                    </a>
                    <ul class="nav nav-treeview">
                        <li class="nav-item">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('roles.index')): ?>
                                <a href="<?php echo e(route('role')); ?>" class="nav-link <?php echo e(($title === "role") ? 'active' : ''); ?>">
                                    <i class="nav-icon fas fa-user-shield"></i>
                                    <p> Roles </p>
                                </a>
                            <?php endif; ?>
                        </li>
                        <li class="nav-item">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('permissions.index')): ?>
                                <a href="<?php echo e(route('admin.permission.index')); ?>" class="nav-link <?php echo e(($title === "permission") ? 'active' : ''); ?>">
                                    <i class="nav-icon fas fa-key"></i>
                                    <p> Permissions </p>
                                </a>
                            <?php endif; ?>
                        </li>
                        <li class="nav-item">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('users.index')): ?>
                                <a href="<?php echo e(route('user')); ?>" class="nav-link <?php echo e(($title === "user") ? 'active' : ''); ?>">
                                    <i class="nav-icon fas fa-user"></i>
                                    <p> Users </p>
                                </a>
                            <?php endif; ?>
                        </li>
                    </ul>
                </li>

                <li class="nav-item <?php echo e(in_array($title, ['product']) ? 'menu-open' : ''); ?>">
                    <a href="#" class="nav-link <?php echo e(in_array($title, ['product']) ? 'active' : ''); ?>">
                        <i class="nav-icon fas fa-cubes"></i>
                        <p>
                            Produk
                            <i class="right fas fa-angle-left"></i>
                        </p>
                    </a>
                    <ul class="nav nav-treeview">
                        <li class="nav-item">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('products.index')): ?>
                                <a href="<?php echo e(route('product')); ?>" class="nav-link <?php echo e(($title === "product") ? 'active' : ''); ?>">
                                    <i class="nav-icon fas fa-mobile-alt"></i>
                                    <p> Produk </p>
                                </a>
                            <?php endif; ?>
                        </li>
                    </ul>
                </li>

                <li class="nav-item <?php echo e(in_array($title, ['purchase','sale','service','stock_movement','stock_opname']) ? 'menu-open' : ''); ?>">
                    <a href="#" class="nav-link <?php echo e(in_array($title, ['purchase','sale','service','stock_movement','stock_opname']) ? 'active' : ''); ?>">
                        <i class="nav-icon fas fa-exchange-alt"></i>
                        <p>
                            Transaksi
                            <i class="right fas fa-angle-left"></i>
                        </p>
                    </a>
                    <ul class="nav nav-treeview">
                        <li class="nav-item">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('purchases.index')): ?>
                                <a href="<?php echo e(route('purchase')); ?>" class="nav-link <?php echo e(($title === "purchase") ? 'active' : ''); ?>">
                                    <i class="nav-icon fas fa-shopping-cart"></i>
                                    <p> Pembelian </p>
                                </a>
                            <?php endif; ?>
                        </li>
                        <li class="nav-item">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('sales.index')): ?>
                                <a href="<?php echo e(route('sale')); ?>" class="nav-link <?php echo e(($title === "sale") ? 'active' : ''); ?>">
                                    <i class="nav-icon fas fa-cash-register"></i>
                                    <p> Penjualan </p>
                                </a>
                            <?php endif; ?>
                        </li>
                        <li class="nav-item">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('services.index')): ?>
                                <a href="<?php echo e(route('services.index')); ?>" class="nav-link <?php echo e(($title === "service") ? 'active' : ''); ?>">
                                    <i class="nav-icon fas fa-wrench"></i>
                                    <p> Service </p>
                                </a>
                            <?php endif; ?>
                        </li>
                        <li class="nav-item">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('stock-movements.index')): ?>
                                <a href="<?php echo e(route('stock-movement')); ?>" class="nav-link <?php echo e(($title === "stock_movement") ? 'active' : ''); ?>">
                                    <i class="nav-icon fas fa-history"></i>
                                    <p> Pergerakan Stok </p>
                                </a>
                            <?php endif; ?>
                        </li>
                        <li class="nav-item">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('stock-opnames.index')): ?>
                                <a href="<?php echo e(route('stock-opname')); ?>" class="nav-link <?php echo e(($title === "stock_opname") ? 'active' : ''); ?>">
                                    <i class="nav-icon fas fa-clipboard-check"></i>
                                    <p> Stock Opname </p>
                                </a>
                            <?php endif; ?>
                        </li>
                    </ul>
                </li>

                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['profit.index', 'service-reports.index'])): ?>
                <li class="nav-item <?php echo e(in_array($title, ['profit_loss', 'product_list_report', 'service']) ? 'menu-open' : ''); ?>">
                    <a href="#" class="nav-link <?php echo e(in_array($title, ['profit_loss', 'product_list_report', 'service']) ? 'active' : ''); ?>">
                        <i class="nav-icon fas fa-chart-line"></i>
                        <p>
                            Laporan
                            <i class="right fas fa-angle-left"></i>
                        </p>
                    </a>
                    <ul class="nav nav-treeview">
                        <li class="nav-item">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('profit.index')): ?>
                                <a href="<?php echo e(route('report.profit-loss')); ?>" class="nav-link <?php echo e(($title === "profit_loss") ? 'active' : ''); ?>">
                                    <i class="nav-icon fas fa-file-invoice-dollar"></i>
                                    <p> Laba Rugi </p>
                                </a>
                            <?php endif; ?>
                        </li>
                        <li class="nav-item">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('item.index')): ?>
                                <a href="<?php echo e(route('report.product-list')); ?>" class="nav-link <?php echo e(($title === "product_list_report") ? 'active' : ''); ?>">
                                    <i class="nav-icon fas fa-boxes"></i>
                                    <p> Daftar Item </p>
                                </a>
                            <?php endif; ?>
                        </li>
                        <li class="nav-header">LAPORAN SERVICE</li>
                        <li class="nav-item">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('service-reports.index')): ?>
                                <a href="<?php echo e(route('report.service.status')); ?>" class="nav-link">
                                    <i class="nav-icon fas fa-tasks"></i>
                                    <p> Status Service </p>
                                </a>
                            <?php endif; ?>
                        </li>
                        <li class="nav-item">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('service-reports.index')): ?>
                                <a href="<?php echo e(route('report.service.technician')); ?>" class="nav-link">
                                    <i class="nav-icon fas fa-user-cog"></i>
                                    <p> Kinerja Teknisi </p>
                                </a>
                            <?php endif; ?>
                        </li>
                        <li class="nav-item">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('service-reports.index')): ?>
                                <a href="<?php echo e(route('report.service.revenue')); ?>" class="nav-link">
                                    <i class="nav-icon fas fa-dollar-sign"></i>
                                    <p> Pendapatan Service </p>
                                </a>
                            <?php endif; ?>
                        </li>
                    </ul>
                </li>
                <?php endif; ?>

            </ul>
        </nav>
        <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
</aside>
<?php /**PATH C:\xampp82\htdocs\umi-cell\resources\views/layouts/sidebar.blade.php ENDPATH**/ ?>