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

Stock Summary report

{{--start --}}
{{ Form::open(['route'=>'datewise.stock.summary','method'=>'get']) }}
Group
{{-- {{ Form::select('group_id',$groups,null,['class'=>'form-control','placeholder'=>'Select Group']) }} --}}
From
{{-- {{ Form::select('group_id',$groups,null,['class'=>'form-control','placeholder'=>'Select Group']) }} --}}
To
{{-- {{ 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
{{ $from }} To {{ $to }}

{{ $group_name}}

Printed Time: {{ \Carbon\Carbon::now()->format('d/m/Y h:i A') }}
{{-- view start --}} {{-- --}} @php @endphp @foreach($chunkStocks as $stock) {{-- --}} @php $total_quantity += $stock['qty']; $total_value += $stock['qty'] * $stock['price']; @endphp @endforeach @if($total == 0) @endif
#SL Name Unit Quantity Rate ValueDate
{{ $i++ }} {{ $stock['name']}} {{ $stock['unit']}} {{ $stock['qty'] }} {{ number_format($stock['price'], 2) }} {{ number_format($stock['qty'] * $stock['price'], 2)}} {{ $stock['created_at'] }}
{{count($stocks)}} Total Value {{ number_format($total_quantity,2) }} {{ number_format($total_value,2) }}
@endforeach @else

No Data Found

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