@extends('layouts.backend') @section('extraCss') @endsection @php $spscount = \App\CustomerPlan::with('customerRef')->whereHas('customerRef', function ($q) use ($pos_id) { $q->where('warehouse_id', $pos_id); $q->Distinct('customer_id'); })->where('current', 1)->where('status', 1)->whereBetween('start_date', [$startdate, $enddate])->count(); @endphp @section('mainContentArea')

Daily Sales Summary Report

From Date End Date

@if(!empty($salesData)) @if(is_array($salesData) && sizeof($salesData) > 0)
Total SPS :
@if(!empty($salesData)) @php $grealsale = $grealsoldqty = $grealmrp= $abv = $asp = $averaguabv = $averagasp = $averagupt = $totalCount = 0 ; @endphp @foreach($salesData as $key => $order) @php $totalTotal = 0; $order['totalfinalamt'] = $order['totalfinalamt'] - $order['totalExchangeAmt'] ; $totalTotal += $order['totalfinalamt']; $grealsale += $totalTotal; $realmrp = $order['totalMrp'] - $order['totalExchangeAmt'] ; $grealmrp += $realmrp; $order['totalQty'] = $order['totalQty'] - $order['exchangeCounts'] ; $grealsoldqty += $order['totalQty']; $averagupt += $order['upt']; if($order['totalBill'] > 0) { $abv= $totalTotal/ $order['totalBill']; } $averaguabv += number_format((float)$abv, 2, '.', ''); if($order['totalQty'] > 0) { $asp = $totalTotal/ $order['totalQty']; } $averagasp += $asp; @endphp @if(!empty($order['totalMrp'])) @php $totalCount++; @endphp @endif @endforeach {{$totalCount }}{{round($averaguabv)}} @if(!empty($finals['totalMrp'])) @php $aupt=$averagupt/$totalCount; $aabv=$averaguabv/$totalCount; $aasp=$averagasp/$totalCount; @endphp @endif @endif
Date Day Store Location Foot fall Repeat New Total NOB QTY UPT ABV ASP Target New SPS Old SPS MRP SPS Discount Clearence Discount Other Offer Discount Gift Vouchers Reward Points Realised sale ACH% CONV% 0 - 1499 1500 - 2499 2500 - 4999 5000 - 7499 7500 - 9999 10000 & above Upper Suit Sets Bottom Home Accessory Jewellery
{{$key}} {{date('l', strtotime($key))}} {{$pos->name}} 0 {{$order['oldcustomer']}} {{$order['newcustomer']}} {{$order['totalBill']}} {{$order['totalQty']}} {{number_format($order['upt'],2)}} {{ number_format((float)$abv, 2, '.', '') }} {{ number_format((float)$asp, 2, '.', '') }} 0 {{$order['newspscount']}} {{$order['oldspscount']}} {{$realmrp}} {{$order['totalSpsDiscount']}} {{$order['clearence'] }} {{$order['otherOffer']}} {{$order['totalGv']}} {{$order['totalreward']}} {{$order['totalfinalamt']}} 0 0 {{$order['bill1000']}} {{$order['bill1500']}} {{$order['bill2500']}} {{$order['bill5000']}} {{$order['bill7000']}} {{$order['bill10000']}} 0 {{!empty($order['Suits']) ? $order['Suits'] : 0 }} {{ !empty($order['Bottom']) ? $order['Bottom'] : 0 }} 0 {{!empty($order['acceess']) ? $order['acceess'] :0 }} {{ !empty($order['jewelery']) ? $order['jewelery'] : 0 }}
{{$finals['oldcustomer']}} {{$finals['newcustomer']}} {{$finals['totalBill']}} {{round($finals['totalQty'] - $finals['exchangeCounts'])}} {{ round ($aupt) }} {{ round ($aabv) }} {{ round ($aasp) }} 0 {{round($finals['newspscount'])}} {{round($finals['oldspscount'])}} {{round($finals['totalMrp'] - $finals['totalExchangeAmt'])}} {{round($finals['totalSpsDiscount'])}} {{round($finals['clearence'])}} {{round($finals['otherOffer'])}} {{round($finals['totalGv'])}} {{round($finals['totalreward'])}} {{round($finals['totalfinalamt'] - $finals['totalExchangeAmt'])}} 0 0 {{round($finals['bill1000']) }} {{round($finals['bill1500']) }} {{round($finals['bill2500']) }} {{round($finals['bill5000']) }} {{round($finals['bill7000']) }} {{round($finals['bill10000']) }} 0 {{ round($finals['Suits'])}} {{ round($finals['Bottom'])}} 0 {{round($finals['acceess'])}} {{round($finals['jewelery'])}}
Date Day Store Location Foot fall Repeat New Total NOB QTY UPT ABV ASP Target New SPS Old SPS MRP SPS Discount Clearence Discount Other Offer Discount Gift Vouchers Reward Points Realised sale ACH% CONV% 0 - 1499 1500 - 2499 2500 - 4999 5000 - 7499 7500 - 9999 10000 & above Upper Suit Sets Bottom Home Accessory Jewellery
@else
No record found
@endif @else
Please select the dates above to get the report
@endif
@endsection @section('extraJs') @endsection