@php $isCashRole = auth()->user()?->role === 'cash'; $isCaRole = auth()->user()?->role === 'ca'; $currentRoute = request()->route()?->getName(); @endphp @if(!$isCaRole) {{-- ── Masters ── --}}
  • @if(!$isCashRole)
  • Customers
  • Products
  • @endif
  • Shipping Labels
  • Stock Stickers
  • @endif {{-- ── Purchase ── --}}
  • @if(($cashModeActive || $isCashRole) && !$isCaRole)
  • Purchase Orders
  • @endif @if(!$isCashRole) @if(!$isCaRole)
  • Purchase Bill
  • Purchase Return
  • @endif
  • Payments
  • @endif {{-- ── Sales ── --}}
  • @if($cashModeActive && !$isCaRole)
  • Sales Enquiry
  • @endif @if(!$isCaRole)
  • Proforma Invoice
  • Product Outwards
  • Sales Bill
  • @endif @if($cashModeActive || $isCashRole || $isCaRole)
  • OTC Sales
  • @endif @if(!$isCashRole)
  • Receipts
  • @if(!$isCaRole)
  • Sales Return
  • @endif {{-- ── Field ── --}} @if($cashModeActive && !$isCaRole)
  • Trade Exhibition
  • @endif {{-- ── Reports ── --}}
  • Reports
  • @endif {{-- ── Settings (admin) ── --}} @if (auth()->user()?->role === 'admin')
  • Companies
  • Bank Accounts
  • Users
  • Activity Logs
  • @endif {{-- Cash Mode indicator --}} @if ($cashModeActive && auth()->user()?->role !== 'cash')
  • @endif