@foreach ($products as $index => $product) {{ $products->firstItem() + $index }}
{{ $product->product_code }}
{{--
Barcode: {{ $product->barcode ?? '—' }}
--}}
{{ $product->product_name }}
Category: {{ $product->category->name ?? '—' }}
Valuation: {{ $product->valuation_method }}
{{ $product->supplier?->supplier_name ?? '—' }}
UOM: {{ $product->uom?->uom_name ?? '—' }}
Sell: {{ number_format((float) $product->unit_sell_price, 2) }}
Cost: {{ number_format((float) $product->cost_price, 2) }}
Reorder: {{ number_format((float) $product->reorder_level, 2) }}
{{ $product->is_active ? 'Active' : 'Inactive' }} @if($product->is_powder) Powder @endif
@can('product-edit') @endcan
@endforeach