@extends('layouts.app') @section('title',$athlete->displayName().' - 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); } $profile = $profile ?? $athlete->athleteProfile; $availableDays = collect($profile?->available_days ?? []) ->map(fn ($day) => $options['days'][$day] ?? ucfirst($day)) ->implode(', '); @endphp
{{ $athlete->email }} @if($athlete->phone)· {{ $athlete->phone }}@endif
{{ $goal->notes }}
@endifNessun obiettivo registrato.
@endforelse{{ $limitation->description }}
@endif{{ $profile->coach_notes }}
@endif @if($profile?->athlete_notes){{ $profile->athlete_notes }}
@endif @forelse($notes as $note){{ $note->body }}
Nessuna nota registrata.
@endunless @endforelseStato: {{ $invitation?->status?->value ?? 'Non inviato' }}
@if($invitation?->sent_at)Ultimo invio: {{ francoach_format_datetime($invitation->sent_at) }}
@endif @if($invitation?->expires_at)Scadenza link: {{ francoach_format_datetime($invitation->expires_at) }}
@endif @if($invitation?->error_message)