| {{ __('SL') }}. | {{ __('Product') }} | {{ __('Cost') }} | {{ __('Qty') }} | {{ __('Sale') }} | {{ __('Stock Value') }} |
|---|---|---|---|---|---|
| {{ ($stock_reports->currentPage() - 1) * $stock_reports->perPage() + $loop->iteration }} | {{ $stock_report->productName }} | {{ currency_format(optional($firstStock)->productPurchasePrice, currency: business_currency()) }} | {{ $total_stock }} | {{ currency_format(optional($firstStock)->productSalePrice, currency: business_currency()) }} | {{ currency_format($total_value, currency: business_currency()) }} |
| {{ __('Total') }} | {{ currency_format( $stock_reports->sum(function ($stock_report) { return $stock_report->stocks->sum(function ($stock) { return $stock->productPurchasePrice * $stock->productStock; }); }), currency: business_currency() ) }} |