@extends('layouts.app') @section('title', ($isCoach ? 'Diario atleta' : 'I miei allenamenti').' · FranCoach') @section('content') @php $prefix = $isCoach ? 'coach' : 'athlete'; $detailRoute = $prefix.'.journal.show'; $calendarRoute = $prefix.'.calendar.sessions.show'; $periodLabels = ['week' => 'Settimana', 'month' => 'Mese', '90_days' => '90 giorni', 'year' => 'Anno', 'custom' => 'Personalizzato']; @endphp

{{ $isCoach ? 'Diario di '.$athlete->displayName() : 'I miei allenamenti' }}

Storico, prestazioni e andamento degli allenamenti.

Filtri

@if ($isCoach)
@endif
Azzera

Trend dei carichi

@if ($loadTrend->isNotEmpty()) @else @endif

Esercizi più eseguiti

@forelse ($mostPerformed as $item) {{ $item->exercise_name }}{{ $item->executions }} @empty
Nessun esercizio nel periodo.
@endforelse

Calendario attività

Elenco cronologico

@if ($sessions->isEmpty()) @else
@foreach ($sessions as $session) @endforeach
DataAllenamentoStatoDurataVolumeCompletamentoValutazione
{{ $session->structure_snapshot['day_name'] ?? 'Allenamento' }}
{{ $session->planVersion?->plan?->title ?? $session->structure_snapshot['plan_title'] ?? '—' }}
{{ $session->status->label() }} {{ $session->duration_seconds ? gmdate('H:i:s', $session->duration_seconds) : '—' }} {{ number_format((float) $session->total_volume_kg, 0, ',', '.') }} kg {{ number_format((float) $session->completion_percentage, 0) }}% {{ $session->feedback?->rating ? $session->feedback->rating.'/5' : '—' }} Dettaglio
@if ($sessions->hasPages())@endif
@endif
@endsection