77 lines
3.3 KiB
PHP
77 lines
3.3 KiB
PHP
<nav class="pc-sidebar sd-sidebar">
|
|
<div class="navbar-wrapper">
|
|
{{-- Brand / Logo --}}
|
|
<div class="m-header sd-brand px-3 py-3">
|
|
<a href="{{ route('admin.dashboard') }}" class="b-brand d-flex align-items-center">
|
|
<img src="{{ asset('assets/images/sidak-desa.jpg') }}" class="img-fluid" alt="SidakDesa"
|
|
style="max-height:42px">
|
|
</a>
|
|
</div>
|
|
|
|
{{-- Menu --}}
|
|
<div class="navbar-content d-flex flex-column" style="min-height: calc(100vh - 84px);">
|
|
@php
|
|
$items = [
|
|
[
|
|
'label' => 'Dashboard',
|
|
'icon' => 'ti ti-home-2',
|
|
'href' => route('admin.dashboard'),
|
|
'active' => request()->routeIs('admin.dashboard'),
|
|
],
|
|
[
|
|
'label' => 'Pengajuan',
|
|
'icon' => 'ti ti-notebook',
|
|
'href' => route('admin.pengajuan'),
|
|
'active' => request()->routeIs('admin.pengajuan*'),
|
|
],
|
|
[
|
|
'label' => 'Kelola Perangkat',
|
|
'icon' => 'ti ti-users',
|
|
'href' => route('admin.perangkat'),
|
|
'active' => request()->routeIs('admin.perangkat*'),
|
|
],
|
|
[
|
|
'label' => 'Laporan',
|
|
'icon' => 'ti ti-clipboard-list',
|
|
'href' => route('admin.laporan'),
|
|
'active' => request()->routeIs('admin.laporan*'),
|
|
],
|
|
[
|
|
'label' => 'Setting Absen',
|
|
'icon' => 'ti ti-settings',
|
|
'href' => route('admin.attendance.setting.show'),
|
|
'active' => request()->routeIs('admin.attendance.setting.*'),
|
|
],
|
|
// [
|
|
// 'label' => 'Berita',
|
|
// 'icon' => 'ti ti-news',
|
|
// 'href' => route('admin.berita.index'),
|
|
// 'active' => request()->routeIs('admin.berita*'),
|
|
// ],
|
|
];
|
|
@endphp
|
|
|
|
<ul class="pc-navbar sd-menu px-3">
|
|
@foreach ($items as $it)
|
|
<li class="pc-item mb-2 {{ $it['active'] ? 'active' : '' }}">
|
|
<a href="{{ $it['href'] }}" class="pc-link sd-link {{ $it['active'] ? 'active' : '' }}"
|
|
@if ($it['active']) aria-current="page" @endif>
|
|
<span class="pc-micon"><i class="{{ $it['icon'] }}"></i></span>
|
|
<span class="pc-mtext">{{ $it['label'] }}</span>
|
|
</a>
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
|
|
<div class="px-3 pb-4 mt-auto">
|
|
<a href="{{ route('logout') }}"
|
|
class="btn btn-danger w-100 d-flex align-items-center justify-content-center gap-2"
|
|
data-logout-trigger="true">
|
|
<i class="ti ti-logout"></i>
|
|
<span>Logout</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|