My Journal - {{ $date->format('D, j M Y') }}

My Journal

Add Entry

{{ $date->format('D, j M Y') }}

{{ $entries->count() }} {{ \Illuminate\Support\Pluralizer::plural('entry', $entries->count()) }}
% Daily goal
Calories {{ number_format($sums['calories']) }}
{{ $goalProgress['calories'] ?? 'N/A' }}
Fat {{ number_format($sums['fat']) }}g
{{ $goalProgress['fat'] ?? 'N/A' }}
Cholesterol {{ number_format($sums['cholesterol']) }}mg
{{ $goalProgress['cholesterol'] ?? 'N/A' }}
Sodium {{ number_format($sums['sodium']) }}mg
{{ $goalProgress['sodium'] ?? 'N/A' }}
Carbohydrates {{ number_format($sums['carbohydrates']) }}g
{{ $goalProgress['carbohydrates'] ?? 'N/A' }}
Protein {{ number_format($sums['protein']) }}g
{{ $goalProgress['protein'] ?? 'N/A' }}

Goal [change]

@empty($currentGoal)
No goal.
@else {{ $currentGoal->name }} @endempty
@csrf
Change Goal Cancel
@foreach(\Illuminate\Support\Facades\Auth::user()->meals_enabled as $meal)

{{ $meal['label'] }}

@foreach(\App\Support\Nutrients::all()->sortBy('weight') as $nutrient) {{ \App\Support\Nutrients::round($entries->where('meal', $meal['value'])->sum($nutrient['value']), $nutrient['value']) }}{{ $nutrient['unit'] }} {{ $nutrient['value'] }}@if(!$loop->last), @endif @endforeach

@forelse($entries->where('meal', $meal['value']) as $entry)
{{ $entry->summary }}
nutrients: @foreach(\App\Support\Nutrients::all()->sortBy('weight') as $nutrient) {{ \App\Support\Nutrients::round($entry->{$nutrient['value']}, $nutrient['value']) }}{{ $nutrient['unit'] }} {{ $nutrient['value'] }}@if(!$loop->last), @endif @endforeach
@if($entry->foods()->exists())
foods: @foreach($entry->foods as $food) {{ $food->name }}@if(!$loop->last), @endif @endforeach
@endif @if($entry->recipes()->exists())
recipes: @foreach($entry->recipes as $recipe) {{ $recipe->name }}@if(!$loop->last), @endif @endforeach
@endif
@empty No entries. @endforelse
@endforeach