@extends('layouts.fixed') @section('title','Product Wise Stock Transaction report') @section('css') @stop @section('content')

Product Wise Stock Transaction

{{--start --}}
{{--end --}}

{{ is_numeric(Auth::user()->active_unit) ? \App\Unit::query()->findOrFail(Auth::user()->active_unit)->name : 'NULL' }}

Inventory Transaction Of {{ $group_name }}
Report From {{ dateFormat($from) }} To {{ dateFormat($to) }}
{{-- view start --}} {{----}} @php $i = 1; $total_opening_qty = 0; $total_opening_value = 0; $total_received_qty_ = 0; $total_received_value = 0; $total_issue_qty = 0; $total_issue_value = 0; $total_closing_qty = 0; $total_closing_value = 0; @endphp @foreach($stockTransaction as $stock) @php $total_opening_qty += $stock['opening_qty']; $total_opening_value += $stock['opening_value']; $total_received_qty_ += $stock['goods_received_qty']; $total_received_value += $stock['goods_received_value']; $total_issue_qty += $stock['goods_issue_qty']; $total_issue_value += $stock['goods_issue_value']; $total_closing_qty += $stock['closing_qty']; $total_closing_value += $stock['closing_value']; @endphp @endforeach
#SL Item Opening Qty Opening Value Goods Rcvd Goods Rcvd Value Goods Issue Goods Issue ValueAvailable QtyClosing Qty Closing Value
{{ $i++ }} {{ $stock['group_name'] }} {{ round($stock['opening_qty'],2) }} {{ round($stock['opening_value'],2) }} {{ round($stock['goods_received_qty'],2) }} {{ round($stock['goods_received_value'],2) }} {{ round($stock['goods_issue_qty'],2) }} {{ round($stock['goods_issue_value'],2) }} {{ round($stock['closing_qty'],2) }} {{round( $stock['closing_value'],2) }}
Total {{round( $total_opening_qty,2) }} {{round( $total_opening_value,2) }} {{round( $total_received_qty_,2) }} {{round( $total_received_value,2) }} {{round( $total_issue_qty,2) }} {{round( $total_issue_value,2) }} {{round( $total_closing_qty,2) }} {{round( $total_closing_value , 2) }}
@stop @section('style') @stop @section('plugin') @stop @section('script') @stop