osb/resources/views/vendor/adminlte/layouts/partials/sidebarmenu.blade.php

47 lines
1.5 KiB
PHP

<li class="nav-header">MAIN</li>
<li class="nav-item">
<a href="{{ url('home') }}" class="nav-link @if(preg_match('#^event/summary#',Route::current()->uri())) active @endif">
<i class="nav-icon fa fa-link"></i>
<p>
{{ trans('adminlte_lang::message.home') }}
</p>
</a>
</li>
<li class="nav-item has-treeview @if(preg_match('#^order/#',Route::current()->uri())) menu-open @endif">
<a href="#" class="nav-link @if(preg_match('#^order/#',Route::current()->uri())) active @endif">
<i class="nav-icon fa fa-tree"></i>
<p>
Orders
<i class="fa fa-angle-left right"></i>
</p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="{{ url('order') }}" class="nav-link @if(Route::current()->uri() == 'group/add') active @endif">
<i class="fa fa-circle-o nav-icon"></i>
<p>New Order</p>
</a>
</li>
</ul>
</li>
@can('wholesaler')
<li class="nav-header">ADMIN</li>
<li class="nav-item has-treeview @if(preg_match('#^a/report/(products)#',request()->path()))menu-open @else menu-closed @endif">
<a href="#" class="nav-link @if(preg_match('#^a/report/(products)#',request()->path())) active @endif">
<i class="nav-icon fa fa-list"></i> <p>REPORT<i class="fa fa-angle-left right"></i></p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="{{ url('a/report/products') }}" class="nav-link @if(preg_match('#^a/report/products$#',request()->path()))active @endif">
<i class="nav-icon fa fa-shopping-cart"></i> <p>Products</p>
</a>
</li>
</ul>
</li>
@endcan