2016-01-26 23:20:08 -05:00
|
|
|
@extends('dashboard.core')
|
|
|
|
|
|
|
|
@section('dashboard-body')
|
2018-01-12 23:48:21 -05:00
|
|
|
<div class="list-group menu-list">
|
2018-04-18 00:38:11 -04:00
|
|
|
@foreach(App\Models\Dashboard::$menu as $menu_item)
|
2018-04-17 18:52:44 -04:00
|
|
|
@if(array_key_exists('submenu', $menu_item))
|
|
|
|
@foreach($menu_item['submenu'] as $submenu_item)
|
2018-01-12 23:48:21 -05:00
|
|
|
<li class="list-group-item">
|
2018-04-17 18:52:44 -04:00
|
|
|
{{ $menu_item['title'] }}: {{ $submenu_item['title'] }}
|
2018-04-02 22:47:09 -04:00
|
|
|
|
2018-01-12 23:48:21 -05:00
|
|
|
<a
|
|
|
|
class="list-group-item-link"
|
2018-04-18 23:32:22 -04:00
|
|
|
href="/dashboard/{{ $submenu_item['type'] }}/{{ $submenu_item['model'] }}">
|
2018-01-12 23:48:21 -05:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
@else
|
2018-01-12 22:57:31 -05:00
|
|
|
<li class="list-group-item">
|
2018-04-17 18:52:44 -04:00
|
|
|
{{ $menu_item['title'] }}
|
2018-04-02 22:47:09 -04:00
|
|
|
|
2018-01-12 23:48:21 -05:00
|
|
|
<a
|
|
|
|
class="list-group-item-link"
|
2018-04-18 23:32:22 -04:00
|
|
|
href="/dashboard/{{ $menu_item['type'] }}/{{ $menu_item['model'] }}">
|
2018-01-12 22:57:31 -05:00
|
|
|
</a>
|
|
|
|
</li>
|
2018-01-12 23:48:21 -05:00
|
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
</div>
|
2016-01-26 23:20:08 -05:00
|
|
|
@endsection
|