@extends('layouts.app') @section('title', 'Profilo atleta - FranCoach') @section('content') @php $phoneLink = $athlete->phone ? preg_replace('/[^\d+]/', '', $athlete->phone) : null; $whatsappNumber = $athlete->phone ? preg_replace('/\D/', '', $athlete->phone) : null; if ($whatsappNumber && str_starts_with($whatsappNumber, '00')) { $whatsappNumber = substr($whatsappNumber, 2); } @endphp

Profilo di {{ $athlete->displayName() }}

Anagrafica, obiettivi e informazioni operative dell’atleta.

Gestione atleta {{ $athlete->is_active ? 'Attivo' : 'Disattivato' }}
@if ($athlete->avatar_path) Foto profilo di {{ $athlete->displayName() }} @else {{ francoach_initials($athlete->displayName()) }} @endif
Atleta

{{ $athlete->displayName() }}

{{ $athlete->email }}{{ $athlete->phone ? ' · '.$athlete->phone : '' }}

Email @if ($phoneLink) WhatsApp Chiama @endif
Inizio percorso
{{ $profile->started_coaching_on?->isoFormat('D MMM YYYY') ?? 'Non indicato' }}
Obiettivo principale
{{ $goals->firstWhere('is_primary', true)?->title ?? 'Non definito' }}
Disponibilità
{{ count($profile->available_days ?? []) }} giorni
Anagrafica

Dati personali

@csrf @method('PUT')
Contesto

Esperienza e preferenze

@csrf @method('PUT')
Organizzazione

Disponibilità

@csrf @method('PUT')
Giorni disponibili
@foreach ($options['days'] as $value => $label) @endforeach
Direzione

Obiettivi

@csrf
@forelse ($goals as $goal)
@if ($goal->is_primary) Principale @endif {{ $goal->title }} {{ $goal->goal_type->label() }} · {{ $goal->status->label() }}
@csrf @method('PUT')
is_primary)>
@csrf @method('DELETE')
@empty @endforelse
Allenamento

Attrezzatura disponibile

@csrf @method('PUT')
@foreach ($catalog as $item) @endforeach
Salute operativa

Limitazioni

@csrf
@forelse ($limitations as $limitation)
{{ $limitation->title }} {{ $limitation->severity->label() }} · {{ $limitation->status->label() }}
@csrf @method('PUT')
@csrf @method('DELETE')
@empty @endforelse
Solo coach

Note private

@csrf
@forelse ($notes as $note)
{{ $note->category->label() }} {{ $note->created_at->isoFormat('D MMM YYYY, HH:mm') }}

{{ $note->body }}

{{ $note->author?->displayName() ?? 'Coach' }}
@empty @endforelse
Storico

Timeline

@if ($timeline)
    @foreach ($timeline as $event)
  1. {{ $event['label'] }} @if ($event['details'])

    {{ $event['details'] }}

    @endif {{ $event['actor'] }} · {{ $event['date'] }}
  2. @endforeach
@else @endif
@endsection