{{-- Render an AGS Tutor solution in human-readable form for the reviewer's modal. The $solution variable is the decoded JSON array (or null for legacy text). --}} @if (! $solution)
Solution body is not parseable JSON. Raw text:
{{ $solution }}
@else
Question
{{ strip_tags($questionText ?? '') }}
Method
{{ $solution['method'] ?? '?' }}
@if (! empty($solution['summary']))
Summary
{{ $solution['summary'] }}
@endif @if (! empty($solution['bar_model']))
Bar model
{{ $solution['bar_model'] }}
@endif @if (! empty($solution['steps']))
Steps
    @foreach ($solution['steps'] as $step)
  1. {{ $step['explanation'] ?? '' }} @if (! empty($step['working']))
    {{ $step['working'] }}
    @endif
  2. @endforeach
@endif @if (! empty($solution['simultaneous_equations']))
Simultaneous equations
{{ $solution['simultaneous_equations'] }}
@endif
Final answer
{{ $solution['final_answer'] ?? '(none)' }}
@if (! empty($solution['concept']))
Concept
{{ $solution['concept'] }}
@endif
@endif