<aside class="main-sidebar sidebar-dark-primary elevation-4">
    <!-- Brand Logo -->
    <?php if(auth()->user()->is_admin == 'admin'): ?>
        <a href="<?php echo e(url('/dashboard')); ?>" class="brand-link" style="background-color: #3c86d8;;color: #ffffff;">
    <?php else: ?>
        <a href="<?php echo e(url('/absen')); ?>" class="brand-link">
    <?php endif; ?>
        <img src="<?php echo e(url('assets/img/avatar-1.png')); ?>" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
        <span class="brand-text font-weight-light">Jago Absensi</span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">
    <!-- Sidebar user panel (optional) -->
        <!-- <div class="user-panel mt-3 pb-3 mb-3 d-flex">
            <div class="image">
                <?php if(auth()->user()->foto_karyawan == null): ?>
                    <img src="<?php echo e(url('assets/img/foto_default.jpg')); ?>" class="img-circle elevation-2" alt="User Image">
                <?php else: ?>
                    <img src="<?php echo e(url('storage/'.auth()->user()->foto_karyawan)); ?>" class="img-circle elevation-2" alt="User Image">
                <?php endif; ?>
            </div>
            <div class="info">
                <a href="<?php echo e(url('/my-profile')); ?>" class="d-block">My Profile</a>
            </div>
        </div> -->

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('admin')): ?>
            <!-- 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(url('/dashboard')); ?>" class="nav-link <?php echo e(Request::is('dashboard*') ? 'active' : ''); ?>">
                                <i class="nav-icon fas fa-tachometer-alt"></i>
                                <p>
                                    Dashboard
                                </p>
                            </a>
                        </li>
                </ul>
            </nav> -->
            <!-- /.sidebar-menu -->
    
            <!-- <hr style="background-color:dimgray"> -->
        <?php endif; ?>

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('admin')): ?>
            <nav class="mt-2">
                <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
                        <li class="nav-header">DATA MASTER</li>
                        <li class="nav-item">
                            <a href="<?php echo e(url('/karyawan')); ?>" class="nav-link <?php echo e(Request::is('karyawan*') ? 'active' : ''); ?>">
                                <i class="nav-icon fa fa-solid fa-user merah"></i>
                                <p>
                                    Karyawan
                                </p>
                            </a>
                        </li>
    
                        <li class="nav-item">
                            <a href="<?php echo e(url('/shift')); ?>" class="nav-link <?php echo e(Request::is('shift*') ? 'active' : ''); ?>">
                                <i class="nav-icon fa fa-fw fa-clock merah"></i>
                                <p>
                                    Master Shift
                                </p>
                            </a>
                        </li>
    
                        <li class="nav-item">
                            <a href="<?php echo e(url('/rekap-data')); ?>" class="nav-link <?php echo e(Request::is('rekap-data*') ? 'active' : ''); ?>">
                                <i class="nav-icon fa fa-database merah"></i>
                                <p>
                                    Rekap Data Absensi
                                </p>
                            </a>
                        </li>

                        <li class="nav-item">
                            <a href="<?php echo e(url('/lokasi-kantor')); ?>" class="nav-link <?php echo e(Request::is('lokasi-kantor*') ? 'active' : ''); ?>">
                                <i class="nav-icon fa fa-map-marked-alt merah"></i>
                                <p>
                                    Master Lokasi
                                </p>
                            </a>
                        </li>

                        <li class="nav-item">
                            <a href="<?php echo e(url('/reset-cuti')); ?>" class="nav-link <?php echo e(Request::is('reset-cuti*') ? 'active' : ''); ?>">
                                <i class="nav-icon fa fa-sync-alt merah"></i>
                                <p>
                                    Reset Cuti
                                </p>
                            </a>
                        </li>

                        <li class="nav-item">
                            <a href="<?php echo e(url('/jabatan')); ?>" class="nav-link <?php echo e(Request::is('jabatan*') ? 'active' : ''); ?>">
                                <i class="nav-icon fa fa-universal-access merah"></i>
                                <p>
                                    Master Jabatan
                                </p>
                            </a>
                        </li>
                </ul>
            </nav>
    
            <hr style="background-color:dimgray">
        <?php endif; ?>

        <nav class="mt-2">
            <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
                <li class="nav-header">ABSENSI</li>
                <li class="nav-item">
                    <a href="<?php echo e(url('/absen')); ?>" class="nav-link <?php echo e(Request::is('absen*') ? 'active' : ''); ?>">
                        <i class="nav-icon fa fa-stopwatch biruMuda"></i>
                        <p>
                            Absen
                        </p>
                    </a>
                </li>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('admin')): ?>
                    <li class="nav-item">
                        <a href="<?php echo e(url('/data-absen')); ?>" class="nav-link <?php echo e(Request::is('data-absen*') ? 'active' : ''); ?>">
                            <i class="nav-icon fa fa-solid fa-table biruMuda"></i>
                            <p>
                                Data Absen
                            </p>
                        </a>
                    </li>
                <?php endif; ?>
                <li class="nav-item">
                    <a href="<?php echo e(url('/my-absen')); ?>" class="nav-link <?php echo e(Request::is('my-absen*') ? 'active' : ''); ?>">
                        <i class="nav-icon fa fa-user-secret biruMuda"></i>
                        <p>
                            My Absen
                        </p>
                    </a>
                </li>

            </ul>
        </nav>

        <hr style="background-color:dimgray">

        <nav class="mt-2">
            <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
                <li class="nav-header">OVERTIME</li>
                <li class="nav-item">
                    <a href="<?php echo e(url('/lembur')); ?>" class="nav-link <?php echo e(Request::is('lembur*') ? 'active' : ''); ?>">
                        <i class="nav-icon fa fa-fw fa-user-clock hijauMuda"></i>
                        <p>
                            Lembur
                        </p>
                    </a>
                </li>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('admin')): ?>
                    <li class="nav-item">
                        <a href="<?php echo e(url('/data-lembur')); ?>" class="nav-link <?php echo e(Request::is('data-lembur*') ? 'active' : ''); ?>">
                            <i class="nav-icon fa fa-solid fa-table hijauMuda"></i>
                            <p>
                                Data Lembur
                            </p>
                        </a>
                    </li>
                <?php endif; ?>
                <li class="nav-item">
                    <a href="<?php echo e(url('/my-lembur')); ?>" class="nav-link <?php echo e(Request::is('my-lembur*') ? 'active' : ''); ?>">
                        <i class="nav-icon fa fa-business-time hijauMuda"></i>
                        <p>
                            My Lembur
                        </p>
                    </a>
                </li>
            </ul>
        </nav>

        <hr style="background-color:dimgray">

        <nav class="mt-2">
            <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
                <li class="nav-header">CUTI</li>
                <li class="nav-item">
                    <a href="<?php echo e(url('/cuti')); ?>" class="nav-link <?php echo e(Request::is('cuti*') ? 'active' : ''); ?>">
                        <i class="nav-icon fa fa-hourglass-half unguMuda"></i>
                        <p>
                            Permintaan Cuti
                        </p>
                    </a>
                </li>

                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('admin')): ?>
                    <li class="nav-item">
                        <a href="<?php echo e(url('/data-cuti')); ?>" class="nav-link <?php echo e(Request::is('data-cuti*') ? 'active' : ''); ?>">
                            <i class="nav-icon fa fa-table unguMuda"></i>
                            <p>
                                Data Cuti
                            </p>
                        </a>
                    </li>
                <?php endif; ?>
            </ul>
        </nav>

        <hr style="background-color:dimgray">

        <nav class="mt-2">
            <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
                <li class="nav-header">Docs</li>

                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('admin')): ?>
                    <li class="nav-item">
                        <a href="<?php echo e(url('/dokumen')); ?>" class="nav-link <?php echo e(Request::is('dokumen*') ? 'active' : ''); ?>">
                            <i class="nav-icon fa fa-folder-open biru"></i>
                            <p>
                                Dokumen Pegawai
                            </p>
                        </a>
                    </li>
                <?php endif; ?>
                
                <li class="nav-item">
                    <a href="<?php echo e(url('/my-dokumen')); ?>" class="nav-link <?php echo e(Request::is('my-dokumen*') ? 'active' : ''); ?>">
                        <i class="nav-icon fa fa-folder biru"></i>
                        <p>
                            Dokumen Saya
                        </p>
                    </a>
                </li>
                

            </ul>
        </nav>

        <hr style="background-color:dimgray">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('admin')): ?>
        <!-- Activity Logs -->
        <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 class="nav-link" href="/activity-logs">
                        <i class="nav-icon fas fa-history merah"></i>
                        <p>
                            Activity Logs
                        </p>
                    </a>
                </li>
            </ul>
        </nav>
        <?php endif; ?>

        <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 class="nav-link" href="#" data-toggle="modal" data-target="#logoutModal">
                        <i class="nav-icon fas fa-sign-out-alt merah"></i>
                        <p>
                            Log Out
                        </p>
                    </a>
                </li>
            </ul>
        </nav>
    </div>
    <!-- /.sidebar -->
</aside>
<style>
    .merah {
        color: red;
    }
    .hijau {
        color: green;
    }
    .biru {
        color: blue;
    }
    .kuning {
        color: yellow;
    }
    .ungu {
        color: purple;
    }
    .abu {
        color: gray;
    }
    .hitam {
        color: black;
    }
    .putih {
        color: white;
    }
    .biruMuda {
        color: #00bfff;
    }
    .biruTua {
        color: #0000ff;
    }
    .hijauMuda {
        color: #00ff00;
    }
    .hijauTua {
        color: #008000;
    }
    .kuningMuda {
        color: #ffff00;
    }
    .kuningTua {
        color: #ffbf00;
    }
    .unguMuda {
        color: #ff00ff;
    }
    .unguTua {
        color: #800080;
    }
    .abuMuda {
        color: #c0c0c0;
    }
    .abuTua {
        color: #808080;
    }
    .hitamMuda {
        color: #000000;
    }
    .hitamTua {
        color: #000000;
    }
    .putihMuda {
        color: #ffffff;
    }
    .putihTua {
        color: #ffffff;
    }

</style>
<?php /**PATH C:\xampp\htdocs\16_Laravel_Absensi\absensi\resources\views/partials/sidebar.blade.php ENDPATH**/ ?>