<?php
$admin=App\Models\Admin::where('id',Auth::guard('admin')->user()->id)->first();
?>
<nav class="navbar navbar-expand bg-secondary navbar-dark sticky-top px-4 py-0">
    <a href="<?php echo e(url('/admin/dashboard')); ?>" class="navbar-brand d-flex d-lg-none me-4">
        <h2 class="text-primary mb-0"><i class="fa fa-user-edit"></i></h2>
    </a>
    <a href="#" class="sidebar-toggler flex-shrink-0">
        <i class="fa fa-bars"></i>
    </a>
    <form class="d-none d-md-flex ms-4">
        <input class="form-control bg-dark border-0" type="search" placeholder="Search">
    </form>
    <div class="navbar-nav align-items-center ms-auto">

        <div class="nav-item dropdown">
            <a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown">
                <?php if(isset($admin->profile)): ?>
                <img class="rounded-circle" src="<?php echo e(asset(Auth::guard('admin')->user()->profile)); ?>" alt=""
                    style="width: 40px; height: 40px;">
                <?php else: ?>
                <img class="rounded-circle" src="<?php echo e(asset('public/backend/')); ?>/img/user.jpg" alt=""
                    style="width: 40px; height: 40px;">
                <?php endif; ?>
                <span class="d-none d-lg-inline-flex"><?php echo e(Auth::user()->name); ?></span>
            </a>
            <div class="dropdown-menu dropdown-menu-end bg-secondary border-0 rounded-0 rounded-bottom m-0">
                <a href="<?php echo e(url('admin/my/profile')); ?>" class="dropdown-item">My Profile</a>
                <a href="<?php echo e(url('admin/account/settings')); ?>" class="dropdown-item">Settings</a>
                <a href="<?php echo e(route('admin.logout')); ?>" class="dropdown-item">Log Out</a>
            </div>
        </div>
    </div>
</nav>
<?php /**PATH /home/jafrafas/jaframart.com/resources/views/admin/partials/header.blade.php ENDPATH**/ ?>