Order # |
Customer ID |
First Name |
Last Name |
Email |
Phone |
Total Meals |
Lunch-Chicken |
Lunch-Salmon |
Lunch-Veggie |
Banquet |
Banquet-Veggie |
Breakfast |
Breakfast-Veggie |
@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)
{{$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}} |
@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
|
|
|
|
|
Total: |
{{$total_meals}} |
{{$total_lunch_chicken}} |
{{$total_lunch_salmon}} |
{{$total_lunch_veggie}} |
{{$total_banquet}} |
{{$total_banquet_veggie}} |
{{$total_breakfast}} |
{{$total_breakfast_veggie}} |