▼
@php
$lastGroup = 'Default';
$moreSectionStarted = false;
@endphp
@foreach ($attributeOptions as $treatment_id => $treatment_data)
@if ($treatment_data['group_title'] !== $lastGroup)
{{-- If we reach "Special looks", start the collapsible section --}}
@if (!$moreSectionStarted && $treatment_data['group_title'] === 'Special looks')
@php $moreSectionStarted = true; @endphp
{{-- end .more-treatments-wrapper --}}
@endif
More treatments
@endif
@endforeach
{{-- Close the hidden wrapper --}}
@if ($moreSectionStarted)
{{-- end .more-treatments-content --}}
{{ $treatment_data['group_title'] }}
@php
$lastGroup = $treatment_data['group_title'];
@endphp
@endif
{{ $treatment_data['name'] }}
{{ $treatment_data['short_description'] }}
+{!! $wtViewHelper->renderPrice($treatment_data['charge']) !!}
{{ $treatment_data['timeframe'] }}