23 lines
1.9 KiB
PHP
23 lines
1.9 KiB
PHP
<!-- SIDEBAR DASHBOARD -->
|
|
<aside style="width: 240px; flex-shrink: 0;">
|
|
<div style="background: #ffffff; padding: 20px; border-radius: 20px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);">
|
|
<h4 style="font-size: 11px; font-weight: 900; color: #64748b; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.05em;">Panel Navigasi</h4>
|
|
<nav style="display: flex; flex-direction: column; gap: 8px;">
|
|
|
|
@if(auth()->user()->role === 'admin')
|
|
<div style="margin-bottom: 10px;">
|
|
<h4 style="font-size: 10px; font-weight: 900; color: #94a3b8; margin-bottom: 10px; padding-left: 10px;">ADMIN TOOLS</h4>
|
|
|
|
<!-- Menu Dashboard ditambahkan di sini, di atas Kelola User -->
|
|
<a href="{{ route('dashboard') }}" style="display:block; text-decoration: none; color: #0052cc; font-weight: 800; font-size: 13px; padding: 10px; background: #f2f7ff; border-radius: 8px;">Dashboard</a>
|
|
<a href="{{ route('admin.users') }}" style="display:block; text-decoration: none; color: #475569; font-size: 13px; padding: 10px; border-radius: 8px;">Kelola User</a>
|
|
<a href="{{ route('admin.gesture') }}" style="display:block; text-decoration: none; color: #475569; font-size: 13px; padding: 10px; border-radius: 8px;">Kelola Gesture</a>
|
|
<a href="{{ route('admin.community') }}" style="display:block; text-decoration: none; color: #475569; font-size: 13px; padding: 10px; border-radius: 8px;">Komunitas</a>
|
|
</div>
|
|
@else
|
|
<!-- Link untuk User Biasa -->
|
|
<a href="{{ route('dashboard') }}" style="text-decoration: none; color: #0052cc; font-weight: 800; font-size: 13px; padding: 12px; background: #f2f7ff; border-radius: 12px;">Dashboard Utama</a>
|
|
@endif
|
|
</nav>
|
|
</div>
|
|
</aside> |