@extends('layouts.user') @section('title', 'Meal History') @section('page-title', 'Meal History') @section('page-subtitle', 'Review your previous nutrition records.') @section('content')

Meal History

Your daily nutrition totals.

@forelse ($history as $day) @empty @endforelse
Date Calories Protein Carbs Fat Status
{{ \Carbon\Carbon::parse($day->meal_date)->format('M d, Y') }} {{ number_format($day->calories) }} kcal {{ number_format($day->protein, 1) }}g {{ number_format($day->carbs, 1) }}g {{ number_format($day->fat, 1) }}g @if ($day->calories >= $calorieTarget) Target reached @else Below target @endif
No meal history yet. Meals you log will appear here.
{{ $history->links() }}
@endsection