<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">
    <?php else: ?>
        <a href="<?php echo e(url('/absen')); ?>" class="brand-link">
    <?php endif; ?>
        <img src="<?php echo e(url('assets/img/absensi.png')); ?>" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
        <span class="brand-text font-weight-light">Absensi Online</span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">
    <!-- Sidebar user panel (optional) -->
        <div class="user-panel mt-3 pb-3 mb-3 d-flex <?php echo e(Request::is('my-profile*') ? 'btn btn-primary' : ''); ?>">
            <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" style="<?php echo e(Request::is('my-profile*') ? 'color: white' : ''); ?>">My Profile</a>
            </div>
        </div>

        <?php if(Request::is('my-profile*')): ?>
            <hr style="background-color:dimgray">
        <?php endif; ?>

            <!-- 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 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('/pegawai')); ?>" class="nav-link <?php echo e(Request::is('pegawai*') ? 'active' : ''); ?>">
                                <i class="nav-icon fa fa-solid fa-user"></i>
                                <p>
                                    Pegawai
                                </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"></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"></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"></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"></i>
                                <p>
                                    Reset Cuti
                                </p>
                            </a>
                        </li>

                        <li class="nav-item">
                            <a href="<?php echo e(url('/auto-shift')); ?>" class="nav-link <?php echo e(Request::is('auto-shift*') ? 'active' : ''); ?>">
                                <i class="nav-icon fa fa-robot"></i>
                                <p>
                                    Auto Shift
                                </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"></i>
                                <p>
                                    Master Jabatan
                                </p>
                            </a>
                        </li>

                        <li class="nav-item">
                            <a href="<?php echo e(url('/golongan')); ?>" class="nav-link <?php echo e(Request::is('golongan*') ? 'active' : ''); ?>">
                                <i class="nav-icon fa fa-people-arrows"></i>
                                <p>
                                    Master Golongan
                                </p>
                            </a>
                        </li>

                        <li class="nav-item">
                            <a href="<?php echo e(url('/tunjangan')); ?>" class="nav-link <?php echo e(Request::is('tunjangan*') ? 'active' : ''); ?>">
                                <i class="nav-icon fa fa-dollar-sign"></i>
                                <p>
                                    Master Tunjangan
                                </p>
                            </a>
                        </li>

                        <li class="nav-item">
                            <a href="<?php echo e(url('/status-ptkp')); ?>" class="nav-link <?php echo e(Request::is('status-ptkp*') ? 'active' : ''); ?>">
                                <i class="nav-icon fa fa-file-export"></i>
                                <p>
                                    Master Status PTKP
                                </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"></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"></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"></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">Dinas Luar Kantor</li>
                <li class="nav-item">
                    <a href="<?php echo e(url('/dinas-luar')); ?>" class="nav-link <?php echo e(Request::is('dinas-luar*') ? 'active' : ''); ?>">
                        <i class="nav-icon fa fa-stopwatch"></i>
                        <p>
                            Absen Dinas Luar
                        </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-dinas-luar')); ?>" class="nav-link <?php echo e(Request::is('data-dinas-luar*') ? 'active' : ''); ?>">
                            <i class="nav-icon fa fa-solid fa-table"></i>
                            <p>
                                Data Dinas Luar
                            </p>
                        </a>
                    </li>
                <?php endif; ?>
                <li class="nav-item">
                    <a href="<?php echo e(url('/my-dinas-luar')); ?>" class="nav-link <?php echo e(Request::is('my-dinas-luar*') ? 'active' : ''); ?>">
                        <i class="nav-icon fa fa-user-secret"></i>
                        <p>
                            My Dinas Luar
                        </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"></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"></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"></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"></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"></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">PAYROLL</li>

                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('admin')): ?>
                    <li class="nav-item">
                        <a href="<?php echo e(url('/payroll')); ?>" class="nav-link <?php echo e(Request::is('payroll*') ? 'active' : ''); ?>">
                            <i class="nav-icon fa fa-file-invoice-dollar"></i>
                            <p>
                                Payroll
                            </p>
                        </a>
                    </li>

                    <li class="nav-item">
                        <a href="<?php echo e(url('/pajak-pph21')); ?>" class="nav-link <?php echo e(Request::is('pajak-pph21*') ? 'active' : ''); ?>">
                            <i class="nav-icon fa fa-tenge"></i>
                            <p>
                                Pajak PPH 21
                            </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"></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"></i>
                        <p>
                            Dokumen Saya
                        </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">File</li>

                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('admin')): ?>
                    <li class="nav-item">
                        <a href="<?php echo e(url('/file')); ?>" class="nav-link <?php echo e(Request::is('file*') ? 'active' : ''); ?>">
                            <i class="nav-icon fa fa-folder-open"></i>
                            <p>
                                Upload File
                            </p>
                        </a>
                    </li>
                    <?php endif; ?>
                    
                    <li class="nav-item">
                        <a href="<?php echo e(url('/my-file')); ?>" class="nav-link <?php echo e(Request::is('my-file*') ? 'active' : ''); ?>">
                            <i class="nav-icon fa fa-folder-open"></i>
                            <p>
                                My File
                            </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">REQUEST</li>
                
                <li class="nav-item">
                    <a href="<?php echo e(url('/request-location')); ?>" class="nav-link <?php echo e(Request::is('request-location*') ? 'active' : ''); ?>">
                        <i class="nav-icon fa fa-holly-berry"></i>
                        <p>
                            Request Location
                        </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-item">
                    <a class="nav-link" href="#" data-toggle="modal" data-target="#logoutModal">
                        <i class="nav-icon fas fa-sign-out-alt"></i>
                        <p>
                            Log Out
                        </p>
                    </a>
                </li>
            </ul>
        </nav>
    </div>
    <!-- /.sidebar -->
</aside>
<?php /**PATH /Users/macbook/Downloads/laravel-hris-master/resources/views/partials/sidebar.blade.php ENDPATH**/ ?>