@extends('layouts.admin') @section('title', 'Reports') @section('page-title', 'Reports & Analytics') @section('content')

Reports & Analytics

Nutrition and user activity overview.

Average Daily Calories

{{ number_format($averageCalories) }} kcal

Average per user-day with logged meals
Total Meals Logged

{{ number_format($totalMeals) }}

For the selected period

Calories by Day / Month

Recorded calories for the selected period.

@if ($chartRows->isEmpty())

No meal data for this period.

@else
@foreach ($chartRows as $row) @php $height = ((float) $row->calories / $maxChartCalories) * 100; @endphp
@endforeach
@foreach ($chartRows as $row) @endforeach
Day / Month Total Calories Meals Logged
{{ $row->label }} {{ number_format($row->calories) }} kcal {{ number_format($row->meals) }}
@endif

Nutrition Summary

Average macro intake per user-day with logged meals.

Protein
{{ number_format($averageProtein, 1) }}g
Carbohydrates
{{ number_format($averageCarbs, 1) }}g
Fat
{{ number_format($averageFat, 1) }}g
@endsection