hypothetical/resources/views/dashboard/home.blade.php

29 lines
1.1 KiB
PHP

@extends('dashboard.core')
@section('dashboard-body')
<div class="list-group menu-list">
@foreach(App\Models\Dashboard::$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