fix: update user role display to use badge for better visual distinction in admin layout

This commit is contained in:
LailaWulandarii 2026-02-24 05:01:03 +07:00
parent a5f4071072
commit 8608a7f4fa
1 changed files with 5 additions and 1 deletions

View File

@ -97,7 +97,11 @@ class="sidebar-item {{ request()->is('admin/beranda', 'admin/beranda-pemilik') ?
style="min-width: 150px;">
<li class="dropdown-header text-center">
<h6 class="mb-0 text-dark">{{ Auth::user()->username ?? 'Admin' }}</h6>
<small class="text-muted">{{ ucfirst(Auth::user()->role ?? 'Administrator') }}</small>
<span
class="badge rounded-pill px-3 py-2 mt-2
{{ Auth::user()->role == 'admin_buket' ? 'bg-success-subtle' : 'bg-warning-subtle' }}">
{{ str_replace('_', ' ', Auth::user()->role) }}
</span>
</li>
<li>
<hr class="dropdown-divider mt-0">