@extends('pdf.base') @section('title', 'Estadísticas - ' . $client->name) @section('styles') @endsection @section('content')
{{ $client->name }} · {{ $period ?? 'Histórico completo' }}
| Nombre: | {{ $client->name }} |
| Edad: | {{ $client->age }} años |
| Objetivo: | {{ ucfirst($client->objective) }} |
| Inicio: | {{ $client->created_at->format('d/m/Y') }} |
| Fecha | Peso (kg) | Variación | % Grasa | % Músculo | Notas |
|---|---|---|---|---|---|
| {{ $measurement->date->format('d/m/Y') }} | {{ number_format($measurement->weight, 1) }} | @if($diff != 0) {{ $diff > 0 ? '+' : '' }}{{ number_format($diff, 1) }} kg @else - @endif | {{ $measurement->body_fat ? number_format($measurement->body_fat, 1) . '%' : '-' }} | {{ $measurement->muscle_mass ? number_format($measurement->muscle_mass, 1) . '%' : '-' }} | {{ $measurement->notes ?? '-' }} |
Peso inicial: {{ number_format($firstWeight, 1) }} kg → Peso actual: {{ number_format($lastWeight, 1) }} kg {{ $totalChange > 0 ? '+' : '' }}{{ number_format($totalChange, 1) }} kg
| Fecha | Pecho | Cintura | Cadera | Bíceps | Muslo |
|---|---|---|---|---|---|
| {{ $m->date->format('d/m/Y') }} | {{ $m->chest ? $m->chest . ' cm' : '-' }} | {{ $m->waist ? $m->waist . ' cm' : '-' }} | {{ $m->hips ? $m->hips . ' cm' : '-' }} | {{ $m->biceps ? $m->biceps . ' cm' : '-' }} | {{ $m->thigh ? $m->thigh . ' cm' : '-' }} |
{{ $notes }}