@foreach ($stocks as $stock) {{ ($stocks->currentPage() - 1) * $stocks->perPage() + $loop->iteration }} {{ $stock->productName }} {{ currency_format($stock->productPurchasePrice, 'icon', 2, business_currency()) }} @if ($stock->productStock <= $stock->alert_qty) {{ $stock->productStock }} @else {{ $stock->productStock }} @endif {{ currency_format($stock->productSalePrice, 'icon', 2, business_currency()) }} {{ currency_format($stock->productPurchasePrice * $stock->productStock, 'icon', 2, business_currency()) }} @endforeach