<nav class="navbar navbar-expand-xl navbar-dark fixed-top hk-navbar">
    <a class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
        aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"
        href="javascript:void(0);"><span class="feather-icon"><i data-feather="more-vertical"></i></span></a>
    <a id="navbar_toggle_btn" class="navbar-toggle-btn nav-link-hover" href="javascript:void(0);"><span
            class="feather-icon"><i data-feather="menu"></i></span></a>
    <a class="navbar-brand" href="index.html">
        <img class="brand-img d-inline-block" src="/perpus/logo-white.png" height="40" alt="brand" />
    </a>
    <ul class="navbar-nav hk-navbar-content order-xl-2">
        
        
        
        <li class="nav-item dropdown dropdown-authentication">
            <a class="nav-link dropdown-toggle no-caret" href="#" role="button" data-toggle="dropdown"
                aria-haspopup="true" aria-expanded="false">
                <div class="media">
                    <div class="media-img-wrap">
                        <div class="avatar">
                            <?php if(Auth::user()->foto == null): ?>
                                <img src="/theme/dist/img/avatar12.jpg" alt="user"
                                    class="avatar-img rounded-circle">
                            <?php else: ?>
                                <img src="/foto_petugas/<?php echo e(Auth::user()->foto); ?>" alt="user"
                                    class="avatar-img rounded-circle">
                            <?php endif; ?>
                        </div>
                        <span class="badge badge-success badge-indicator"></span>
                    </div>
                    <div class="media-body">
                        <span>
                            <?php
                                $nama = explode(' ', Auth::user()->name);
                                echo Str::title($nama[0]);
                            ?>
                            <i class="zmdi zmdi-chevron-down"></i></span>
                    </div>
                </div>
            </a>
            <div class="dropdown-menu dropdown-menu-right" data-dropdown-in="flipInX" data-dropdown-out="flipOutX">
                <a class="dropdown-item" href="<?php echo e(route('profile.index')); ?>"><i
                        class="dropdown-icon zmdi zmdi-account"></i><span>Profile</span></a>
                <a class="dropdown-item" href="<?php echo e(route('logout')); ?>"
                    onclick="event.preventDefault();
                              document.getElementById('logout-form').submit();"><i
                        class="dropdown-icon zmdi zmdi-power"></i><span>Log out</span></a>
                <form id="logout-form" action="<?php echo e(route('logout')); ?>" method="POST" class="d-none">
                    <?php echo csrf_field(); ?>
                </form>
            </div>
        </li>
    </ul>
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <ul class="navbar-nav ml-0">
            <li class="nav-item <?php echo e((request()->is('petugas/dashboard*')) ? 'active' : ''); ?>">
                <a href="<?php echo e(route('petugas.dashboard')); ?>" class="nav-link">Dashboard</a>
            </li>
            <li class="nav-item <?php echo e((request()->is('petugas/peminjaman*')) ? 'active' : ''); ?>">
                <a href="<?php echo e(route('peminjaman.index')); ?>" class="nav-link">Peminjaman Buku</a>
            </li>
            <li class="nav-item <?php echo e((request()->is('petugas/pengembalian*')) ? 'active' : ''); ?>">
                <a href="<?php echo e(route('pengembalian.index')); ?>" class="nav-link">Pengembalian Buku</a>
            </li>
            <li class="nav-item <?php echo e((request()->is('petugas/laporan*')) ? 'active' : ''); ?>">
                <a href="<?php echo e(route('laporan.index')); ?>" class="nav-link">Laporan</a>
            </li>
        </ul>
    </div>

</nav>
<?php /**PATH C:\laragon\www\perpustakaan\resources\views/petugas/theme/topbar.blade.php ENDPATH**/ ?>