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

Stock Transaction

{{--start --}}
{{ Form::open(['route'=>'stock.transaction','method'=>'get']) }}
{{ Form::close() }}
{{--end --}}
@if(!empty($groups)) @php $total = count($groups); $total_opening_qty = 0; $total_opening_price = 0; $total_goods_received_qty = 0; $total_goods_received_price = 0; $total_goods_issue_qty = 0; $total_goods_issue_price = 0; $total_closing_qty = 0; $total_closing_price = 0; $pageNo= 1; $i=1; @endphp @foreach($groups->chunk(17) as $chunkStocks) @php $total -=count($chunkStocks); @endphp

Page No: {{$pageNo++}}

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

Inventory Transaction
{{--
Transaction Type : Purchase
--}}
Report From {{ dateFormat($date_from) }} To {{ dateFormat($date_to) }}
{{-- view start --}} @php @endphp @foreach($chunkStocks as $stock) {{-- --}} @php $opening_qty = max($stockTransaction[$stock->id]['opening_qty'],0) @endphp @php // $total_opening_qty += $stockTransaction[$stock->id]['opening_qty']; $total_opening_qty += $opening_qty; $total_opening_price += $stockTransaction[$stock->id]['opening_price']; $total_goods_received_qty += $stockTransaction[$stock->id]['goods_received_qty']; $total_goods_received_price += $stockTransaction[$stock->id]['goods_received_price']; $total_goods_issue_qty += $stockTransaction[$stock->id]['goods_issue_qty']; $total_goods_issue_price += $stockTransaction[$stock->id]['goods_issue_price']; $total_closing_qty += $stockTransaction[$stock->id]['closing_qty']; $total_closing_price += $stockTransaction[$stock->id]['closing_price']; @endphp @endforeach @if($total == 0) @endif
#SL Group Opening Qty Opening Value Goods Rcvd Goods Rcvd Value Goods Issue Goods Issue Value Closing Qty Closing Value
{{ $i++ }} {{ $stockTransaction[$stock->id]['group_name'] }}{{number_format( $stockTransaction[$stock->id]['opening_qty'],2) }}{{number_format( $opening_qty,2) }} {{number_format( $stockTransaction[$stock->id]['opening_price'],2) }} {{number_format( $stockTransaction[$stock->id]['goods_received_qty'],2) }} {{number_format( $stockTransaction[$stock->id]['goods_received_price'],2) }} {{number_format( $stockTransaction[$stock->id]['goods_issue_qty'],2) }} {{number_format( $stockTransaction[$stock->id]['goods_issue_price'],2) }} {{number_format( $stockTransaction[$stock->id]['closing_qty'],2) }} {{number_format( $stockTransaction[$stock->id]['closing_price'],2) }}
Total {{ number_format($total_opening_qty,2) }} {{ number_format($total_opening_price,2) }} {{ number_format($total_goods_received_qty,2) }} {{ number_format($total_goods_received_price,2) }} {{ number_format($total_goods_issue_qty,2) }} {{ number_format($total_goods_issue_price,2) }} {{ number_format($total_closing_qty,2) }} {{ number_format($total_closing_price,2) }}
@endforeach @else

No Data Found

@endif @stop @section('style') @stop @section('plugin') @stop @section('script') @stop