@extends('layouts.backend') @section('extraCss') @endsection @section('mainContentArea')

Category Wise Sales Report

From Date End Date

@if(!empty($category)) @if(is_array($category) && sizeof($category) > 0)
{{--
@csrf
--}}
@php $total=0; $qty=0; $ntotal = $etotal = $etqty = 0 ; @endphp @foreach($category as $date => $cat_value) @php $eamt= !empty($cat_value['exchange']['exchange']) ? $cat_value['exchange']['exchange'] : 0; $eqty= !empty($cat_value['exchange']['eqty']) ? $cat_value['exchange']['eqty'] : 0; $etotal += $eamt; $etqty += $eqty; $total +=$cat_value['sale']; $ntotal +=$cat_value['net']; $qty +=$cat_value['qty']; @endphp @endforeach
Category Qty Exchange Exchange Qty Net Sales Gross Sales
{{ $cat_value['category'] }} {{ $cat_value['qty'] }} {{ !empty($cat_value['exchange']['exchange']) ? $cat_value['exchange']['exchange'] : 0 }} {{ !empty($cat_value['exchange']['eqty']) ? $cat_value['exchange']['eqty'] : 0 }} {{ $cat_value['net'] }} {{ $cat_value['sale'] }}
  {{ $qty }} {{ $etotal }} {{ $etqty }} {{ $ntotal - $etotal }} {{ $total - $etotal}}
@else
No record found
@endif @else
Please select the dates above to get the report
@endif
@endsection @section('extraJs') @endsection