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

Daily Sales Summary Report

Walk List
Filter
" > @if ($errors->has('startdate')) {{ $errors->first('startdate') }} @endif
" placeholder="Enter End date" > @if ($errors->has('enddate')) {{ $errors->first('enddate') }} @endif
Loading...
@if(!empty($warehouseName))
Total SPS :
@endif @if($filterby != 'month') @endif @if(!empty($orders)) @php $gtotalCash = $gtotalQty = $gtotalbill = $gtotalmrp = $gtotalspss = $gtotalOffer = $gtotalvocher = $gotherOffer = $gclearence = $gtotalreward = $gtotal = $gtotalbill0 = $gtotalbill15 = $gtotalbill25 = $gtotalbill5 = $gtotalbill7 = $gtotalbill10 = $gtotalKurti = $gtotalBottom = $gtotalacceess = $gtotaljewelery = $gtotalother = $gtotalset = $gtotalDress = $gtotaldplain = $gtotaldprint = $gtotalJacket = $gtotalsemi = $gtotalsas = $gtotalunsemi = $gtotaljum = $gtotalhomF = $gtotalkaf = $gtotalmask = $gtotalsostf = $gtotallongw = $gtotalsnsc = $gtotaltato = $gtotaluni = $gtotalwhu = $averaguabv = $gtotalSPSNew = $gtotalSPSOld = $averagasp = $averagupt = $gtotalSPS = $abv = $asp = 0.00; $gtotalnewcustomer =$gtotaloldcustomer = $gfinal = $gmrp = $gqty = $gtotalfoot = $gwalletdis =$gtotalCnote =$CreditTotal= 0; $totalCount = count($orders); @endphp @foreach($orders as $key => $order) @php $totalTotal = $otherOffer = $clearence = 0; $totalexchangeqty = $order['exchangeqty']; $exchangeamount = $order['exchangeamount']; //CREDIT NOTE $totalCnote = $order['totalCn']; $gtotalCnote += $order['totalCn']; $order['totalQty'] = $order['totalQty']; $order['totalfinalamt'] = $order['totalfinalamt'] - $totalCnote ; $order['totalMrp'] = $order['totalMrp']; $gfinal += $order['totalfinalamt']; $gmrp += $order['totalMrp']; $gqty += $order['totalQty']; $totalTotal += $order['totalfinalamt']; $gwalletdis += $order['walletAmt']; $gtotalfoot += $order['setfootfall']; $gtotalnewcustomer += $order['newcustomer']; $gtotaloldcustomer += $order['oldcustomer']; $gtotalSPS += $order['spscount']; $gtotalSPSOld += $order['oldspscount']; $gtotalbill += $order['totalBill']; $dismrp = ($order['totalMrp'] * 10/100); $otherOffer = $order['otherOffer']; $gotherOffer += $otherOffer; $clearence = $order['clearence']; $gclearence += $clearence; if($order['totalBill'] > 0) { $abv= $totalTotal/ $order['totalBill']; } if($order['totalQty'] > 0) { $asp = $totalTotal/ $order['totalQty']; } $gtotalspss += $order['totalSpsDiscount']; $gtotalvocher += $order['voucher']; $gtotalreward += $order['totalreward']; $gtotalbill5 += $order['bill5']; $gtotalbill7 += $order['bill7']; $gtotalbill10 += $order['bill10']; $gtotalbill0 += $order['bill0']; $gtotalbill15 += $order['bill15']; $gtotalbill25 += $order['bill25']; $gtotalKurti += $order['Kurti']; $gtotalBottom += $order['Bottom']; $gtotalacceess += $order['Accessories']; $gtotaljewelery += $order['JEWELLERY']; $gtotalother += $order['All Other']; $gtotalset += $order['KURTA SET']; $gtotalDress += $order['Dresses']; $gtotalJacket += $order['Jacket']; $gtotalhomF += $order['Home Linen']; $gtotalkaf += $order['KAFTAN']; $gtotalmask += $order['MASK']; $gtotallongw += $order['LoungeWear']; $gtotaltato += $order['TOP N TUNIC']; $gtotaluni += $order['Uniform-1']; @endphp @if($filterby != 'month') @endif @endforeach @if($filterby != 'month') @endif @php $aupt=$gqty / $gtotalbill; $aabv=$gfinal / $gtotalbill ; $aasp=$gfinal / $gqty; @endphp @if($filterby != 'month') @endif @endif
DateDay Store Location Foot fall Repeat New Total NOB QTY UPT ABV ASP SPS Target New SPS Old SPS MTD MRP SPS Discount Clearence Discount Other Offer Discount Gift Vouchers Reward Points Used Wallet Amount Used Credit Note Realized sale ACH% CONV% 0 - 1499 1500 - 2499 2500 - 4998 4999 - 5999 6000 - 9999 10000 & above
{{$order['date']}}{{date('l', strtotime($order['date']))}}{{$order['store']}} {{$order['setfootfall']}} {{$order['oldcustomer']}} {{$order['newcustomer']}} {{$order['totalBill']}} {{$order['totalQty'] }} {{number_format($order['upt'],2)}} {{ number_format((float)$abv, 2, '.', '') }} {{ number_format((float)$asp, 2, '.', '') }} {{$order['spsTarget']}} {{$order['spscount']}} {{$order['oldspscount']}} {{$order['mtd']}} {{$order['totalMrp'] }} {{$order['totalSpsDiscount']}} {{$clearence}} {{$otherOffer}} {{$order['voucher']}} {{ number_format((float)$order['totalreward'], 2, '.', '')}} {{$order['walletAmt']}} {{$totalCnote }} {{$totalTotal }} 0 0 {{$order['bill0']}} {{$order['bill15']}} {{$order['bill25']}} {{$order['bill5']}} {{$order['bill7']}} {{$order['bill10']}}
{{$gtotalfoot}} {{$gtotaloldcustomer}} {{$gtotalnewcustomer}} {{$gtotalbill}} {{$gqty}} {{number_format($aupt,2)}} {{ round ($aabv) }} {{ round ($aasp) }} {{round($gtotalSPS)}} {{round($gtotalSPSOld)}} {{round($gmrp)}} {{round($gtotalspss)}} {{round($gclearence)}} {{round($gotherOffer)}} {{round($gtotalvocher)}} {{round($gtotalreward)}} {{round($gwalletdis)}} {{round($gtotalCnote)}} {{round($gfinal)}} 0 0 {{round($gtotalbill0) }} {{round($gtotalbill15) }} {{round($gtotalbill25) }} {{round($gtotalbill5) }} {{round($gtotalbill7) }} {{round($gtotalbill10) }}
DateDay Store Location Foot fall Repeat New Total NOB QTY UPT ABV ASP Sps Target New SPS Old SPS MTD MRP SPS Discount Clearence Discount Other Offer Discount Gift Vouchers Reward Points Used Wallet Amount Used Credit Note Realized sale ACH% CONV% 0 - 1499 1500 - 2499 2500 - 4998 4999 - 5999 6000 - 9999 10000 & above
@endsection @section('extraJs') @endsection