<?php
    $userInfo = Illuminate\Support\Facades\Auth::user();
?>
<nav class="navbar navbar-expand navbar-light navbar-bg">
    <a class="sidebar-toggle js-sidebar-toggle">
        <i class="hamburger align-self-center"></i>
    </a>

    <div class="navbar-collapse collapse">
        <ul class="navbar-nav navbar-align">
            <li class="nav-item">
                <a class="nav-icon js-fullscreen d-none d-lg-block" href="#">
                    <div class="position-relative">
                        <i class="align-middle" data-feather="maximize"></i>
                    </div>
                </a>
            </li>
            <li class="nav-item dropdown">
                <a class="nav-icon pe-md-0 dropdown-toggle" href="#" data-bs-toggle="dropdown">
                    <img src="<?php echo e((!empty($userInfo->photo)) ? url($userInfo->photo) : url('upload/no_image.jpg')); ?>" class="avatar img-fluid rounded" alt="Jassa">
                </a>
                <div class="dropdown-menu dropdown-menu-end">
                    <form method="POST" action="<?php echo e(route('logout')); ?>">
                        <?php echo csrf_field(); ?>
                        <button type="submit" class="dropdown-item">
                            Log out
                        </button>
                    </form>
                </div>
            </li>
        </ul>
    </div>
</nav><?php /**PATH /home/kreditoh/public_html/agri_stock/resources/views/backend/home/top-nav.blade.php ENDPATH**/ ?>