@php $config = [ 'name' => 'minimal-elegant', 'scheme' => [ 'primary' => '#78716c', 'secondary' => '#6b7280', 'background' => '#ffffff', 'text' => '#1f2937', 'card' => '#f9fafb', 'accent' => '#ea580c', ], 'fonts' => [ 'heading' => 'Poppins', 'body' => 'Source Sans Pro', ], ]; $data = $portfolio->data ?? []; $sections = $portfolio->sections?->where('is_visible', true)->sortBy('order') ?? collect(); $hero = $sections->firstWhere('block_type', 'hero')?->content ?? []; $about = $sections->firstWhere('block_type', 'about')?->content ?? []; $experience = $sections->firstWhere('block_type', 'experience')?->content ?? []; $skills = $sections->firstWhere('block_type', 'skills')?->content ?? []; $services = $sections->firstWhere('block_type', 'services')?->content ?? []; $contact = $sections->firstWhere('block_type', 'contact')?->content ?? []; $projects = $sections->firstWhere('block_type', 'projects')?->content ?? []; @endphp {{ $portfolio->title }}

{{ $hero['name'] ?? $portfolio->title }}

{{ $hero['headline'] ?? 'Professional Portfolio' }}

@if($about && !empty($about['bio']))

About Me

{{ $about['bio'] }}

@endif @if($skills && !empty($skills['items']))

Skills

@foreach($skills['items'] as $skill) {{ $skill['name'] ?? $skill }} @endforeach
@endif @if($experience && !empty($experience['items']))

Experience

@foreach($experience['items'] as $exp)

{{ $exp['title'] ?? '' }}

{{ $exp['company'] ?? '' }}

{{ $exp['duration'] ?? '' }}

{{ $exp['description'] ?? '' }}

@endforeach
@endif @if($projects && !empty($projects['items']))

Projects

@foreach($projects['items'] as $project)

{{ $project['title'] ?? '' }}

{{ $project['description'] ?? '' }}

@if(!empty($project['url'])) View Project @endif
@endforeach
@endif @if($services && !empty($services['items']))

Services

@foreach($services['items'] as $service)

{{ $service['title'] ?? '' }}

{{ $service['description'] ?? '' }}

@endforeach
@endif @if($contact && (!empty($contact['email']) || !empty($contact['phone']) || !empty($contact['website'])))

Contact

@if(!empty($contact['email']))

Email: {{ $contact['email'] }}

@endif @if(!empty($contact['phone']))

Phone: {{ $contact['phone'] }}

@endif @if(!empty($contact['website']))

Website: {{ $contact['website'] }}

@endif
@endif