1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-24 07:17:55 +01:00
Maicol Battistini bba677d522
refactor: 🎨 Migliorata struttura del codice con nuove regole ESLint
Sono state aggiunte nuove regole ESLint per standardizzare il codice
2021-09-07 13:37:18 +02:00

23 lines
849 B
PHP

<mwc-list activatable>
@foreach([
'tipi-attivita' => [
'icon' => 'shape',
'text' => __('Tipi attività')
]
] as $route => $details)
@switch($route)
@case('hr')
<li divider padded role="separator"></li>
@break
@default
<a href="{{Route::has($route) ? route($route) : $route}}">
<mwc-list-item graphic="icon" @if(Request::is($route)) selected activated @endif>
<i class="mdi mdi-{{$details['icon']}}{{empty($details['no_outline']) ? '-outline' : ''}}"
slot="graphic" aria-hidden="true"></i>
<span class="mdc-typography--subtitle2">{{$details['text']}}</span>
</mwc-list-item>
</a>
@endswitch
@endforeach
</mwc-list>