@php
$configData = Helper::applClasses();
@endphp
{{-- Foreach menu item starts --}}
@if(isset($menuData[0]))
@php
if (auth()->user()->active_portal == 'admin'){
$sidebarMenu = $menuData['0']->admin;
}else{
$sidebarMenu = $menuData['0']->customer;
}
@endphp
@foreach($sidebarMenu as $menu)
@if(isset($menu->navheader))
@else
{{-- Add Custom Class with nav-item --}}
@php
$custom_classes = "";
if(isset($menu->classlist)) {
$custom_classes = $menu->classlist;
}
$translation = "";
if(isset($menu->i18n)){
$translation = $menu->i18n;
}
$permission = explode('|', $menu->access);
@endphp
@canany($permission, auth()->user())
@endcanany
@endif
@endforeach
@endif
{{-- Foreach menu item ends --}}