@foreach($product_stock_details as $product) @endforeach
SKU @lang('business.product') @lang('business.location') @lang('sale.unit_price') @lang('report.current_stock') @lang('lang_v1.total_stock_price') @lang('report.total_unit_sold') @lang('lang_v1.total_unit_transfered') @lang('lang_v1.total_unit_adjusted')
{{$product->sku}} @php $name = $product->product; if ($product->type == 'variable') { $name .= ' - ' . $product->product_variation . '-' . $product->variation_name; } @endphp {{$name}} {{$product->location_name}} {{$product->unit_price ?? 0}} {{$product->stock ?? 0}}{{$product->unit}} {{$product->unit_price * $product->stock}} {{$product->total_sold ?? 0}}{{$product->unit}} {{$product->total_transfered ?? 0}}{{$product->unit}} {{$product->total_adjusted ?? 0}}{{$product->unit}}
@foreach($ps as $product) @php $st=''; if($product->type=="opening_stock" || $product->type=="purchase" || $product->type=="purchase_transfer"){ $st="style=background:green;color:white;"; }else if($product->type=="stock_adjustment" || $product->type=="sell_transfer"){ $st="style=background:red;color:white;"; } @endphp @endforeach
Quantity Date Type Ref No Lot Number Location To Location From
{{$product->quantity}} {{date('d-m-Y h:i A',strtotime($product->transaction_date))}} {{$product->type}} {{$product->ref_no}} {{$product->lot_number}} {{$product->from_location}} {{$product->to_location}}