@extends('apex-layouts.main') @section('title',"Day Reservations") @section('header-right') Total:  {{ $reservations->total() }} @endsection @section('content')
@foreach($reservations as $reservation) @php $totalCalories = $reservation->breakfastCalories +$reservation->lunchCalories +$reservation->snackCalories +$reservation->dinnerCalories; $totalGrams = $reservation->breakfastGrams +$reservation->lunchGrams +$reservation->snackGrams +$reservation->dinnerGrams; @endphp @endforeach
meal_plan breakfast lunch snack dinner nutrition Insight
{!! $reservation->onDate!!} @foreach(explode(",",$reservation->mealplans) as $mealplan)

{!! $mealplan !!}

@endforeach {!! $reservation->status!!}
{!! ($reservation->breakfast)?$reservation->breakfast."
kcal: {$reservation->breakfastCalories}
G: {$reservation->breakfastGrams}":" - "!!}
{!! ($reservation->lunch)?$reservation->lunch."
kcal: {$reservation->lunchCalories}
G: {$reservation->lunchGrams}":" - "!!}
{!! ($reservation->snack)?$reservation->snack."
kcal: {$reservation->snackCalories}
G: {$reservation->snackGrams}":" - "!!}
{!! ($reservation->dinner)?$reservation->dinner."
kcal: {$reservation->dinnerCalories}
G: {$reservation->dinnerGrams}":" - "!!}

Kcal: {!! floor($totalCalories)!!}
G: {!! floor($totalGrams)!!}

onCookingCount: {!! $reservation->onCookingCount!!}
deliveredCount: {!! $reservation->deliveredCount!!}
canceledCount: {!! $reservation->canceledCount!!}
inTransitCount: {!! $reservation->inTransitCount!!}
declinedCount: {!! $reservation->declinedCount!!}

@if($reservations->total() > $reservations->perPage()) @endif
@endsection @section('scripts') @stop @section('styles') @stop