<nav class="main-header navbar navbar-expand navbar-white navbar-light">
    <!-- Left navbar links -->
    <ul class="navbar-nav">
        <li class="nav-item">
            <a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
        </li>
    </ul>

    <!-- SEARCH FORM -->
    <form class="form-inline ml-3">
        <div class="input-group input-group-sm">
            <input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search">
            <div class="input-group-append">
                <button class="btn btn-navbar" type="submit">
                    <i class="fas fa-search"></i>
                </button>
            </div>
        </div>
    </form>

    <!-- Right navbar links -->
    <ul class="navbar-nav ml-auto">
        <!-- Notifications Dropdown Menu -->
        <li class="nav-item dropdown">
            <a class="nav-link" data-toggle="dropdown" href="#">
                <i class="far fa-bell"></i>
                <span class="badge badge-warning navbar-badge"><?php echo e(Auth::user()->unreadNotifications()->count()); ?></span>
            </a>
            <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
                <span class="dropdown-item dropdown-header"><?php echo e(Auth::user()->unreadNotifications()->count()); ?> <?php echo e(trans_choice('core::general.notification',2)); ?></span>
                <?php $__currentLoopData = Auth::user()->unreadNotifications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $notification): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="dropdown-divider"></div>
                    <a href="<?php if(!empty($notification->data['link'])): ?> <?php echo e(url($notification->data['link'])); ?> <?php else: ?> <?php echo e(url('user/profile/notification/'.$notification->id.'/show')); ?> <?php endif; ?>"
                       class="dropdown-item">
                        <?php echo e($notification->data['message']); ?>

                        <span class="float-right text-muted text-sm"><?php echo e($notification->created_at->diffForHumans()); ?></span>
                    </a>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <div class="dropdown-divider"></div>
                <a href="<?php echo e(url('user/profile/notification')); ?>"
                   class="dropdown-item dropdown-footer"><?php echo e(__('core::general.View All')); ?></a>
            </div>
        </li>
        <li class="nav-item dropdown user-menu">
            <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" aria-expanded="true">
                <?php if(!empty(Auth::user()->photo)): ?>
                    <img class="user-image img-circle elevation-2"
                         src="<?php echo e(asset('storage/uploads/'.Auth::user()->photo)); ?>"
                         alt="User Image">
                <?php else: ?>
                    <img class="user-image img-circle elevation-2"
                         src="<?php echo e(asset('themes/adminlte/img/user.png')); ?>"
                         alt="User profile picture">
                <?php endif; ?>
                <span class="d-none d-md-inline"><?php echo e(Auth::user()->full_name); ?></span>
            </a>
            <ul class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
                <!-- User image -->
                <li class="user-header bg-primary">
                    <?php if(!empty(Auth::user()->photo)): ?>
                        <img class="user-image img-circle elevation-2"
                             src="<?php echo e(asset('storage/uploads/'.Auth::user()->photo)); ?>"
                             alt="User Image">
                    <?php else: ?>
                        <img class="user-image img-circle elevation-2"
                             src="<?php echo e(asset('themes/adminlte/img/user.png')); ?>"
                             alt="User profile picture">
                    <?php endif; ?>
                    <p>
                        <?php echo e(Auth::user()->full_name); ?>

                        <small></small>
                    </p>
                </li>
                <!-- Menu Footer-->
                <li class="user-footer">
                    <a href="<?php echo e(url('user/profile')); ?>"
                       class="btn btn-default btn-flat">
                        <?php echo e(trans_choice('core::general.profile',1)); ?>

                    </a>
                    <a href="#" onclick="logout()" class="btn btn-default btn-flat float-right">
                        <?php echo e(trans_choice('core::general.logout',1)); ?></a>
                    <form action="<?php echo e(url('logout')); ?>" method="post" id="logout_form">
                        <?php echo e(csrf_field()); ?>

                    </form>
                    <script>function logout() {
                            $("#logout_form").submit();
                        }</script>
                </li>
            </ul>
        </li>
    </ul>
</nav>
<?php /**PATH /var/www/html/projects/loan.local/themes/adminlte/views/partials/top_nav.blade.php ENDPATH**/ ?>