@php
    $planPresentation = \App\Library\CampaignDecision\CampaignMarketingPlanPresenter::forRow($row);
    $planSteps = $planPresentation['steps'];
    $planLeverLabel = $planPresentation['lever_label'];
@endphp
@if ($planSteps === [])
    <p class="mb-perf-reason">{{ $fallback ?? 'No suggestion yet.' }}</p>
@else
    <div class="mb-perf-plan-rich" role="group" aria-label="Campaign plan">
        @if ($planLeverLabel)
            <div class="mb-perf-plan-lever">{{ $planLeverLabel }}</div>
        @endif
        <ul class="mb-perf-plan-steps">
            @foreach ($planSteps as $step)
                <li class="mb-perf-plan-step is-{{ $step['kind'] }}">
                    @if (in_array($step['kind'], ['analysis', 'creative', 'landing', 'adset'], true))
                        <div class="mb-perf-plan-step-body">{!! $step['html'] !!}</div>
                    @else
                        <strong class="mb-perf-plan-step-label">{{ $step['label'] }}.</strong>
                        <span class="mb-perf-plan-step-body">{!! $step['html'] !!}</span>
                    @endif
                </li>
            @endforeach
        </ul>
    </div>
@endif
