@php /** @var array $sections */ $sections = $sections ?? []; $name = $name ?? 'Curriculum Vitae'; $body = $body ?? null; $hasStructuredSections = $hasStructuredSections ?? !empty(array_filter($sections, fn($v) => trim((string) $v) !== '')); @endphp {{ $name }}

{{ $name }}

— Curriculum Vitae —
@if ($hasStructuredSections) @if (!empty($sections['Contact']))
{!! $sections['Contact'] !!}
@endif @foreach (['Summary' => 'Profile', 'Experience' => 'Experience', 'Education' => 'Education', 'Skills' => 'Skills', 'Projects' => 'Projects'] as $key => $label) @if (!empty($sections[$key]))

{{ $label }}

{!! $sections[$key] !!}
@endif @endforeach @elseif ($body)
{!! $body !!}
@endif