@if(isset($settings['logo']) && $settings['logo']) Logo @endif

{{ $settings['site_name'] ?? 'CoachPro' }}

Plan de Alimentación Personalizado

Fecha de emisión

{{ now()->format('d/m/Y') }}

{{ strtoupper(substr($client->name, 0, 1)) }}

{{ $client->name }}

{{ $client->email ?? '' }}

✓ Plan Activo

Plan

{{ $mealPlan->name }}

🔥

{{ number_format($totals['calories'], 0) }}

Calorías

🥩

{{ number_format($totals['proteins'], 0) }}g

Proteínas

🍞

{{ number_format($totals['carbs'], 0) }}g

Carbohidratos

🥑

{{ number_format($totals['fats'], 0) }}g

Grasas

Distribución de Macros

@php $totalMacros = $totals['proteins'] + $totals['carbs'] + $totals['fats']; $proteinPct = $totalMacros > 0 ? round(($totals['proteins'] / $totalMacros) * 100) : 0; $carbsPct = $totalMacros > 0 ? round(($totals['carbs'] / $totalMacros) * 100) : 0; $fatsPct = $totalMacros > 0 ? round(($totals['fats'] / $totalMacros) * 100) : 0; @endphp
Proteínas {{ $proteinPct }}% Carbos {{ $carbsPct }}% Grasas {{ $fatsPct }}%
@foreach($dietPlans as $index => $dietPlan)
@php $mealIcons = [ 'breakfast' => '🌅', 'mid_morning_snack' => '🍎', 'lunch' => '🍽️', 'mid_afternoon_snack' => '🥤', 'dinner' => '🌙', 'snack' => '🥜', 'pre_workout' => '💪', 'post_workout' => '🥛', ]; $icon = $mealIcons[$dietPlan->meal_type] ?? '🍴'; @endphp {{ $icon }}

{{ $mealLabels[$dietPlan->meal_type] ?? $dietPlan->meal_type }}

@if($dietPlan->time)

🕐 {{ $dietPlan->time }}

@endif
@php $planCals = 0; foreach($dietPlan->items as $item) { $mult = ($item->quantity ?? 100) / 100; $planCals += ($item->calories ?: ($item->food->calories ?? 0)) * $mult; } @endphp
{{ number_format($planCals, 0) }} kcal
@foreach($dietPlan->items as $item) @php $mult = ($item->quantity ?? 100) / 100; $itemCals = ($item->calories ?: ($item->food->calories ?? 0)) * $mult; $itemProt = ($item->proteins ?: ($item->food->proteins ?? 0)) * $mult; $itemCarbs = ($item->carbs ?: ($item->food->carbs ?? 0)) * $mult; $itemFats = ($item->fats ?: ($item->food->fats ?? 0)) * $mult; @endphp @endforeach
Alimento Cantidad Prot. Carbs Grasas Kcal
{{ $item->food->emoji ?? '🍽️' }}

{{ $item->food->name ?? $item->name ?? 'Alimento' }}

@if($item->notes)

{{ $item->notes }}

@endif
{{ $item->quantity ?? 100 }}g {{ number_format($itemProt, 1) }}g {{ number_format($itemCarbs, 1) }}g {{ number_format($itemFats, 1) }}g {{ number_format($itemCals, 0) }}
@if($dietPlan->notes)

💡 Nota: {{ $dietPlan->notes }}

@endif
@endforeach @if($mealPlan->notes)

📋 Notas Generales

{{ $mealPlan->notes }}

@endif @if(!empty($coach) && ($settings['show_coach_info'] ?? true))
@if(!empty($coach['photo'])) {{ $coach['name'] }} @else
{{ strtoupper(substr($coach['name'] ?? 'C', 0, 1)) }}
@endif

Tu Entrenador

{{ $coach['name'] ?? '' }}

{{ $coach['email'] ?? '' }}

@endif

{{ $settings['site_name'] ?? 'CoachPro' }} - Plan de Alimentación

Generado el {{ now()->format('d/m/Y H:i') }}