StocksNew/resources/views/layouts/partials/sidebar.blade.php
2024-09-19 18:33:08 +05:45

314 lines
13 KiB
PHP

<div class="app-menu navbar-menu">
<!-- LOGO -->
<div class="navbar-brand-box">
<!-- Dark Logo-->
<a href="{{ route('home') }}" class="logo logo-dark">
<span class="logo-sm">
<img src="{{ asset('assets/images/logo-sm.png') }}" alt="" height="22">
</span>
<span class="logo-lg">
<img src="{{ asset('assets/images/logo-dark.png') }}" alt="" height="17">
</span>
</a>
<!-- Light Logo-->
<a href="{{ route('home') }}" class="logo logo-light">
<span class="logo-sm">
<img src="{{ asset('assets/images/logo-sm.png') }}" alt="" height="22">
</span>
<span class="logo-lg">
<img src="{{ asset('assets/images/logo-light.png') }}" alt="" height="17">
</span>
</a>
<button type="button" class="btn btn-sm fs-20 header-item float-end btn-vertical-sm-hover p-0" id="vertical-hover">
<i class="ri-record-circle-line"></i>
</button>
</div>
<div id="scrollbar">
<div class="container-fluid">
<div id="two-column-menu">
</div>
<ul class="navbar-nav" id="navbar-nav">
<li class="nav-item">
<a href="{{ route('home') }}" class="nav-link"> <i class="ri-home-line"></i>Dashboard </a>
</li>
{{-- @role('admin')
<li class="nav-item">
<a class="nav-link menu-link" href="#MenuCompany" data-bs-toggle="collapse" role="button"
aria-expanded="false" aria-controls="MenuCompany">
<i class="ri-building-2-line"></i> <span data-key="t-companies">Company Setup</span>
</a>
<div class="menu-dropdown collapse" id="MenuCompany">
<ul class="nav nav-sm flex-column">
<li class="nav-item">
<a href="{{ route('companyType.index') }}"
class="nav-link @if (\Request::is('company-type') || \Request::is('company-type/*')) active @endif">Company Type</a>
</li>
<li class="nav-item">
<a href="{{ route('company.index') }}"
class="nav-link @if (\Request::is('company') || \Request::is('company/*')) active @endif">Company</a>
</li>
</ul>
</div>
</li>
@endrole --}}
{{-- @can('employee.index')
<li class="nav-item">
<a class="nav-link menu-link @if (\Request::is('employee') || \Request::is('employee/*')) active @endif"
href="{{ route('employee.index') }}">
<i class="ri-team-line"></i> <span data-key="t-widgets">Employee</span>
</a>
</li>
@endcan --}}
{{-- @can(['asset.index'])
<!--- Asset Start-->
<li class="nav-item">
<a class="nav-link menu-link" href="#MenuAssets" data-bs-toggle="collapse" role="button"
aria-expanded="false" aria-controls="MenuAssets">
<i class="ri-dashboard-2-line"></i> <span data-key="t-assets">Assets</span>
</a>
<div class="menu-dropdown collapse" id="MenuAssets">
<ul class="nav nav-sm flex-column">
@can('assetCategory.index')
<li class="nav-item">
<a href="{{ route('assetCategory.index') }}"
class="nav-link @if (\Request::is('asset-category') || \Request::is('asset-category/*')) active @endif">Asset Categories</a>
</li>
@endcan
@can('asset.index')
<li class="nav-item">
<a href="{{ route('asset.index') }}"
class="nav-link @if (\Request::is('asset') || \Request::is('asset/*')) active @endif">Add Asset</a>
</li>
@endcan
@can('assetDemand.index')
<li class="nav-item">
<a href="{{ route('assetDemand.index') }}"
class="nav-link @if (\Request::is('asset-demand') || \Request::is('asset-demand/*')) active @endif">Asset Demand</a>
</li>
@endcan
</ul>
</div>
</li>
<!--- Asset End-->
@endcan --}}
<li class="nav-item">
<a href="{{ route('customer.index') }}" class="nav-link @if (\Request::is('customer') || \Request::is('customer/*')) active @endif"><i
class="ri-team-line"></i>Customers</a>
</li>
<li class="nav-item">
<a href="{{ route('supplier.index') }}" class="nav-link @if (\Request::is('supplier') || \Request::is('supplier/*')) active @endif"><i
class="ri-team-line"></i>Suppliers</a>
</li>
{{-- PURCHASES --}}
<li class="menu-title"><i class="ri-more-fill"></i> <span data-key="t-pages">Purchases</span></li>
<li class="nav-item">
<a class="nav-link @if (\Request::is('ingredient') || \Request::is('ingredient/*')) active @endif"
href="{{ route('ingredient.index') }}">Ingredients</a>
</li>
<li class="nav-item">
<a href="{{ route('ingredientCategory.index') }}"
class="nav-link @if (\Request::is('ingredientCategory') || \Request::is('ingredientCategory/*')) active @endif">Ingredient Category</a>
</li>
<li class="nav-item">
<a href="{{ route('unit.index') }}"
class="nav-link @if (\Request::is('unit') || \Request::is('unit/*')) active @endif">Unit</a>
</li>
<li class="nav-item">
<a href="{{ route('purchaseEntry.index') }}"
class="nav-link @if (\Request::is('purchaseEntry') || \Request::is('purchaseEntry/*')) active @endif">Purchase Entry</a>
</li>
{{-- SALES --}}
<li class="menu-title"><i class="ri-more-fill"></i> <span data-key="t-pages">Sales</span></li>
<li class="nav-item">
<a class="nav-link @if (\Request::is('product') || \Request::is('product/*')) active @endif"
href="{{ route('product.index') }}">Products</a>
</li>
<li class="nav-item">
<a href="{{ route('category.index') }}"
class="nav-link @if (\Request::is('category') || \Request::is('category/*')) active @endif">Category</a>
</li>
<li class="nav-item">
<a href="{{ route('salesEntry.index') }}"
class="nav-link @if (\Request::is('salesEntry') || \Request::is('salesEntry/*')) active @endif">Sales Entry</a>
</li>
{{-- <li class="nav-item">
<a href="{{ route('subCategory.index') }}"
class="nav-link @if (\Request::is('subCategory') || \Request::is('subCategory/*')) active @endif">Sub Category</a>
</li> --}}
<li class="menu-title"><i class="ri-more-fill"></i> <span data-key="t-pages">Stocks</span></li>
<li class="nav-item">
<a href="{{ route('stock.index') }}"
class="nav-link @if (\Request::is('stock') || \Request::is('stock/*')) active @endif">Stock</a>
</li>
<li class="nav-item">
<a href="{{ route('stockLocation.index') }}"
class="nav-link @if (\Request::is('stockLocation') || \Request::is('stockLocation/*')) active @endif">Stock Location</a>
</li>
{{-- <li class="nav-item">
<a href="{{ route('fabricCategory.index') }}"
class="nav-link @if (\Request::is('fabriccategory') || \Request::is('fabriccategory/*')) active @endif">Fabric Category</a>
</li> --}}
{{-- <li class="nav-item">
<a href="{{ route('warehouse.index') }}"
class="nav-link @if (\Request::is('warehouse') || \Request::is('warehouse/*')) active @endif">Warehouses</a>
</li> --}}
{{-- <li class="nav-item">
<a href="{{ route('order.index') }}"
class="nav-link @if (\Request::is('order') || \Request::is('order/*')) active @endif">Order</a>
</li> --}}
{{-- <li class="nav-item">
<a href="{{ route('setting.edit', 1) }}"
class="nav-link @if (\Request::is('setting') || \Request::is('setting/*')) active @endif">Settings</a>
</li> --}}
{{-- <li class="nav-item">
<a href="{{ route('product.index') }}"
class="nav-link @if (\Request::is('attendance') || \Request::is('attendance/*')) active @endif">Order</a>
</li> --}}
{{-- <li class="nav-item">
<a class="nav-link menu-link" href="#taxation" data-bs-toggle="collapse" role="button" aria-expanded="false"
aria-controls="taxation">
<i class="ri-book-2-line"></i> <span data-key="t-masters">Taxation</span>
</a>
<div class="menu-dropdown collapse" id="taxation">
<ul class="nav nav-sm flex-column">
<li class="nav-item">
<a href="{{ route('user.index') }}"
class="nav-link @if (\Request::is('user') || \Request::is('user/*')) active @endif">Users</a>
</li>
</ul>
</div>
</li>
--}}
{{-- <li class="nav-item">
<a href="#" class="nav-link"> <i class="ri-settings-2-line"></i>Setting</a>
</li> --}}
<li class="menu-title"><i class="ri-more-fill"></i> <span data-key="t-pages">Setting</span></li>
@role('admin')
<li class="nav-item">
<a class="nav-link menu-link" href="#MenuUser" data-bs-toggle="collapse" role="button" aria-expanded="false"
aria-controls="MenuUser">
<i class="ri-user-2-line"></i> <span data-key="t-Users">User Management</span>
</a>
<div class="menu-dropdown collapse" id="MenuUser">
<ul class="nav nav-sm flex-column">
@can('user.index')
<li class="nav-item">
<a href="{{ route('user.index') }}"
class="nav-link @if (\Request::is('user') || \Request::is('user/*')) active @endif">Users</a>
</li>
@endcan
@can('role.index')
<li class="nav-item">
<a href="{{ route('role.index') }}"
class="nav-link @if (\Request::is('role') || \Request::is('role/*')) active @endif">Roles</a>
</li>
@endcan
@can('permission.index')
<li class="nav-item">
<a href="{{ route('permission.index') }}"
class="nav-link @if (\Request::is('permission') || \Request::is('permission/*')) active @endif">Permissions</a>
</li>
@endcan
</ul>
</div>
</li>
<!--- Master Start-->
<li class="nav-item">
<a class="nav-link menu-link" href="#MenuMaster" data-bs-toggle="collapse" role="button"
aria-expanded="false" aria-controls="MenuMaster">
<i class="ri-dashboard-2-line"></i> <span data-key="t-masters">Master</span>
</a>
<div class="menu-dropdown collapse" id="MenuMaster">
<ul class="nav nav-sm flex-column">
@can('country.index')
<li class="nav-item">
<a href="{{ route('country.index') }}"
class="nav-link @if (\Request::is('country') || \Request::is('country/*')) active @endif">Countries</a>
</li>
@endcan
@can('province.index')
<li class="nav-item">
<a href="{{ route('province.index') }}"
class="nav-link @if (\Request::is('province') || \Request::is('province/*')) active @endif">Provinces</a>
</li>
@endcan
@can('district.index')
<li class="nav-item">
<a href="{{ route('district.index') }}"
class="nav-link @if (\Request::is('district') || \Request::is('district/*')) active @endif">Districts</a>
</li>
@endcan
@can('municipality.index')
<li class="nav-item">
<a href="{{ route('municipality.index') }}"
class="nav-link @if (\Request::is('municipality') || \Request::is('municipality/*')) active @endif">Municipalities</a>
</li>
@endcan
@can('dropdown.index')
<li class="nav-item">
<a href="{{ route('dropdown.index') }}"
class="nav-link @if (\Request::is('dropdown') || \Request::is('dropdown/*')) active @endif">Dropdown</a>
</li>
@endcan
</ul>
</div>
</li>
<!--- Master End-->
@endrole
</ul>
</div>
<!-- Sidebar -->
</div>
<div class="sidebar-background"></div>
</div>