@extends('layouts.user') @section('title', 'My Meals') @section('page-title', 'My Meals') @section('page-subtitle', 'Manage your meals for today.') @section('content') @if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
Please fix the following errors:
@endif

Log a Meal

Select a food and enter the amount you ate.

@csrf
grams

Today's Meals

{{ number_format($todayCalories) }} kcal · Protein {{ number_format($proteinTotal, 1) }}g · Carbs {{ number_format($carbsTotal, 1) }}g · Fat {{ number_format($fatTotal, 1) }}g

@forelse ($meals as $meal) @empty @endforelse
Meal Food Quantity Calories Protein Time Action
{{ $meal->meal_type }} {{ $meal->food_name }} {{ number_format($meal->quantity_grams) }}g {{ number_format($meal->calories) }} kcal {{ number_format($meal->protein, 1) }}g {{ $meal->consumed_at?->format('h:i A') ?? '—' }}
@csrf @method('DELETE')
No meals logged today.
@endsection