<!-- Main Sidebar Container -->
<aside class="main-sidebar sidebar-dark-primary elevation-4">

    <!-- Sidebar -->
    <div class="sidebar">
        <!-- Sidebar user (optional) -->
        <div class="user-panel mt-3 pb-3 mb-3 d-flex">
            <div class="image">
                <img src="" class="img-circle elevation-2" alt="User Image">
            </div>
            <div class="info">
                <a href="#" class="d-block"><?php echo e(Auth::user()->user_detail->fullname); ?></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">
                

                <?php if(Auth::user()->id_role != 3): ?>
                    <li class="nav-item">
                        <a href="<?php echo e(route('users.index')); ?>" class="nav-link">
                            <i class="nav-icon fas fa-copy"></i>
                            <p>
                                User Management
                            </p>
                        </a>
                    </li>
                <?php endif; ?>

                <?php if(Auth::user()->id_role != 3): ?>
                    <li class="nav-item">
                        <a href="<?php echo e(route('farms.index')); ?>" class="nav-link">
                            <i class="nav-icon fas fa-copy"></i>
                            <p>
                                Farms
                            </p>
                        </a>
                    </li>
                <?php endif; ?>

                <li class="nav-item">
                    <a href="<?php echo e(route('tasks.index')); ?>" class="nav-link">
                        <i class="nav-icon fas fa-copy"></i>
                        <p>
                            Project
                        </p>
                    </a>
                </li>

                <?php if(Auth::user()->id_role != 3): ?>
                    <li class="nav-item">
                        <a href="<?php echo e(route('form.index')); ?>" class="nav-link">
                            <i class="nav-icon fas fa-copy"></i>
                            <p>
                                Form Index
                            </p>
                        </a>
                <?php endif; ?>

                <li class="nav-item menu-is-opening menu-open">
                    <a href="#" class="nav-link">
                        <i class="nav-icon fas fa-search"></i>
                        <p>
                            myGAP Forms
                            <i class="fas fa-angle-left right"></i>
                        </p>
                    </a>
                    <ul class="nav nav-treeview" style="display: block;">

                        <?php if(Auth::user()->id_role != 3): ?>
                            <li class="nav-item">
                                <a href="<?php echo e(route('form.show.1', ['id' => 1])); ?>" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>myGAP 1.1</p>
                                </a>
                            </li>
                        <?php endif; ?>

                        <li class="nav-item">
                            <a href="<?php echo e(route('form41.daily.index')); ?>" class="nav-link">
                                <i class="far fa-circle nav-icon"></i>
                                <p>myGAP 4.1</p>
                            </a>
                        </li>

                        <li class="nav-item">
                            <a href="<?php echo e(route('form42.daily.index')); ?>" class="nav-link">
                                <i class="far fa-circle nav-icon"></i>
                                <p>myGAP 4.2</p>
                            </a>
                        </li>

                        <li class="nav-item">
                            <a href="<?php echo e(route('form43.daily.index')); ?>" class="nav-link">
                                <i class="far fa-circle nav-icon"></i>
                                <p>myGAP 4.3</p>
                            </a>
                        </li>

                        <li class="nav-item">
                            <a href="<?php echo e(route('form44.daily.index')); ?>" class="nav-link">
                                <i class="far fa-circle nav-icon"></i>
                                <p>myGAP 4.4</p>
                            </a>
                        </li>

                        <li class="nav-item">
                            <a href="<?php echo e(route('form45.daily.index')); ?>" class="nav-link">
                                <i class="far fa-circle nav-icon"></i>
                                <p>myGAP 4.5</p>
                            </a>
                        </li>

                        <li class="nav-item">
                            <a href="<?php echo e(route('form46.daily.index')); ?>" class="nav-link">
                                <i class="far fa-circle nav-icon"></i>
                                <p>myGAP 4.6</p>
                            </a>
                        </li>

                        <li class="nav-item">
                            <a href="<?php echo e(route('form47.daily.index')); ?>" class="nav-link">
                                <i class="far fa-circle nav-icon"></i>
                                <p>myGAP 4.7</p>
                            </a>
                        </li>

                        <li class="nav-item">
                            <a href="<?php echo e(route('form48.daily.index')); ?>" class="nav-link">
                                <i class="far fa-circle nav-icon"></i>
                                <p>myGAP 4.8</p>
                            </a>
                        </li>

                    </ul>
                </li>
            </ul>
            <li class="nav-item">
                <a href="<?php echo e(route('logout.submit')); ?>" class="nav-link">
                    <i class="nav-icon fas fa-tachometer-alt"></i>
                    <p>Logout</p>
                </a>
            </li>
            </ul>
        </nav>
        <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
</aside>
<?php /**PATH C:\laragon\www\VPS_changes\resources\views/layouts/sidebar.blade.php ENDPATH**/ ?>