@props([ 'testimonials', ]) @php $testimonials = $testimonials ->filter(fn ($testimonial): bool => filled(trim((string) $testimonial->quote))) ->values(); @endphp @if ($testimonials->isNotEmpty())

Depoimentos

Quem celebrou com a Amare conta como foi a experiência.

@foreach ($testimonials as $testimonial) @php $paragraphs = preg_split('/\n\s*\n/', trim((string) $testimonial->quote)) ?: []; $paragraphs = array_values(array_filter(array_map('trim', $paragraphs), fn (string $p): bool => $p !== '')); @endphp
@foreach ($paragraphs as $paragraph)

{{ $paragraph }}

@endforeach
@endforeach
@endif