fix: update user role display to use badge for better visual distinction in admin layout
This commit is contained in:
parent
a5f4071072
commit
8608a7f4fa
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in New Issue