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