Current File : /home/tradevaly/new.tradevaly.com.bd/resources/views/backend/ayaan/sidebar.blade.php |
<!-- ========== Left Sidebar Start ========== -->
<div class="vertical-menu">
<div data-simplebar class="h-100">
<!--- Sidemenu -->
<div id="sidebar-menu">
<!-- Left Menu Start -->
<ul class="metismenu list-unstyled" id="side-menu">
@foreach(permissions() as $menu )
@if(check_permision(Auth::guard('admin')->user()->role_id,$menu->id) )
@if($menu->type == 'menu')
<li class="{{ menuActive($menu->main_route) }}">
<a href="{{ route($menu->route) }}" class="waves-effect">
<i class="{{ $menu->icon }}"></i>
<span key="t-dashboards">{{ $menu->name }}</span>
</a>
</li>
@else
<li class="{{menuActive($menu->main_route)}}">
<a href="javascript: void(0);" class="has-arrow waves-effect">
<i class="{{ $menu->icon }}"></i>
<span key="t-ecommerce">{{ $menu->name }}</span>
</a>
<ul class="sub-menu {{menuActive($menu->route)}}" aria-expanded="false">
@foreach(sub_menus($menu->id) as $sub_menu)
<li class="{{ menuActive($sub_menu->route) }} "><a href="{{ route($sub_menu->route) }}" key="t-products">{{ $sub_menu->sub_menu }}</a></li>
@endforeach
</ul>
</li>
</li>
@endif
@endif
@endforeach
</ul>
</div>
<!-- Sidebar -->
</div>
</div>
<!-- Left Sidebar End -->