@extends('layouts.app') @section('title', 'Schede di allenamento · FranCoach') @section('content')

Schede di allenamento

Crea programmi strutturati e conserva ogni versione pubblicata.

Crea scheda
@if ($plans->isEmpty()) Crea scheda @else
@foreach ($plans as $plan) @php($editableVersion = $plan->versions->first())
{{ $plan->versions->count() }} {{ $plan->versions->count() === 1 ? 'versione' : 'versioni' }}

{{ $plan->name }}

{{ $plan->objective ?: ($plan->description ?: 'Nessuna descrizione.') }}

{{ $plan->duration_weeks }} sett. {{ $plan->frequency_per_week }}/sett.
@if ($editableVersion) Apri editor @endif @if ($plan->status === \App\Enums\PlanStatus::Archived)
@csrf @method('PATCH')
@else
@csrf @method('PATCH')
@endif
@endforeach
@if ($plans->hasPages())
{{ $plans->links() }}
@endif @endif @endsection