@props([ 'testimonials', 'sectionTitle' => 'Testimonials', 'bgColor' => theme('testimonialSection', 'bgColor'), 'sectionPadding' => 'sm:py-12 md:py-16 py-5', 'containerMaxWidth' => 'max-w-7xl', 'gridCols' => 'md:grid-cols-2 lg:grid-cols-3', 'gridGap' => 'gap-8', 'cardBgColor' => theme('testimonialSection', 'cardBgColor'), 'cardPadding' => 'p-6', 'cardRounded' => 'rounded-lg', 'cardShadow' => 'shadow-md', 'titleColor' => theme('testimonialSection', 'titleColor'), 'titleSize' => 'text-3xl', 'titleWeight' => 'font-bold', 'titleMargin' => 'mb-12', 'titleAlignment' => 'text-center', 'quoteColor' => theme('testimonialSection', 'quoteColor'), 'quoteSize' => 'text-lg', 'quoteMargin' => 'mb-6', 'authorNameColor' => theme('testimonialSection', 'authorNameColor'), 'authorNameSize' => 'text-lg', 'authorNameWeight' => 'font-semibold', 'authorTitleColor' => theme('testimonialSection', 'authorTitleColor'), 'authorTitleSize' => 'text-sm', 'avatarSize' => 'w-12 h-12', 'avatarRounded' => 'rounded-full', ])
@if($sectionTitle)

{{ $sectionTitle }}

@endif @if(count($testimonials) === 1)
"{{ $testimonials[0]['quote'] }}"
@if(isset($testimonials[0]['avatar'])) {{ $testimonials[0]['name'] }} @endif
{{ $testimonials[0]['name'] }}
@if(isset($testimonials[0]['title']))
{{ $testimonials[0]['title'] }}
@endif
@else
@foreach($testimonials as $testimonial)
"{{ $testimonial['quote'] }}"
@if(isset($testimonial['avatar'])) {{ $testimonial['name'] }} @endif
{{ $testimonial['name'] }}
@if(isset($testimonial['title']))
{{ $testimonial['title'] }}
@endif
@endforeach
@endif