First Order # |
Customer ID |
First Name |
Last Name |
Email |
Phone |
Total Meals |
Lunch-Chicken |
{{-- Lunch-Salmon | --}}
Lunch-Veggie |
User Comments |
Admin Comments |
@php
$total_meals = $total_veggie = $total_chicken = $total_salmon = 0;
@endphp
@foreach ($lunch_meals as $row)
{{$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)
{{ $m->comments }}
@endforeach
|
@foreach($row as $m)
{{ $m->admin_comments }}
@endforeach
|
@php
$total_meals +=$row->sum('total_meals');
$total_chicken += $row->sum('total_lunch_chicken');
// $total_salmon += $row->sum('total_lunch_salmon');
$total_veggie += $row->sum('total_lunch_veggie');
@endphp
@endforeach
|
|
|
|
|
Total: |
{{$total_meals}} |
{{$total_chicken}} |
{{-- {{$total_salmon}} | --}}
{{$total_veggie}} |
|
|