feat: Phase 2 - admin layout, dashboard, page CRUD, subscribers, user management
This commit is contained in:
15
resources/views/components/admin/sidebar-link.blade.php
Normal file
15
resources/views/components/admin/sidebar-link.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
@props([
|
||||
'href',
|
||||
'active' => false,
|
||||
])
|
||||
|
||||
@php
|
||||
$base = 'group flex items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium transition';
|
||||
$classes = $active
|
||||
? $base . ' bg-slate-800 text-white'
|
||||
: $base . ' text-slate-300 hover:bg-slate-800/80 hover:text-white';
|
||||
@endphp
|
||||
|
||||
<a href="{{ $href }}" {{ $attributes->merge(['class' => $classes]) }}>
|
||||
{{ $slot }}
|
||||
</a>
|
||||
Reference in New Issue
Block a user