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

Stock Summary report

{{--start --}}
{{ Form::open(['route'=>'stock.summary2','method'=>'get']) }}
{{-- {{ Form::select('group_id',$groups,null,['class'=>'form-control','placeholder'=>'Select Group']) }} --}}
{{-- --}}
{{ Form::close() }}
{{--end --}}
@if($stocks) @if(count($stocks) >0) @php $total = count($stocks); $total_quantity = 0; $total_value = 0; $pageNo= 1; $i=1; @endphp @foreach($stocks->chunk(35) 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' }}

Stock Summary Report

{{ $group_name}}

Printed Time: {{ \Carbon\Carbon::now()->format('d/m/Y h:i:s A') }}
{{-- view start --}} @php @endphp @foreach($chunkStocks as $stock) @endforeach
#SL Name Opening Qty Opening Value Goods Rcvd Goods Rcvd Value Goods Issue Goods Issue Value Closing Qty Closing Value
{{ $i++ }} {{ $stock['name']}} {{ $stock['opening_qty']}} {{ $stock['opening_value'] }} {{ $stock['goods_received_qty'] }} {{ $stock['goods_received_value'] }} {{ $stock['goods_issue_qty'] }} {{ $stock['goods_issue_value'] }} {{ $stock['closing_qty'] }} {{ $stock['closing_value'] }}
Total Value {{ number_format($stocks->sum('opening_qty'),2) }} {{ number_format($stocks->sum('opening_value'),2) }} {{ number_format($stocks->sum('goods_received_qty'),2) }} {{ number_format($stocks->sum('goods_received_value'),2) }} {{ number_format($stocks->sum('goods_issue_qty'),2) }} {{ number_format($stocks->sum('goods_issue_value'),2) }} {{ number_format($stocks->sum('closing_qty'),2) }} {{ number_format($stocks->sum('closing_value'),2) }}
@endforeach @else

No Data Found

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