@php $logoPath = public_path('images/logo-white-pdf.png'); $logo = is_file($logoPath) ? 'data:image/png;base64,'.base64_encode(file_get_contents($logoPath)) : null; $percent = (int) round($attempt->percent); $isProfile = $attempt->assessment->isProfileMode(); $labels = $isProfile ? collect($attempt->assessment->profileTypes()) : $attempt->assessment->questions->groupBy('dimension')->map(fn ($q) => $q->first()->section); $dims = collect($attempt->dimension_percents ?? []); @endphp
|
{{ $isProfile ? 'How strongly this fits' : 'Your score' }}
@if ($gaugeImg)
{{ $percent }}%
@endif
{{ $attempt->band?->label }}
{{ $attempt->band?->headline }}
|
@if ($radarImg)
Your money map
|
@endif
{{ $attempt->band?->message }}
@if ($attempt->band?->advice)