@php
$locale = $locale ?? app()->getLocale();
$startsAt = $startsAt ?? Common::date($fromdateorder ?? '', $locale);
$endsAt = $endsAt ?? Common::date($todateorder ?? '', $locale);
$summaryReport = \App\Module\Db\Order::getInstance()->getOrderByReport($startsAt, $endsAt, $locale);
@endphp
Total Revenue
{{Common::numberFormat($summaryReport->totalRevenue ?? 0)}}
Total Order Completed
{{Common::numberFormat($summaryReport->totalOrderCompleted ?? 0)}}
@if(isset($summaryReport->products) && is_array($summaryReport->products) && count($summaryReport->products) > 0)
@foreach($summaryReport->products as $k=>$product)
@if($k > 0){{', '}}@endif{{$product->title}} ({{Common::numberFormat($product->qnty ?? 0)}})
@endforeach
@else
— No Products —
@endif