@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
@if ($logo) Money-Wise @else
moneywise
@endif
{{ $attempt->assessment->title }}, Personal Report · {{ $attempt->completed_at->format('j F Y') }}
{{-- Visuals: score gauge + radar money map (rendered as PNG by App\Support\ReportChart) --}} @if ($radarImg) @endif
{{ $isProfile ? 'How strongly this fits' : 'Your score' }}
@if ($gaugeImg) Score {{ $percent }}% @else
{{ $percent }}%
@endif
{{ $attempt->band?->label }}
{{ $attempt->band?->headline }}
Your money map
Your money map

{{ $isProfile ? 'Your personality blend' : 'Your dimensions' }}

@foreach ($dims as $dim => $pct)
{{ $labels[$dim] ?? ucfirst($dim) }}, {{ $pct }}%
@endforeach

What this means

{{ $attempt->band?->message }}

@if ($attempt->band?->advice)

Your next moves

@endif