<div class="main-header mb-5">
    <div class="main-header-logo">
        <!-- Logo Header -->
        <div class="logo-header" data-background-color="dark">
            <a href="<?php echo e(route('dashboard')); ?>" class="logo">
                <img src="<?php echo e(asset('frontendAssets')); ?>/img/logo.png" alt="navbar brand" class="navbar-brand" height="20" />
            </a>
            <div class="nav-toggle">
                <button class="btn btn-toggle toggle-sidebar">
                    <i class="gg-menu-right"></i>
                </button>
                <button class="btn btn-toggle sidenav-toggler">
                    <i class="gg-menu-left"></i>
                </button>
            </div>
            <button class="topbar-toggler more">
                <i class="gg-more-vertical-alt"></i>
            </button>
        </div>
        <!-- End Logo Header -->
    </div>
    <!-- Navbar Header -->
    <nav class="navbar navbar-header navbar-header-transparent navbar-expand-lg border-bottom">
        <div class="container-fluid">
            <ul class="navbar-nav topbar-nav ms-md-auto align-items-center">
                <li class="nav-item topbar-icon dropdown hidden-caret d-flex d-lg-none">
                    <ul class="dropdown-menu dropdown-search animated fadeIn">
                        <form class="navbar-left navbar-form nav-search">
                            <div class="input-group">
                                <input type="text" placeholder="Search ..." class="form-control" />
                            </div>
                        </form>
                    </ul>
                </li>

                <li class="nav-item topbar-user dropdown hidden-caret">
                    <a class="dropdown-toggle profile-pic" data-bs-toggle="dropdown" href="#" aria-expanded="false">
                        <div class="avatar-sm">
                            <?php if(Auth::user()->profile_photo_path): ?>
                            <img src="<?php echo e(asset(Auth::user()->profile_photo_path)); ?>" alt="Avatar" class="avatar-img rounded-circle" />
                            <?php else: ?>
                            <img src="<?php echo e(asset('backendAssets')); ?>/img/avatar.png" alt="Avatar" class="avatar-img rounded-circle" />
                            <?php endif; ?>
                        </div>
                        <span class="profile-username">
                            <span class="op-7">Hi,</span>
                            <span class="fw-bold"><?php echo e(Auth::user()->first_name); ?> <?php echo e(Auth::user()->last_name); ?></span>
                        </span>
                    </a>
                    <ul class="dropdown-menu dropdown-user animated fadeIn">
                        <div class="dropdown-user-scroll scrollbar-outer">
                            <li>
                                <div class="user-box">
                                    <div class="avatar-lg">
                                        <?php if(Auth::user()->profile_photo_path): ?>
                                        <img src="<?php echo e(asset(Auth::user()->profile_photo_path)); ?>" alt="image profile" class="avatar-img rounded" />
                                        <?php else: ?>
                                        <img src="<?php echo e(asset('backendAssets')); ?>/img/avatar.png" alt="image profile" class="avatar-img rounded" />
                                        <?php endif; ?>
                                    </div>
                                    <div class="u-text">
                                        <h4><?php echo e(Auth::user()->first_name); ?> <?php echo e(Auth::user()->last_name); ?></h4>
                                        <p class="text-muted"><?php echo e(Auth::user()->email); ?></p>
                                        <?php if(Auth::user()->role == '2'): ?>
                                        <p class="text-muted">Admin <i class="fas fa-check-circle"></i> </p>
                                        <?php else: ?>
                                        <p class="text-muted">User</p>
                                        <?php endif; ?>
                                    </div>
                                </div>
                            </li>
                            <li>
                                <div class="dropdown-divider"></div>
                                <a class="dropdown-item" href="#" onclick="event.preventDefault(); document.getElementById('logout').submit()"><i class="dropdown-icon fe fe-alert-circle"></i> <i class="fas fa-sign-out-alt"></i> Logout
                                    <form action="<?php echo e(route('logout')); ?>" method="post" id="logout">
                                        <?php echo csrf_field(); ?>
                                    </form>
                                </a>
                            </li>
                        </div>
                    </ul>
                </li>
            </ul>
        </div>
    </nav>
    <!-- End Navbar -->
</div><?php /**PATH D:\xampp\htdocs\e-visa update\resources\views/backend/include/header.blade.php ENDPATH**/ ?>