@if($custom_range==1) @php $date = date('Y-m-d'); @endphp
@endif
GROSS SALES

₹@if($top_banners!=null){{$top_banners->gross_sales ? : 0.0}} @else 0 @endif

{{--
DISCOUNTS

₹@if($top_banners!=null){{$top_banners->discount ? : 0.0 }} @else 0 @endif

--}} {{--
REFUNDS

₹@if($top_banners!=null)0 @else 0 @endif

--}}
NET SALES

₹@if($top_banners!=null){{ $net_sales = $top_banners->gross_sales - $top_banners->discount }} @else 0 @endif

{{--
TAXES

₹@if($top_banners!=null){{ $top_banners->total_tax ? : 0.0 }} @else 0 @endif

--}}
NET TOTAL

₹@if($top_banners!=null){{ $grand_total = $net_sales + $top_banners->total_tax }} @else 0 @endif

{{--
TOTAL CUSTOMERS

@if($top_banners!=null){{$total_customer}} @else 0 @endif

--}} {{--
TOTAL NO. OF FRANCHISE

@if($top_banners!=null){{$total_franchise}} @else 0 @endif

--}}
Top Item by Sales
@if (count($top_items_sales) > 0) @foreach ($top_items_sales as $key => $value) @php $variation = App\Models\Variation::Where('item_id',$value->item_id)->first(); // dd($variation); if($variation != null) { $amount = (int)$variation->pp_price * (int)$value->quantity; }else{ $amount = 0; } @endphp @endforeach @else @endif
Sl.No
Product
Quantity
Total
{{$key + 1}} {{$value->itemName}} {{$value->quantity}} ₹ {{$amount}}

No Record Found

Top Category by Sales
@if (count($top_category_sales) > 0) @foreach ($top_category_sales as $key => $value) @php $variation = App\Models\Variation::Where('item_id',$value->item_id)->first(); // dd($variation); if($variation != null) { $amount = $variation->pp_price * $value->quantity; }else{ $amount = 0; } @endphp @endforeach @else @endif
Sl.No
Category Name
Quantity
Total
{{$key + 1}} {{$value->name}} {{$value->quantity}} ₹ {{$variation->pp_price}}

No Record Found

{{-- @if(count($top_category) > 0) --}} {{--
--}} {{-- @else

No Record Found

@endif --}}
{{--

Revenue by Payment Methods

@if($piechart_cod != 0 && $piechart_online != 0)
@else

No Record Found

@endif
--}} {{--

Sales Trend

@if(count($sales_dates) > 0)
@else

No Record Found

@endif
--}}