@props([ 'testimonials', ]) @php $quotes = collect($testimonials) ->filter(fn ($testimonial) => filled($testimonial->quote) && filled(trim((string) $testimonial->quote))) ->take(3) ->values(); $cards = $quotes->map(fn ($testimonial) => [ 'quote' => $testimonial->quote, 'author' => $testimonial->author_name, 'context' => $testimonial->context, ])->all(); while (count($cards) < 3) { $cards[] = [ 'quote' => 'Depoimento real aprovado pela cliente entra aqui.', 'author' => 'Nome e data reais — aguardando autorização', 'context' => null, ]; } @endphp

06 — Depoimentos

Confiança construída na experiência.

@foreach ($cards as $card)

{{ $card['quote'] }}

@if (filled($card['context']))

{{ $card['author'] }}

{{ $card['context'] }}

@else

{{ $card['author'] }}

@endif
@endforeach