mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-24 23:37:51 +01:00
27 lines
1.0 KiB
PHP
27 lines
1.0 KiB
PHP
<mwc-list activatable>
|
|
@php
|
|
/** @var \Illuminate\Support\Collection $modules */
|
|
$entries = $modules->pluck('drawer_entries')
|
|
->collapse()
|
|
->prepend([
|
|
'icon' => 'view-dashboard-outline',
|
|
'text' => __('Dashboard')
|
|
], 'dashboard');
|
|
@endphp
|
|
@foreach($entries as $route => $details)
|
|
@switch($route)
|
|
@case('hr')
|
|
<li divider padded role="separator"></li>
|
|
@break
|
|
@default
|
|
<a class="drawer-item" href="{{Route::has($route) ? route($route) : ''}}">
|
|
<mwc-list-item graphic="icon" @if(request()->routeIs($route)) activated @endif>
|
|
<i class="mdi mdi-{{$details['icon']}}"
|
|
slot="graphic" aria-hidden="true"></i>
|
|
<span class="mdc-typography--subtitle2">{{$details['text']}}</span>
|
|
</mwc-list-item>
|
|
</a>
|
|
@endswitch
|
|
@endforeach
|
|
</mwc-list>
|