@extends('pdf.base') @section('title', 'Rutina - ' . $client->name) @section('styles') @endsection @section('content')
@if(($settings['show_logo'] ?? true) && ($settings['logo'] ?? null)) Logo @else
{{ $settings['header'] ?? 'CoachPro' }}
@endif

🏋️ {{ $settings['header_title'] ?? 'RUTINA DE ENTRENAMIENTO' }}

{{ $workout->name }}
@if($settings['show_date'] ?? true)
Fecha de creación
{{ $workout->created_at->format('d/m/Y') }}
@endif
@if(($settings['show_coach_info'] ?? true) && !empty($coach))
@if(($settings['show_coach_photo'] ?? false) && ($coach['photo'] ?? null)) Coach @else
👤
@endif
{{ $coach['name'] ?? 'Tu Entrenador Personal' }}
@if(($settings['show_coach_credentials'] ?? true) && ($coach['credentials'] ?? null))
{{ Str::limit($coach['credentials'], 60) }}
@endif
@if($settings['show_coach_contact'] ?? true)
@if($coach['email'] ?? null)
📧 {{ $coach['email'] }}
@endif @if($coach['phone'] ?? null)
📱 {{ $coach['phone'] }}
@endif
@endif
@endif

👤 {{ $client->name }}

@if($client->age)
{{ $client->age }} Años
@endif @if($client->weight)
{{ $client->weight }} Kg
@endif @if($client->height)
{{ $client->height }} Cm
@endif @if($client->objective)
{{ ucfirst($client->objective) }} Objetivo
@endif
📅 Programa Semanal
@php $allDays = [ 'monday' => 'Lun', 'tuesday' => 'Mar', 'wednesday' => 'Mié', 'thursday' => 'Jue', 'friday' => 'Vie', 'saturday' => 'Sáb', 'sunday' => 'Dom', ]; @endphp
@foreach($allDays as $key => $label) {{ $label }} @endforeach
{{ count($workout->days ?? []) }} Días/Sem
{{ count($exercises) }} Ejercicios
@if($workout->duration_weeks)
{{ $workout->duration_weeks }} Semanas
@endif
@if($workout->description)
"{{ $workout->description }}"
— Descripción del programa
@endif
🏋️ Ejercicios de la Rutina
@foreach($exercises as $index => $exercise)
{{ $index + 1 }}
{{ $exercise->name }} @if($exercise->equipment) {{ $exercise->equipment }} @endif
{{ $exercise->muscle_group }}
{{ $exercise->sets }} × {{ $exercise->reps }}
@if($exercise->rest_seconds) ⏱ {{ $exercise->rest_seconds }}s @endif
@if($exercise->notes)
💡 {{ $exercise->notes }}
@endif
@endforeach
@if($workout->notes)
📝 Notas del Entrenador:

{{ $workout->notes }}

@endif

📊 Seguimiento de Progreso (Semana ___)

@foreach($allDays as $key => $label)
{{ $label }}
@endforeach

Marca cada día que completes tu entrenamiento. ¡Mantén la consistencia! 💪

@endsection