@extends('layouts.template') @section('template')

Item: {{ $item_name }}

Opening Stock Qty: {{ $opening_stock_qty }}


@if(isset($inventory_history_in)) @php $total_stock_in = 0; $total_stock_out = 0; @endphp @foreach($inventory_history_in as $key => $single_data) @php $total_stock_in += $single_data->stock_in; $total_stock_out += $single_data->stock_out; @endphp @endforeach @foreach($inventory_history_out as $key => $single_data) @php $total_stock_in += $single_data->stock_in; $total_stock_out += $single_data->stock_out; @endphp @endforeach @endif
Srl Date In Out Rate
{{ ++$key }} {{ $single_data->stock_change_date }} {{ $single_data->stock_in }} {{ $single_data->stock_out }} {{ number_format($single_data->purchase_price,2) }}
{{ ++$key }} {{ $single_data->stock_change_date }} {{ $single_data->stock_in }} {{ $single_data->stock_out }} {{ number_format($single_data->sales_price,2) }}
Total {{ $total_stock_in }} {{ $total_stock_out }} ---
@endsection