{{ __('Purchase Report') }}

{{ $item->name }}

{{ __('From Date') }} : {{ $from }}

{{ __('To Date') }} : {{ $to }}

{{--

122

--}}
@if ($type == 'pc') @endif @if ($type == 'pc') @endif @php $total_value = $openingBalance->value ?? 0; $total_amount = $openingBalance->total ?? 0; $wavg = $openingBalance->weghted_average ?? 0; @endphp @foreach ($transactions as $transaction) @php $total_value += $transaction->value; $total_amount += $transaction->total; if ($transaction->value > 0) { if ($total_value > 0) { $wavg = $total_amount / $total_value; } } @endphp @if ($type == 'pc') @endif @endforeach @if ($type == 'pc') @endif
{{ __('Invoice Date') }} {{ __('Serial Number') }} {{ __('Type') }} {{ __('Price') }} {{ __('Quantity/Weight') }}{{ __('Weighted Average') }}{{ __('Total') }}
{{ __('Openning Balance') }} {{ $openingBalance->value ?? 0 }}{{ $openingBalance->weghted_average ?? 0 }}{{ $openingBalance->total ?? 0 }}
{{ $transaction->date }} {{ $transaction->serial_number }} {{ $transaction->type }} {{ $transaction->price }} {{ $transaction->value }} @if ($transaction->value < 0) {{ $transaction->price }} @else {{ $wavg }} @endif {{ abs($transaction->total) }}
{{ __('Total') }} {{ $total_value }}{{ $wavg }}{{ $total_amount }}