<style>
  .dropdown-menu-lg {
    max-width: 200px;
    min-width: 200px;
  }
  .dropdown-item-title {
    font-size: 20px;
    font-weight: bold;
  }
</style>
<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="#" role="button"><i class="fas fa-bars"></i></a>
    </li>
  </ul>
  
  <!-- Right navbar links -->
  <ul class="navbar-nav ml-auto">
    <!-- Navbar Search -->
    <li class="nav-item">
      <a class="nav-link" data-widget="navbar-search" href="#" role="button">
        <i class="fas fa-search"></i>
      </a>
      <div class="navbar-search-block">
        <form class="form-inline">
          <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>
              <button class="btn btn-navbar" type="button" data-widget="navbar-search">
                <i class="fas fa-times"></i>
              </button>
            </div>
          </div>
        </form>
      </div>
    </li>
    <li class="nav-item dropdown">
      <a class="nav-link" data-toggle="dropdown" href="#">
        <i class="nav-icon far fa-user"></i>
      </a>
      <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
        <a href="#" class="dropdown-item py-3">
          <div class="text-start">
            <h3 class="dropdown-item-title fs-5 fw-bold">
              <?php if(Request::segment(1) === 'admin'): ?>
                <?php if(Auth::guard('admin')->check()): ?>
                  <?php echo e(Auth::guard('admin')->user()->name); ?>

                <?php endif; ?>
              <?php endif; ?>
            </h3>
            <p class="text-muted">
              <?php if(Request::segment(1) === 'admin'): ?>
                <?php if(Auth::guard('admin')->check()): ?>
                  <?php echo e(Auth::guard('admin')->user()->username); ?>

                <?php endif; ?>
              <?php endif; ?>
            </p>
          </div>
        </a>
        <div class="dropdown-divider"></div>
        <a href="<?php echo e(route('admin.logout')); ?>" class="dropdown-item text-start">
          Logout
        </a>
      </div>
    </li>
  </ul>
</nav><?php /**PATH C:\xampp\htdocs\miniOTTCodeCanyon2\resources\views/backend/layouts/header.blade.php ENDPATH**/ ?>