@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($stockTransaction); $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_available_qty = 0; $total_closing_qty = 0; $total_closing_price = 0; $pageNo= 1; $i=1; @endphp @foreach(collect($stockTransaction)->chunk(19) 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($from) }} To {{ dateFormat($to) }}
{{-- view start --}} {{----}} @php @endphp @foreach($chunkStocks as $stock) {{-- --}} @php // $total_opening_qty += $stockTransaction[$stock->id]['opening_qty']; $total_opening_qty += $stock['opening_qty']; $total_opening_price += $stock['opening_value']; $total_goods_received_qty += $stock['goods_received_qty']; $total_goods_received_price += $stock['goods_received_value']; $total_goods_issue_qty += $stock['goods_issue_qty']; $total_goods_issue_price += $stock['goods_issue_value']; $total_available_qty += $stock['available_qty']; $total_closing_qty += $stock['closing_qty']; $total_closing_price += $stock['closing_value']; @endphp @endforeach @if($total == 0) {{-- --}} @endif
#SL Group Opening Qty Opening Value Goods Rcvd Goods Rcvd Value Goods Issue Goods Issue ValueAvailable QtyClosing Qty Closing Value
{{ $i++ }} @if(Auth::id()==35) {{Auth::id()}} {{ $stock['group_name'] }} @else {{ $stock['group_name'] }} @endif {{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['available_qty'],2) }}{{round($stock['closing_qty'],2) }} {{ $stock['closing_qty']!=0 ? round($stock['closing_value'],2): 0 }}
Total {{ round($total_opening_qty,2) }} {{ round($total_opening_price,2) }} {{ round($total_goods_received_qty,2) }} {{ round($total_goods_received_price,2) }} {{ round($total_goods_issue_qty,2) }} {{ round($total_goods_issue_price,2) }}{{ round($total_available_qty,2) }}{{ round($total_closing_qty,2) }} {{ $total_closing_qty != 0 ? round($total_closing_price,2) : 0 }}
@endforeach @else

No Data Found

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