{{-- <!-- ======= Header ======= -->
<header id="header" class="header fixed-top d-flex align-items-center">

    <div class="d-flex align-items-center justify-content-between">
      <a href="index.html" class="logo d-flex align-items-center">
        <img src="assets/img/logo.png" alt="">
        <span class="d-none d-lg-block">J-Classify</span>
      </a>
      <i class="bi bi-list toggle-sidebar-btn"></i>
    </div><!-- End Logo -->

    <nav class="header-nav ms-auto">
      <ul class="d-flex align-items-center">
        <li class="nav-item dropdown pe-3">

          <a class="nav-link nav-profile d-flex align-items-center pe-0" href="#" data-bs-toggle="dropdown">
            <img src="assets/img/profile-img.jpg" alt="Profile" class="rounded-circle">
            <span class="d-none d-md-block dropdown-toggle ps-2">K. Anderson</span>
          </a><!-- End Profile Iamge Icon -->

          <ul class="dropdown-menu dropdown-menu-end dropdown-menu-arrow profile">
            <li class="dropdown-header">
              <h6>Kevin Anderson</h6>
              <span>Web Designer</span>
            </li>
            <li>
              <hr class="dropdown-divider">
            </li>

            <li>
                <form method="GET" action="{{ route('logout') }}">
                  <button type="submit" class="dropdown-item d-flex align-items-center" style="background: none; border: none; padding: 0; color: inherit; width: 100%;">
                    <i class="bi bi-box-arrow-right"></i>
                    <span style="margin-left: 8px;">Sign Out</span>
                  </button>
                </form>
            </li>
          </ul><!-- End Profile Dropdown Items -->
        </li><!-- End Profile Nav -->

      </ul>
    </nav><!-- End Icons Navigation -->

  </header><!-- End Header --> --}}

<!-- ======= Header ======= -->
<header id="header" class="header fixed-top d-flex align-items-center">

    <div class="d-flex align-items-center justify-content-between">
      <a href="{{ url('/') }}" class="logo d-flex align-items-center">
        <img src="{{ asset('assets/img/Logo_Polije.png') }}" alt="">
        <span class="d-none d-lg-block">J-Classify</span>
      </a>
      <i class="bi bi-list toggle-sidebar-btn"></i>
    </div><!-- End Logo -->

    <nav class="header-nav ms-auto">
      <ul class="d-flex align-items-center">
        <li class="nav-item dropdown pe-3">

          <a class="nav-link nav-profile d-flex align-items-center pe-0" href="#" data-bs-toggle="dropdown">
              <img src="{{ session('photo') ? asset(session('photo')) : asset('assets/img/messages-3.jpg')}}" alt="Profile" class="rounded-circle" width="40" height="40" style="object-fit: cover;">
            <span class="d-none d-md-block dropdown-toggle ps-2">{{ session('name') }}</span>
          </a><!-- End Profile Iamge Icon -->

          <ul class="dropdown-menu dropdown-menu-end dropdown-menu-arrow profile">
            <li class="dropdown-header">
              <h6>{{ session('name') }}</h6>
              <span>{{ ucfirst(session('role_name')) }}</span>
            <li>
              <hr class="dropdown-divider">
            </li>

            <li>
                {{-- <form method="GET" action="{{ route('logout') }}">
                  @csrf
                  <button type="submit" class="dropdown-item d-flex align-items-center" style="background: none; border: none; padding: 0; color: inherit; width: 100%;">
                    <i class="bi bi-box-arrow-right me-3 fs-5"></i>
                    <span style="margin-left: 8px;">Sign Out</span>
                  </button>
                </form> --}}
                <form method="GET" action="{{ route('logout') }}" style="margin: 0;">
                  @csrf
                  <button type="submit" class="dropdown-item d-flex align-items-center text-danger py-2 px-3 w-100" style="background: none; border: none; font-size: 1rem;">
                    <i class="bi bi-box-arrow-right me-3 fs-5"></i>
                    <span class="fw-semibold">Sign Out</span>
                  </button>
                </form>
            </li>
          </ul><!-- End Profile Dropdown Items -->
        </li><!-- End Profile Nav -->

      </ul>
    </nav><!-- End Icons Navigation -->

</header><!-- End Header -->
