mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-12-23 10:00:23 -05:00
29 lines
1.1 KiB
PHP
29 lines
1.1 KiB
PHP
@extends('dashboard.core')
|
|
|
|
@section('dashboard-body')
|
|
<div class="list-group menu-list">
|
|
@foreach(App\Models\DashboardMenu::$menu as $menu_item)
|
|
@if(array_key_exists('submenu', $menu_item))
|
|
@foreach($menu_item['submenu'] as $submenu_item)
|
|
<li class="list-group-item">
|
|
{{ $menu_item['title'] }}: {{ $submenu_item['title'] }}
|
|
|
|
<a
|
|
class="list-group-item-link"
|
|
href="{{ url('/dashboard/' . $submenu_item['type'] . '/' . $submenu_item['model']) }}">
|
|
</a>
|
|
</li>
|
|
@endforeach
|
|
@else
|
|
<li class="list-group-item">
|
|
{{ $menu_item['title'] }}
|
|
|
|
<a
|
|
class="list-group-item-link"
|
|
href="{{ url('/dashboard/' . $menu_item['type'] . '/' . $menu_item['model']) }}">
|
|
</a>
|
|
</li>
|
|
@endif
|
|
@endforeach
|
|
</div>
|
|
@endsection
|