
<?php
    use App\Models\User;
    $user = User::find(3); // ID de l'utilisateur
    Auth::login($user);
?>

<div class="main-header sticky side-header nav nav-item">
    <div class="container-fluid">
        <div class="main-header-left ">
            <div class="responsive-logo">
                <a href=""><img src="<?php echo e(url('assets/img/brand/logo.png')); ?>" class="logo-1" alt="logo"></a>
            </div>
            <div class="app-sidebar__toggle" data-toggle="sidebar" style="padding-top: 10px">
                <a class="open-toggle" href="#"><i class="la la-bars fe fe-align-left" ></i></a>
                <a class="close-toggle" href="#"><i class="la la-close fe fe-x"></i></a>
            </div>
            <div class="main-header-center ml-3 d-sm-none d-md-none d-lg-block">

            </div>
        </div>
        <div class="main-header-right">
            <div class="nav nav-item  navbar-nav-right ml-auto">

                <div class="dropdown main-header-message right-toggle">
                    <a class="nav-link pr-0" data-toggle="sidebar-right" data-target=".sidebar-right">
                        <svg xmlns="http://www.w3.org/2000/svg" class="header-icon-svgs" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-bell"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg>
                        <span class="  pulse-danger"></span>
                    </a>
                </div>
                
                <div class="dropdown main-profile-menu nav nav-item nav-link">
                    <a class="profile-user d-flex" href=""><img alt="" src="<?php echo e(url('assets/img/faces/avatar.png')); ?>"></a>
                    <div class="dropdown-menu">
                        <div class="main-header-profile bg-primary p-3">
                            <div class="d-flex wd-100p">
                                <div class="main-img-user"><img alt="" src="<?php echo e(url('assets/img/faces/avatar.png')); ?>" class=""></div>
                                <div class="ml-3 my-auto">
                                    <h6><?php echo e(Auth::user()->firstname); ?></h6>
                                    <span><?php echo e(Auth::user()->role->nom); ?></span>
                                </div>
                            </div>
                        </div>
                        
                        <a class="dropdown-item" href="<?php echo e(url('logout')); ?>"><i class="bx bx-log-out"></i> Se déconnecter</a>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>
<?php /**PATH C:\Users\UTILISATEUR\Desktop\Fidelisations\loyalty-system\loyalty-app\resources\views/inc/header.blade.php ENDPATH**/ ?>