mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-13 20:32:30 -05:00
29 lines
983 B
PHP
29 lines
983 B
PHP
@extends('dashboard.core')
|
|
|
|
@section('dashboard-body')
|
|
<div class="list-group menu-list">
|
|
@foreach(App\Models\DashboardMenu::$menu as $menu_item)
|
|
@if(is_array($menu_item[1]))
|
|
@foreach($menu_item[1] as $submenu_item)
|
|
<li class="list-group-item">
|
|
{{ $menu_item[0] }}: {{ $submenu_item[0] }}
|
|
|
|
<a
|
|
class="list-group-item-link"
|
|
href="{{ url('/dashboard/' . $submenu_item[1]) }}">
|
|
</a>
|
|
</li>
|
|
@endforeach
|
|
@else
|
|
<li class="list-group-item">
|
|
{{ $menu_item[0] }}
|
|
|
|
<a
|
|
class="list-group-item-link"
|
|
href="{{ url('/dashboard/' . $menu_item[1]) }}">
|
|
</a>
|
|
</li>
|
|
@endif
|
|
@endforeach
|
|
</div>
|
|
@endsection
|