@if(isset($topStores) && count($topStores) > 0) @php $takeAwayTotal = $dineInTotal = $deliveryTotal = $grandTotal = 0; @endphp @foreach($topStores as $tStore) @php $deliveryTotal += $tStore->delivery_orders; $dineInTotal += $tStore->dine_in_orders; $total = $tStore->take_away_orders + $tStore->delivery_orders + $tStore->dine_in_orders; $grandTotal += $total; @endphp @endforeach @else @endif
{{ __('dashboard.store_name') }} {{ __('dashboard.delivery') }} {{ __('dashboard.dine_in') }} {{ __('dashboard.total') }}
{{ $tStore->store_name }} {{ ($tStore->delivery_orders > 0) ? numberFormat($tStore->delivery_orders, 1, false) : '--' }} {{ ($tStore->dine_in_orders > 0) ? numberFormat($tStore->dine_in_orders, 1, false) : '--' }} {{ ($total > 0) ? numberFormat($total, 1, false) : '--' }}
Total {{ ($deliveryTotal > 0) ? numberFormat($deliveryTotal, 1, false) : '--' }} {{ ($dineInTotal > 0) ? numberFormat($dineInTotal, 1, false) : '--' }} {{ ($total > 0) ? numberFormat($total, 1, false) : '--' }}
{{ __('common.no_records') }}