• {{ __('Admin') }}
  • {{ __('Reports') }}
  • {{ __('Meals Purchased by User - All Meals Detail') }}
  • Meals Purchased by User - All Meals Detail

    {{-- --}} @php $total_meals = $total_lunch_chicken = $total_lunch_salmon = $total_lunch_veggie = $total_banquet = $total_banquet_veggie = $total_breakfast = $total_breakfast_veggie = 0; @endphp @foreach ($meals as $m) {{-- @if($row->count() > 1) @endif --}} {{-- @foreach ($row as $m) --}} {{-- --}} @php $total_meals += $m->total_meals; $total_lunch_chicken += $m->total_lunch_chicken; // $total_lunch_salmon += $m->total_lunch_salmon; $total_lunch_veggie += $m->total_lunch_veggie; $total_banquet += $m->total_banquet; $total_banquet_veggie += $m->total_banquet_veggie; $total_breakfast += $m->total_breakfast; $total_breakfast_veggie += $m->total_breakfast_veggie; @endphp {{-- @endforeach --}} @endforeach {{-- --}}
    Order # Customer ID First Name Last Name Email Phone Total Meals Lunch-ChickenLunch-SalmonLunch-Veggie Banquet Banquet-Veggie Breakfast Breakfast-Veggie
    {{$row[0]->id}} {{$row[0]->user_id}} {{$row[0]->user->full_name}} {{$row[0]->user->email}} {{localize_us_number($row[0]->user->phone)}} {{$row->sum('total_meals')}} {{$row->sum('total_lunch')}} {{$row->sum('total_lunch_veggie')}} {{$row->sum('total_banquet')}} {{$row->sum('total_banquet_veggie')}} {{$row->sum('total_breakfast')}} {{$row->sum('total_breakfast_veggie')}}
    {{$m->id}} {{$m->user_id}} {{$m->user->firstname}} {{$m->user->lastname}} {{$m->user->email}} {{localize_us_number($m->user->phone)}} {{$m->total_meals}} {{$m->total_lunch_chicken}}{{$m->total_lunch_salmon}}{{$m->total_lunch_veggie}} {{$m->total_banquet}} {{$m->total_banquet_veggie}} {{$m->total_breakfast}} {{$m->total_breakfast_veggie}}
    Total: {{$total_meals}} {{$total_lunch_chicken}}{{$total_lunch_salmon}}{{$total_lunch_veggie}} {{$total_banquet}} {{$total_banquet_veggie}} {{$total_breakfast}} {{$total_breakfast_veggie}}