You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xshop/resources/views/segments/menu/DeebaMenu/DeebaMenu.blade.php

40 lines
1.3 KiB
PHTML

<nav id='DeebaMenu'>
<div class="{{gfx()['container']}}">
<ul>
@php($items = getMenuBySetting($data->area_name.'_'.$data->part.'_menu')->items)
@php($menuShow = false)
@foreach($items as $i => $item)
{{-- find center --}}
@if(!$menuShow && ($i > (count($items) / 2) -1 ) )
@php($menuShow = true)
<li id="deeba-logo-main">
<a href="#">
<img src="{{asset('upload/images/logo.png')}}" alt="">
</a>
</li>
@endif
<li>
<a href="{{$item->webUrl()}}">
{{$item->title}}
</a>
</li>
@endforeach
<li id="deeba-toggle">
<a >
<i class="ri-menu-line"></i>
</a>
</li>
</ul>
</div>
<ul id="deeba-sided">
@foreach(getMenuBySetting($data->area_name.'_'.$data->part.'_menu')->items as $item)
<li>
<a href="{{$item->webUrl()}}">
{{$item->title}}
</a>
</li>
@endforeach
</ul>
</nav>