@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_closing_qty = 0; $total_closing_price = 0; $pageNo= 1; $i=1; @endphp @foreach(collect($stockTransaction)->chunk(18) 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 // $total_opening_qty += $stockTransaction[$stock->id]['opening_qty']; $total_opening_qty += $stock['opening_qty']; $total_opening_price += $stock['opening_price']; $total_goods_received_qty += $stock['goods_received_qty']; $total_goods_received_price += $stock['goods_received_price']; $total_goods_issue_qty += $stock['goods_issue_qty']; $total_goods_issue_price += $stock['goods_issue_price']; $total_closing_qty += $stock['closing_qty']; $total_closing_price += $stock['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++ }} {{ $stock['group_name'] }} {{round($stock['opening_qty'],2) }} {{round($stock['opening_price'],2) }} {{round($stock['goods_received_qty'],2) }} {{round($stock['goods_received_price'],2) }} {{round($stock['goods_issue_qty'],2) }} {{round($stock['goods_issue_price'],2) }} {{round($stock['closing_qty'],2) }} {{round($stock['closing_price'],2) }}
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_closing_qty,2) }} {{ round($total_closing_price,2) }}
@endforeach @else

No Data Found

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