<aside class="main-sidebar sidebar-dark-primary elevation-4">
    <a href="<?php echo e(route('home')); ?>" class="brand-link">
        <img src="<?php echo e(asset('dist/img/nec-logo.jpeg')); ?>" alt="NEC Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
        <span class="brand-text font-weight-light">NEC</span>
    </a>
    <div class="sidebar">
        <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 menu-open">
                    <a href="<?php echo e(route('home')); ?>" class="nav-link <?php echo e(Route::currentRouteName() === 'home' ? 'active' : ''); ?>">
                        <i class="nav-icon fas fa-tachometer-alt"></i>
                        <p>Dashboard</p>
                    </a>
                </li>
              <?php if(auth()->user()->role_id == 1): ?>
              <li class="nav-item">
                    <a href="<?php echo e(route('users.index')); ?>" class="nav-link <?php echo e(Route::currentRouteName() === 'users.index' ? 'active' : ''); ?>">
                        <i class="nav-icon fas fa-users"></i>
                        <p>Users</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a href="<?php echo e(route('company.index')); ?>" class="nav-link <?php echo e(Route::currentRouteName() === 'company.index' ? 'active' : ''); ?>">
                        <i class="nav-icon fas fa-building"></i>
                        <p>Companies</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a href="<?php echo e(route('service.index')); ?>" class="nav-link <?php echo e(Route::currentRouteName() === 'service.index' ? 'active' : ''); ?>">
                        <i class="nav-icon fas fa-tools"></i>
                        <p>Services</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a href="<?php echo e(route('product.index')); ?>" class="nav-link <?php echo e(Route::currentRouteName() === 'product.index' ? 'active' : ''); ?>">
                    <i class="nav-icon fas fa-box"></i>
                        <p>Products</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a href="<?php echo e(route('mechanic.index')); ?>" class="nav-link <?php echo e(Route::currentRouteName() === 'mechanic.index' ? 'active' : ''); ?>">
                    <i class="nav-icon fas fa-tools"></i>
                        <p>Mechanic</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a href="<?php echo e(route('vendor.index')); ?>" class="nav-link <?php echo e(Route::currentRouteName() === 'vendor.index' ? 'active' : ''); ?>">
                    <i class="nav-icon fas fa-industry"></i>
                        <p>Vendor</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a href="<?php echo e(route('order.index')); ?>" class="nav-link <?php echo e(Route::currentRouteName() === 'order.index' ? 'active' : ''); ?>">
                    <i class="nav-icon fas fa-shopping-cart"></i>
                        <p>Order Management</p>
                    </a>
                </li>

                <li class="nav-item">
                    <a href="<?php echo e(route('purchase.index')); ?>" class="nav-link <?php echo e(Route::currentRouteName() === 'purchase.index' ? 'active' : ''); ?>">
                    <i class="nav-icon fas fa-shopping-basket"></i>
                        <p>Vendor Purchases</p>
                    </a>
                </li>
                <?php elseif(auth()->user()->role_id == 2): ?>
                <li class="nav-item">
                    <a href="<?php echo e(route('order.index')); ?>" class="nav-link <?php echo e(Route::currentRouteName() === 'order.index' ? 'active' : ''); ?>">
                    <i class="nav-icon fas fa-shopping-cart"></i>
                        <p>Order Management</p>
                    </a>
                </li>

                <li class="nav-item">
                    <a href="<?php echo e(route('purchase.index')); ?>" class="nav-link <?php echo e(Route::currentRouteName() === 'purchase.index' ? 'active' : ''); ?>">
                    <i class="nav-icon fas fa-shopping-basket"></i>
                        <p>Vendor Purchases</p>
                    </a>
                </li>
              <?php endif; ?>

            </ul>
        </nav>
    </div>
</aside>
<?php /**PATH /Users/muhammadajmal/Documents/www/nes/resources/views/layouts/sidebar.blade.php ENDPATH**/ ?>