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

    @php $total_meals = $total_veggie = $total_reg = 0; @endphp @foreach ($breakfast_meals as $row) @php $total_meals +=$row->sum('total_meals'); $total_veggie += $row->sum('total_breakfast_veggie'); $total_reg += $row->sum('total_breakfast'); @endphp @endforeach
    First Order # Customer ID First Name Last Name Email Phone Total Meals Breakfast Breakfast-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_breakfast')}} {{$row->sum('total_breakfast_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_reg}} {{$total_veggie}}