feat: add user authentication with livewire components
This commit is contained in:
@@ -79,11 +79,24 @@
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center gap-3">
|
||||
<div class="flex flex-col sm:flex-row items-center gap-4">
|
||||
<span class="inline-flex items-center px-3 py-1 rounded-full text-xs font-medium bg-emerald-400/10 text-emerald-400 border border-emerald-500/20">
|
||||
<span class="w-1.5 h-1.5 mr-1.5 rounded-full bg-emerald-400 animate-ping"></span>
|
||||
Actif
|
||||
</span>
|
||||
|
||||
@auth
|
||||
<div class="flex items-center gap-3 bg-slate-900 border border-slate-800 rounded-xl px-4 py-2">
|
||||
<div class="text-right">
|
||||
<p class="text-xs text-slate-400">Connecté en tant que</p>
|
||||
<p class="text-sm font-semibold text-slate-200">{{ auth()->user()->name }}</p>
|
||||
</div>
|
||||
<div class="w-px h-8 bg-slate-800"></div>
|
||||
<a href="{{ route('logout') }}" class="text-xs font-bold text-rose-400 hover:text-rose-300 transition duration-150 py-1 px-2.5 rounded-lg hover:bg-rose-500/10">
|
||||
Déconnexion
|
||||
</a>
|
||||
</div>
|
||||
@endauth
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user