<!-- Left Sidebar -->
<aside id="leftsidebar" class="sidebar">
    <!-- User Info -->
    <div class="user-info">
        <div class="image">
            <img src="<?php echo e(asset('bsb/images/user.png')); ?>" width="48" height="48" alt="User" />
        </div>
        <div class="info-container">
            <div class="name" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><?php echo e(Auth::user()->name); ?>

                <span class="label bg-light-blue"><?php echo e(Auth::user()->role->name ?? ''); ?></span>
                <!-- <?php echo e(Auth::user()->role->name); ?> -->
            </div>
            <div class="email"><?php echo e(Auth::user()->company->name ?? ''); ?></div>
            <div class="btn-group user-helper-dropdown">
                <i class="material-icons" data-toggle="dropdown" aria-haspopup="true"
                    aria-expanded="true">keyboard_arrow_down</i>
                <ul class="dropdown-menu pull-right">
                    <!-- <li><a href="javascript:void(0);"><i class="material-icons">person</i>Profile</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a href="javascript:void(0);"><i class="material-icons">group</i>Followers</a></li>
                            <li><a href="javascript:void(0);"><i class="material-icons">shopping_cart</i>Sales</a></li>
                            <li><a href="javascript:void(0);"><i class="material-icons">favorite</i>Likes</a></li>
                            <li role="separator" class="divider"></li> -->
                    <li>
                        <a href="<?php echo e(route('logout')); ?>" onclick="event.preventDefault();
                                                     document.getElementById('logout-form').submit();"><i
                                class="material-icons">input</i>Sign Out</a>


                        <form id="logout-form" action="<?php echo e(route('logout')); ?>" method="POST" style="display: none;">
                            <?php echo csrf_field(); ?>
                        </form>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- #User Info -->
    <!-- Menu -->
    <div class="menu">
        <ul class="list">
            <li class="header">MAIN NAVIGATION</li>
            <li id="menuHome">
                <a href="<?php echo e(route('home')); ?>">
                    <i class="material-icons">home</i>
                    <span>Home</span>
                </a>
            </li>
            <?php if(isset(Auth::user()->role->name)): ?>
            <?php if(Auth::user()->role->name == 'Administrator'): ?>
            <li class="<?php echo e($masterActive ?? ''); ?>">
                <a href="javascript:void(0);" class="menu-toggle">
                    <i class="material-icons">assignment</i>
                    <span>Master</span>
                </a>
                <ul class="ml-menu">

                    <li class="<?php echo e($userActive ?? ''); ?>">
                        <a href="<?php echo e(route('user.index')); ?>">User</a>
                    </li>
                    <li class="<?php echo e($roleActive ?? ''); ?>">
                        <a href="<?php echo e(route('role.index')); ?>">Role</a>
                    </li>
                    <li class="<?php echo e($companyActive ?? ''); ?>">
                        <a href="<?php echo e(route('company.index')); ?>">Company</a>
                    </li>

                </ul>
            </li>
            <?php endif; ?>
            <?php if(Auth::user()->role->name == 'Admin'): ?>

            <li class="<?php echo e($masterActive ?? ''); ?>">
                <a href="javascript:void(0);" class="menu-toggle">
                    <i class="material-icons">assignment</i>
                    <span>Master</span>
                </a>
                <ul class="ml-menu">

                    <li class="<?php echo e($statusActive ?? ''); ?>">
                        <a href="<?php echo e(route('status.index')); ?>">Status</a>
                    </li>
                    <li class="<?php echo e($divisionActive ?? ''); ?>">
                        <a href="<?php echo e(route('division.index')); ?>">Division</a>
                    </li>
                    <li class="<?php echo e($positionActive ?? ''); ?>">
                        <a href="<?php echo e(route('position.index')); ?>">Position</a>
                    </li>
                    <!-- <li class="<?php echo e($partnerActive ?? ''); ?>">
                        <a href="<?php echo e(route('partner.index')); ?>">Partner</a>
                    </li> -->
                    <li class="<?php echo e($memberActive ?? ''); ?>">
                        <a href="<?php echo e(route('member.index')); ?>">Member</a>
                    </li>
                    <li class="<?php echo e($signatureActive ?? ''); ?>">
                        <a href="<?php echo e(route('signature.index')); ?>">Signature</a>
                    </li>
                    <li class="<?php echo e($forsignatureActive ?? ''); ?>">
                        <a href="<?php echo e(route('forsignature.index')); ?>">Penempatan Tandatangan</a>
                    </li>

                </ul>
            </li>
            <?php endif; ?>
            <?php endif; ?>

            <?php if(isset(Auth::user()->role->name)): ?>
            <?php if(Auth::user()->role->name == 'Admin'): ?>
            <li class="<?php echo e($partnerActive ?? ''); ?>">
                <a href="<?php echo e(route('partner.index')); ?>">
                    <i class="material-icons">text_fields</i>
                    <span>Partner</span>
                </a>
            </li>
            <!-- <li class="<?php echo e($penggajianActive ?? ''); ?>">
                <a href="<?php echo e(route('penggajian.index')); ?>">
                    <i class="material-icons">attach_money</i>
                    <span>Penggajian</span>
                </a>
            </li> -->
            <li class="<?php echo e($penggajianActive ?? ''); ?>">
                <a href="javascript:void(0);" class="menu-toggle">
                    <i class="material-icons">attach_money</i>
                    <span>Penggajian</span>
                </a>
                <ul class="ml-menu">


                    <li class="<?php echo e($variableSetActive ?? ''); ?>">
                        <a href="<?php echo e(route('variable.index')); ?>">Variable</a>
                    </li>
                    <li class="<?php echo e($penggajianSetActive ?? ''); ?>">
                        <a href="<?php echo e(route('penggajian.index')); ?>">Setting</a>
                    </li>
                    <li class="<?php echo e($penggajianGenerateActive ?? ''); ?>">
                        <a href="<?php echo e(route('penggajian.generate')); ?>">Generate</a>
                    </li>




                </ul>
            </li>

            <li class="<?php echo e($ceklistActive ?? ''); ?>">
                <a href="javascript:void(0);" class="menu-toggle">
                    <i class="material-icons">chrome_reader_mode</i>
                    <span>Cek List</span>
                </a>
                <ul class="ml-menu">


                    <li class="<?php echo e($dataActive ?? ''); ?>">
                        <a href="<?php echo e(route('ceklist.index')); ?>">Data</a>
                    </li>
                    <li class="<?php echo e($rekapActive ?? ''); ?>">
                        <a href="<?php echo e(route('ceklist.rekap')); ?>">Rekap</a>
                    </li>
                </ul>
            </li>

            <?php endif; ?>

            <?php if(Auth::user()->role->name == 'Akuntansi'||Auth::user()->role->name == 'Admin'): ?>
            <li class="<?php echo e($invoiceActive ?? ''); ?>">
                <a href="<?php echo e(route('invoice.index')); ?>">
                    <i class="material-icons">record_voice_over</i>
                    <span>Invoice</span>
                </a>
            </li>
            <li class="<?php echo e($akuntansiActive ?? ''); ?>">
                <a href="javascript:void(0);" class="menu-toggle">
                    <i class="material-icons">account_balance_wallet</i>
                    <span>Akuntansi</span>
                </a>
                <ul class="ml-menu">
                    <li class="<?php echo e($transaksiActive ?? ''); ?>">
                        <a href="<?php echo e(route('transaction.index')); ?>">Transaksi</a>
                    </li>
                    <li class="<?php echo e($reportActive ?? ''); ?>">
                        <a href="<?php echo e(route('report.index')); ?>">Laporan</a>
                    </li>
                </ul>
            </li>
            <li class="<?php echo e($rekapAbsenActive ?? ''); ?>">
                <a href="<?php echo e(route('rekap.index')); ?>">
                    <i class="material-icons">receipt</i>
                    <span>Rekap Absen</span>
                </a>
            </li>
            <li class="<?php echo e($PermintaanbarangActive ?? ''); ?>">
                <a href="<?php echo e(route('permintaanbarang.index')); ?>">
                    <i class="material-icons">flight_takeoff</i>
                    <span>Permintaan Barang</span>
                </a>
            </li>
            <li class="<?php echo e($serviceActive ?? ''); ?>">
                <a href="<?php echo e(route('service.index')); ?>">
                    <i class="material-icons">build</i>
                    <span>Contact Service</span>
                </a>
            </li>
            <?php endif; ?>
            <?php if(Auth::user()->role->name == 'Koordinator Lapangan'): ?>
            <li class="<?php echo e($recordActive ?? ''); ?>">
                <a href="<?php echo e(route('record.index')); ?>">
                    <i class="material-icons">text_fields</i>
                    <span>Ceklist</span>
                </a>
            </li>
            <?php endif; ?>

            <?php if(Auth::user()->role->name == 'Koordinator Mitra'): ?>
            <li class="<?php echo e($barangmitraActive ?? ''); ?>">
                <a href="<?php echo e(route('barangmitra.index')); ?>">
                    <i class="material-icons">text_fields</i>
                    <span>Barang</span>
                </a>
            </li>
            <?php endif; ?>

            <?php endif; ?>
            <!-- <?php if(Auth::user()->role == 'admin'): ?>
            <li id="menuAdministrator">
                <a href="">
                    <i class="material-icons">text_fields</i>
                    <span>Administrator</span>
                </a>
            </li>
            <?php endif; ?>
            <li id="menuSuratMasuk">
                <a href="#">
                    <i class="material-icons">layers</i>
                    <span>Surat Masuk</span>
                </a>
            </li>

            <li id="menuDokumen">
                <a href="#">
                    <i class="material-icons">remove_red_eye</i>
                    <span>E Document</span>
                </a>
            </li>
            <li id="menuKelas">
                <a href="#">
                    <i class="material-icons">account_balance</i>
                    <span>Kelas</span>
                </a>
            </li> -->

            <li class="<?php echo e($slipActive ?? ''); ?>">
                <a href="<?php echo e(route('slip.index')); ?>">
                    <i class="material-icons">credit_card</i>
                    <span>Slip</span>
                </a>
            </li>
            <li class="<?php echo e($jadwalActive ?? ''); ?>">
                <a href="<?php echo e(route('slip.jadwal')); ?>">
                    <i class="material-icons">date_range</i>
                    <span>Jadwal</span>
                </a>
            </li>

        </ul>
    </div>
    <!-- #Menu -->
    <!-- Footer -->
    <div class="legal">
        <div class="copyright">
            &copy; 2022 <a href="javascript:void(0);">Bhayu Studio</a>.
        </div>
        <div class="version">
            <b>Version: </b> 1
        </div>
    </div>
    <!-- #Footer -->
</aside>
<!-- #END# Left Sidebar --><?php /**PATH /home/sety4218/public_html/sim_pt_setia_raya/resources/views/layouts/sidebar.blade.php ENDPATH**/ ?>