<nav class="navbar navbar-dark bg-dark sticky-top">
    <div class="container-fluid">
        <a class="navbar-brand" href="#">Admin Panel</a>
        <div class="d-flex align-items-center">
            <!-- Dynamic User Name -->
            <span class="text-white me-3"> {{ auth()->user()->name ?? 'Admin' }} </span>
            <!-- Logout Form (IMPORTANT: POST use karo) -->
            <form method="POST" action="{{ route('admin.logout') }}">
                @csrf
                <button type="submit" class="btn btn-sm btn-danger"> Logout </button>
            </form>
        </div>
    </div>
</nav>