]*>(.*?)<\/p>/i', $service->overview, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY, ); $aftercareIndex = array_search( 'Aftercare Tips', array_map('strip_tags', $paragraphs), ); @endphp
-
@foreach ($paragraphs as $index => $text)
@if ($index < $aftercareIndex)
@if (!empty(trim(strip_tags($text))))
- {{ strip_tags($text) }} @endif @endif @endforeach
Aftercare Tips
-
@foreach ($paragraphs as $index => $text)
@if ($index > $aftercareIndex)
@if (!empty(trim(strip_tags($text))))
- ✅ {{ strip_tags($text) }} @endif @endif @endforeach
{{ $step['title'] }}