@foreach ($items as $key => $item) @php $stock = getStockHistory($item->id); @endphp @endforeach
@lang('Sl') @lang('Item Code') @lang('Name') @lang('SKU') @lang('In (+)') @lang('Out (-)') @lang('Stock')
@lang('Opening') @lang('Purchase') @lang('Stock Transfer') @lang('Sale Return') @lang('Total') @lang('Purchase Return') @lang('Stock Transfer') @lang('Sale') @lang('Adjustment') @lang('Total')
{{ $key + 1 }} {{ $item->product_code }} {{ $item->name }} {{ $item->product_sku ? $item->product_sku : '-' }} {{ numberformat($stock['opening_stock']) }} {{ numberformat($stock['purchase']) }} {{ numberformat($stock['stock_transfer_stock_in']) }} {{ numberformat($stock['sale_return']) }} {{ numberformat($stock['total_in']) }} {{ numberformat($stock['purchase_return']) }} {{ numberformat($stock['stock_transfer_stock_out']) }} {{ numberformat($stock['sale']) }} {{ numberformat($stock['adjustment']) }} {{ numberformat($stock['total_out']) }} {{ numberformat($stock['total_stock']) }} {{ $item->unit_name }}