@extends('layouts.backend') @section('extraCss') @endsection @php $spscount = 0; $spcCustomer = \DB::table('oc_customer_ref')->select('customer_id')->whereIn('warehouse_id', $pos_id)->get(); foreach ($spcCustomer as $key => $value) { $spsCustomersCollection[] = $value->customer_id; } if(!empty($spsCustomersCollection)){ $spscount = \DB::table('oc_plan_to_customer')->where('current',1) ->where('status',1)->whereBetween('start_date', [$startdate, $enddate])->whereIn('customer_id', $spsCustomersCollection)->count(); } @endphp @section('mainContentArea')

Daily Sales Summary Report

Walk List

Filter

Warehouse Store Start Date End Date ACTION
" > @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 = $gtotalSuits = $gtotalBottom = $gtotalacceess = $gtotaljewelery = $averaguabv = $gtotalSPSNew = $gtotalSPSOld = $averagasp = $averagupt = $gtotalSPS = $abv = $asp = 0.00; $gtotalnewcustomer =$gtotaloldcustomer = $gfinal = $gmrp = $gqty = $gtotalfoot = 0; $totalCount = count($orders); @endphp @foreach($orders as $key => $order) @php $totalTotal = $otherOffer = $clearence = 0; $totalexchangeqty = $order['exchangeqty']; $exchangeamount = $order['exchangeamount']; $gfinal += $order['totalfinalamt']; $gmrp += $order['totalMrp']; $gqty += $order['totalQty']; $gtotalfoot += $order['setfootfall']; $order['totalfinalamt'] = $order['totalfinalamt'] ; $order['totalQty'] = $order['totalQty'] ; $order['totalMrp'] = $order['totalMrp'] ; $gtotalmrp += $order['totalMrp']; $totalTotal += $order['totalfinalamt']; $gtotalQty += $order['totalQty']; $gtotalSPS += $order['spscount']; $gtotalSPSOld += $order['oldspscount']; $gtotalbill += $order['totalBill']; $dismrp = ($order['totalMrp'] * 10/100); $otherOffer = $order['otherOffer']; $gotherOffer += $otherOffer; $clearence = $order['clearence']; $gclearence += $clearence; $averagupt += $order['upt']; if($order['totalBill'] > 0) { $abv= $totalTotal/ $order['totalBill']; } $averaguabv += $abv; if($order['totalQty'] > 0) { $asp = $totalTotal/ $order['totalQty']; } $averagasp += $asp; $gtotalspss += $order['totalSpsDiscount']; $gtotalvocher += $order['voucher']; $gtotalreward += $order['totalreward']; $gtotal += $totalTotal; $gtotalbill5 += $order['bill5']; $gtotalbill7 += $order['bill7']; $gtotalbill10 += $order['bill10']; $gtotalbill0 += $order['bill0']; $gtotalbill15 += $order['bill15']; $gtotalbill25 += $order['bill25']; $gtotalSuits += $order['Suits']; $gtotalBottom += $order['Bottom']; $gtotalacceess += $order['acceess']; $gtotaljewelery += $order['jewelery']; $gtotaloldcustomer += $order['oldcustomer']; $gtotalnewcustomer += $order['newcustomer']; @endphp @if($filterby != 'month') @endif @endforeach @if($filterby != 'month') @endif @php $gmrp = $gmrp -$gtotalExchangeAmt; $gfinal = $gfinal - $gtotalExchangeAmt ; $gqty = $gqty - $gexchangeCounts; @endphp @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 Target New SPS Old SPS MTD 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
{{$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, '.', '')}} {{$totalTotal}} 0 0 {{$order['bill0']}} {{$order['bill15']}} {{$order['bill25']}} {{$order['bill5']}} {{$order['bill7']}} {{$order['bill10']}} 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 }}
{{$gtotalfoot}} {{$gtotaloldcustomer}} {{$gtotalnewcustomer}} {{$gtotalbill}} {{$gqty}} {{number_format($aupt,2)}} {{ round ($aabv) }} {{ round ($aasp) }} {{round($spscount)}} {{round($gtotalSPSOld)}} {{round($gmrp)}} {{round($gtotalspss)}} {{round($gclearence)}} {{round($gotherOffer)}} {{round($gtotalvocher)}} {{round($gtotalreward)}} {{round($gfinal)}} 0 0 {{round($gtotalbill0) }} {{round($gtotalbill15) }} {{round($gtotalbill25) }} {{round($gtotalbill5) }} {{round($gtotalbill7) }} {{round($gtotalbill10) }} 0 {{ round($gtotalSuits)}} {{ round($gtotalBottom)}} 0 {{round($gtotalacceess)}} {{round($gtotaljewelery)}}
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 Realised sale ACH% CONV% 0 - 1499 1500 - 2499 2500 - 4999 5000 - 7499 7500 - 9999 10000 & above Upper Suit Sets Bottom Home Accessory Jewellery
@endsection @section('extraJs') @endsection