@php $data = $resume->data ?? []; $info = $data['personal_information'] ?? []; $contact = $data['contact_details'] ?? []; $visibility = $data['section_visibility'] ?? []; $order = $data['section_order'] ?? []; $profileImage = $info['profile_image'] ?? ($resume->user->avatar_url ?? ''); $profileImageSrc = null; if (is_string($profileImage) && $profileImage !== '') { $path = parse_url($profileImage, PHP_URL_PATH); if (is_string($path) && str_starts_with($path, '/media/')) { $mediaPath = ltrim(urldecode(substr($path, 7)), '/'); $localPath = storage_path('app/public/' . $mediaPath); if (is_file($localPath)) { $profileImageSrc = $localPath; } } if ($profileImageSrc === null) { $profileImageSrc = $profileImage; } } @endphp @if($profileImageSrc) @endif

{{ $info['full_name'] ?? $resume->user->name }}

@if(!empty($info['headline']))
{{ $info['headline'] }}
@endif
{{ $contact['email'] ?? $resume->user->email }} @if(!empty($contact['phone'])) | {{ $contact['phone'] }} @endif @if(!empty($info['city']) || !empty($info['country'])) | {{ trim(($info['city'] ?? '') . ', ' . ($info['country'] ?? ''), ', ') }} @endif
Profile image
@php $renderable = [ 'professional_summary' => !empty($data['professional_summary'] ?? null), 'objective' => !empty($data['objective'] ?? null), 'work_experience' => count($data['work_experience'] ?? []) > 0, 'education_history' => count($data['education_history'] ?? []) > 0, 'skills' => count($data['skills'] ?? []) > 0, 'languages' => count($data['languages'] ?? []) > 0, 'projects' => count($data['projects'] ?? []) > 0, 'certifications' => count($data['certifications'] ?? []) > 0, 'awards_honors' => count($data['awards_honors'] ?? []) > 0, 'volunteer_experience' => count($data['volunteer_experience'] ?? []) > 0, 'hobbies_interests' => count($data['hobbies_interests'] ?? []) > 0, 'references' => count($data['references'] ?? []) > 0, 'publications_research' => count($data['publications_research'] ?? []) > 0, 'professional_links' => count($data['professional_links'] ?? []) > 0, ]; $labels = [ 'professional_summary' => 'Professional Summary', 'objective' => 'Objective / Career Goal', 'work_experience' => 'Work Experience', 'education_history' => 'Education History', 'skills' => 'Skills', 'languages' => 'Languages', 'projects' => 'Projects', 'certifications' => 'Certifications', 'awards_honors' => 'Awards & Honors', 'volunteer_experience' => 'Volunteer Experience', 'hobbies_interests' => 'Hobbies & Interests', 'references' => 'References', 'publications_research' => 'Publications / Research', 'professional_links' => 'Professional Links', ]; @endphp @if($layout === 'two-column')
@foreach($order as $key) @if(in_array($key, ['professional_summary','objective','work_experience','projects','volunteer_experience','publications_research'], true)) @continue(!$renderable[$key] ?? true) @continue(in_array($key, \App\Services\ResumeService::OPTIONAL_SECTIONS, true) && !($visibility[$key] ?? false))

{{ $labels[$key] }}

@include('resumes.partials.section-content', ['data' => $data, 'key' => $key]) @endif @endforeach
@foreach($order as $key) @if(in_array($key, ['education_history','skills','languages','certifications','awards_honors','hobbies_interests','references','professional_links'], true)) @continue(!$renderable[$key] ?? true) @continue(in_array($key, \App\Services\ResumeService::OPTIONAL_SECTIONS, true) && !($visibility[$key] ?? false))

{{ $labels[$key] }}

@include('resumes.partials.section-content', ['data' => $data, 'key' => $key]) @endif @endforeach
@else @foreach($order as $key) @continue(!isset($labels[$key])) @continue(!$renderable[$key] ?? true) @continue(in_array($key, \App\Services\ResumeService::OPTIONAL_SECTIONS, true) && !($visibility[$key] ?? false))

{{ $labels[$key] }}

@include('resumes.partials.section-content', ['data' => $data, 'key' => $key]) @endforeach @endif