@php $gtotalorder = $gtotalamount = $gtotalamountlast = 0 ; @endphp @if(!empty($orders)) @foreach($orders as $key => $order) @php $gtotalorder = $gtotalorder + $order['totalorder']; $gtotalamount = $gtotalamount + $order['totalamount']; $gtotalamountlast = $gtotalamountlast + $order['lastBill']; @endphp @endforeach @endif
Customer Name Mobile Number Store Registration Date Total Visit Total Amount SPS Plan Discount (%) Wallet 200 Voucher 250 Voucher 400 Voucher 450 Voucher Last Bill Last Visit Date Days Before
{{$order['customer_name']}} {{$order['mobile_number']}} {{$order['store']}} {{$order['plan_date']}} {{$order['totalorder']}} {{number_format((float)$order['totalamount'], 2, '.', '')}} {{$order['plan_name']}} {{$order['discount_sal']}} {{round($order['totalBalnce'])}} {{$order['coupon_200']}} {{$order['coupon_250']}} {{$order['coupon_400']}} {{$order['coupon_450']}} {{ number_format((float)$order['lastBill'], 2, '.', '') }} {{$order['lastvisite']}} {{$order['days']}}
{{$gtotalorder}} {{round($gtotalamount)}} {{round($gtotalamountlast)}}