@extends('layouts.app') @section('title', 'Fotografie progressi · FranCoach') @section('content') @php $prefix = $isCoach ? 'coach' : 'athlete'; $poses = \App\Enums\PhotoAngle::cases(); @endphp

{{ $isCoach ? 'Fotografie di '.$athlete->displayName() : 'Le mie fotografie' }}

Archivio privato per osservare i cambiamenti nel tempo.

Archivio privato. Le immagini sono accessibili esclusivamente all’atleta interessato e a FranCoach e non dispongono di URL pubblici permanenti.

Carica fotografia

@csrf
JPG, PNG o WebP, massimo 10 MB.{{ $heicSupported ? ' HEIC supportato.' : '' }}
@if ($isCoach)
@endif

Confronto prima e dopo

@if ($comparison['first'] && $comparison['second'])
Fotografia prima, {{ $comparison['first']->pose_type->label() }}, {{ $comparison['first']->photo_date->format('d/m/Y') }}
Fotografia dopo, {{ $comparison['second']->pose_type->label() }}, {{ $comparison['second']->photo_date->format('d/m/Y') }}
Prima Dopo
@foreach ([$comparison['first'], $comparison['second']] as $index => $item)
{{ $index === 0 ? 'Prima' : 'Dopo' }}: {{ $item->photo_date->format('d/m/Y') }}
Peso: {{ $item->weight !== null ? $item->weight.' kg' : '—' }}
@if ($item->athlete_notes)
Atleta: {{ $item->athlete_notes }}
@endif @if ($item->coach_notes)
Coach: {{ $item->coach_notes }}
@endif
@endforeach
Variazione peso: {{ $comparison['weightVariation'] !== null ? ($comparison['weightVariation'] > 0 ? '+' : '').$comparison['weightVariation'].' kg' : 'non disponibile' }}
@else @endif
@if (request('pose_type'))Mostra tutte@endif
@if ($photos->isEmpty()) @else
@foreach ($photos as $photo)
{{ $photo->pose_type->label() }} del {{ $photo->photo_date->format('d/m/Y') }}
{{ $photo->pose_type->label() }}

{{ $photo->photo_date->format('d/m/Y') }}

Peso: {{ $photo->weight !== null ? $photo->weight.' kg' : '—' }}

@if ($photo->athlete_notes)

Atleta: {{ $photo->athlete_notes }}

@endif @if ($photo->coach_notes)

Coach: {{ $photo->coach_notes }}

@endif
Caricata da {{ $photo->uploadedBy?->displayName() ?? '—' }}
@csrf @method('PUT') @if ($isCoach) @endif
@endforeach
@if ($photos->hasPages())
{{ $photos->links() }}
@endif @endif
@endsection