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

    {{-- --}} @php $total_meals = $total_veggie = $total_salmon = $total_chicken = 0; @endphp @foreach ($lunch_meals as $row) {{-- --}} @php $total_meals +=$row->sum('total_meals'); $total_veggie += $row->sum('total_lunch_veggie'); // $total_salmon += $row->sum('total_lunch_salmon'); $total_chicken += $row->sum('total_lunch_chicken'); @endphp @endforeach {{-- --}}
    First Order # Customer ID First Name Last Name Email Phone Total Meals Lunch-ChickenLunch-SalmonLunch-Veggie Comments
    {{$row[0]->id}} {{$row[0]->user_id}} {{$row[0]->user->firstname}} {{$row[0]->user->lastname}} {{$row[0]->user->email}} {{localize_us_number($row[0]->user->phone)}} {{$row->sum('total_meals')}} {{$row->sum('total_lunch_chicken')}}{{$row->sum('total_lunch_salmon')}}{{$row->sum('total_lunch_veggie')}} @foreach($row as $m) @if($row[0]->comments) User Comments:
    {!! $m->comments !!}
    @endif @if($row[0]->admin_comments) Admin Comments:
    {!! $m->admin_comments !!} @endif @endforeach
    Total: {{$total_meals}} {{$total_chicken}}{{$total_salmon}}{{$total_veggie}}