@extends('apex-layouts.main') @section('title',"Reservations") @section('header-right') Total:  {{ $reservations->total() }} @if(\Illuminate\Support\Facades\Auth::user()->id ==1) @endif @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 Insights created
{!! $reservation->id!!} {!! $reservation->onDate!!}
{!! $reservation->meal_plan!!}
{!! $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: {!! $totalCalories!!}
G: {!! $totalGrams!!}

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

{{$reservation->user}}
{{\App\helpers\ViewCommonHelper::getDateFormat($reservation->created_at,1)}}
@if($reservations->total() > $reservations->perPage()) @endif
@endsection @section('scripts') @stop @section('styles') @stop