{{-- Testimonials Block --}} @props(['block']) @php $settings = $block->settings ?? []; $featuredOnly = $settings['featured_only'] ?? false; $maxTestimonials = $settings['max_testimonials'] ?? 6; $testimonials = App\Helpers\TestimonialHelper::getApprovedTestimonials($featuredOnly)->take($maxTestimonials); @endphp

{{ __('store.Customer Reviews') }}

@foreach($testimonials as $testimonial)
@if($testimonial->customer_image) {{ $testimonial->customer_name }} @endif

{{ $testimonial->customer_name }}

@for($i = 0; $i < 5; $i++) @if($i < $testimonial->rating) @else @endif @endfor

{{ App\Helpers\TestimonialHelper::getComment($testimonial) }}

@endforeach