@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 }} @if ($hasStructuredSections)
@if (!empty($sections['Summary']))

Profile

{!! $sections['Summary'] !!}
@endif @if (!empty($sections['Experience']))

Experience

{!! $sections['Experience'] !!}
@endif @if (!empty($sections['Projects']))

Projects

{!! $sections['Projects'] !!}
@endif
@if (!empty($sections['Skills']))

Skills

{!! $sections['Skills'] !!}
@endif @if (!empty($sections['Education']))

Education

{!! $sections['Education'] !!}
@endif
@elseif ($body)
{!! $body !!}
@endif