Logo
@php $user = auth('web')->user(); $isAdmin = strtolower($user->role ?? '') === 'admin'; $canView = function (string $screen) use ($user, $isAdmin): bool { return $user && ($isAdmin || $user->hasPermission($screen, 'view')); }; @endphp
    @if ($canView('dashboard'))
  • Dashboard
  • @endif @if ($canView('team_management') || $canView('customers'))
  • Management
      @if ($canView('team_management'))
    • Team Management
    • @endif @if ($canView('customers'))
    • Customer
    • @endif
  • @endif @if ($canView('products') || $canView('categories'))
  • Catalogue
      @if ($canView('products'))
    • Products
    • @endif @if ($canView('categories'))
    • Category
    • @endif
  • @endif @if ($canView('orders'))
  • Orders
    @if (($pendingOrders ?? 0) > 0) {{ $pendingOrders }} @endif
    • New Orders
      @if (($pendingOrders ?? 0) > 0) {{ $pendingOrders }} @endif
    • Approved Orders
    • Packed Orders
    • Delivered Orders
    • Cancelled Orders
  • @endif @if ($canView('wholesale'))
  • Wholesale
  • @endif @if ($canView('offers'))
  • Offers & Deals
  • @endif {{-- Permission Management stays admin-only. --}} @if ($isAdmin)
  • Permission Management
  • @endif @if ($canView('contact_details'))
  • Contact Details
  • @endif @if ($isAdmin)
  • Refund Days
  • @endif @if ($canView('refund_management'))
  • Refund Request
    @if (($pendingRefunds ?? 0) > 0) {{ $pendingRefunds }} @endif
  • @endif @if ($canView('transactions'))
  • Transactions
  • @endif @if ($canView('reset_password'))
  • Reset Password
  • @endif
  • Logout