@extends('layouts.user') @section('title', 'Foods') @section('page-title', 'Food Database') @section('page-subtitle', 'Browse nutritional information for available foods.') @section('content')

Food Database

Browse nutritional information for available foods.

🔍
@forelse ($foods as $food)

{{ $food->name }}

🍎

Nutrition per 100g

{{ number_format($food->calories_per_100g) }} Calories
{{ number_format($food->protein_per_100g, 1) }}g Protein
{{ number_format($food->carbs_per_100g, 1) }}g Carbs
{{ number_format($food->fat_per_100g, 1) }}g Fat
@empty

No foods found

@if (!empty($search)) No active foods match “{{ $search }}”. @else There are currently no active foods in the database. @endif

@endforelse
{{ $foods->links() }}
@endsection