@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
Storico, prestazioni e andamento degli allenamenti.
| Data | Allenamento | Stato | Durata | Volume | Completamento | Valutazione | |
|---|---|---|---|---|---|---|---|
| {{ $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 |