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

152 lines
5.3 KiB
PHP

<li class="nav-header">MAIN</li>
<li class="nav-item">
<a href="{{ url('home') }}" class="nav-link @if(preg_match('#^u/home$#',$path=request()->path())) active @endif">
<i class="nav-icon fas fa-home"></i> <p>Home</p>
</a>
</li>
<!-- ORDERS -->
<li class="nav-item has-treeview @if(preg_match('#^order#',$path)) menu-open @endif">
<a href="#" class="nav-link @if(preg_match('#^order#',$path)) active @endif">
<i class="nav-icon fas fa-cash-register"></i>
<p>Orders <i class="fas fa-angle-left right"></i></p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="{{ url('order') }}" class="nav-link @if(preg_match('#^order$#',$path)) active @endif">
<i class="fas fa-tag nav-icon"></i> <p>New Order</p>
</a>
</li>
</ul>
</li>
@can('wholesaler')
<!-- CHARGES -->
<li class="nav-item has-treeview @if(preg_match('#^a/charge/#',$path)) menu-open @endif">
<a href="#" class="nav-link @if(preg_match('#^a/charge/#',$path)) active @endif">
<i class="nav-icon fas fa-plus"></i>
<p>Charges <i class="fas fa-angle-left right"></i></p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="{{ url('a/charge/addedit') }}" class="nav-link @if(request()->path() == 'a/charge/addedit') active @endif">
<i class="fas fa-cart-plus nav-icon"></i> <p>New Charge</p>
</a>
</li>
<li class="nav-item">
<a href="{{ url('a/charge/unprocessed') }}" class="nav-link @if(request()->path() == 'a/charge/unprocessed') active @endif">
<i class="fas fa-list nav-icon"></i> <p>Unprocessed</p>
</a>
</li>
</ul>
</li>
<!-- PAYMENTS -->
<li class="nav-item has-treeview @if(preg_match('#^a/payment/#',$path)) menu-open @endif">
<a href="#" class="nav-link @if(preg_match('#^a/payment/#',$path)) active @endif">
<i class="nav-icon fas fa-receipt"></i>
<p>Payments <i class="fas fa-angle-left right"></i></p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="{{ url('a/payment/addedit') }}" class="nav-link @if(preg_match('#^a/payment/addedit#',$path)) active @endif">
<i class="fas fa-money-bill nav-icon"></i> <p>New Payment</p>
</a>
</li>
<li class="nav-item">
<a href="{{ url('a/payment/unapplied') }}" class="nav-link @if(preg_match('#^a/payment/unapplied$#',$path)) active @endif">
<i class="fas fa-receipt nav-icon"></i> <p>Unapplied</p>
</a>
</li>
</ul>
</li>
@endcan
@can('wholesaler')
<li class="nav-header">ADMIN</li>
<li class="nav-item">
<a href="{{ url('a/setup') }}" class="nav-link @if(preg_match('#^a/setup#',$path)) active @endif">
<i class="nav-icon fas fa-cogs"></i> <p>Site Setup</p>
</a>
</li>
<li class="nav-item">
<a href="{{ url('a/product') }}" class="nav-link @if(preg_match('#^a/product#',$path)) active @endif">
<i class="nav-icon fas fa-barcode"></i> <p>Products</p>
</a>
</li>
<!-- SUPPLIERS -->
<li class="nav-item has-treeview @if(preg_match('#^a/supplier#',$path)) menu-open @endif">
<a href="#" class="nav-link @if(preg_match('#^a/supplier#',$path)) active @endif">
<i class="nav-icon fas fa-user-tag"></i>
<p>Suppliers <i class="fas fa-angle-left right"></i></p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="{{ url('a/supplier') }}" class="nav-link @if(preg_match('#^a/supplier(/[cost|details]+/[0-9]+)?$#',$path)) active @endif">
<i class="nav-icon fas fa-cogs"></i> <p>Configuration</p>
</a>
</li>
<li class="nav-item">
<a href="{{ url('a/supplier/product/add') }}" class="nav-link @if(preg_match('#^a/supplier/product/(add|edit)#',$path)) active @endif">
<i class="nav-icon fas fa-barcode"></i> <p>New Product</p>
</a>
</li>
</ul>
</li>
<li class="nav-item has-treeview @if(preg_match('#^a/report/(products)#',$path))menu-open @else menu-closed @endif">
<a href="#" class="nav-link @if(preg_match('#^a/report/(products)#',$path)) active @endif">
<i class="nav-icon fas fa-list"></i> <p>REPORT<i class="fas 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$#',$path))active @endif">
<i class="nav-icon fas fa-barcode"></i> <p>Products</p>
</a>
</li>
</ul>
</li>
@endcan
@can('reseller')
<li class="nav-header">RESELLER</li>
<li class="nav-item has-treeview @if(preg_match('#^r/report/(domain|email|hosting)#',$path))menu-open @else menu-closed @endif">
<a href="#" class="nav-link @if(preg_match('#^r/report/(domain|email|hosting)#',$path)) active @endif">
<i class="nav-icon fas fa-list"></i> <p>REPORT<i class="fas fa-angle-left right"></i></p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="{{ url('r/report/domain') }}" class="nav-link @if(preg_match('#^r/report/domain$#',$path))active @endif">
<i class="nav-icon fas fa-globe-asia"></i> <p>Domain Names</p>
</a>
</li>
<li class="nav-item">
<a href="{{ url('r/report/email') }}" class="nav-link @if(preg_match('#^r/report/email$#',$path))active @endif">
<i class="nav-icon fas fa-envelope"></i> <p>Email Hosting</p>
</a>
</li>
<li class="nav-item">
<a href="{{ url('r/report/hosting') }}" class="nav-link @if(preg_match('#^r/report/hosting$#',$path))active @endif">
<i class="nav-icon fas fa-sitemap"></i> <p>Web Hosting</p>
</a>
</li>
</ul>
</li>
@endcan