<?php if(($settings?->show_testimonials ?? true) && $testimonials->isNotEmpty()): ?>
<section class="section <?php echo e($sectionBg ?? ''); ?>">
    <div class="container">
        <div class="text-center mb-5" data-aos="fade-up">
            <span class="badge-pill">Testimonios</span>
            <h2 class="section-title mt-2"><?php echo $settings?->testimonials_title ?: 'Lo que dicen las familias'; ?></h2>
            <?php if($settings?->testimonials_subtitle): ?>
                <p class="section-subtitle mx-auto"><?php echo $settings->testimonials_subtitle; ?></p>
            <?php endif; ?>
        </div>
        <div class="row g-4">
            <?php $__currentLoopData = $testimonials; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $testimonial): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="col-md-6" data-aos="fade-up" data-aos-delay="<?php echo e($loop->index * 100); ?>">
                    <div class="card card-hover h-100 shadow-sm">
                        <div class="card-body p-4">
                            <div class="text-warning mb-2">
                                <?php for($i=1;$i<=5;$i++): ?>
                                    <i class="bi <?php echo e($i <= ($testimonial->rating ?? 5) ? 'bi-star-fill' : 'bi-star'); ?>"></i>
                                <?php endfor; ?>
                            </div>
                            <p class="text-muted fst-italic">"<?php echo e($testimonial->content); ?>"</p>
                            <div class="d-flex align-items-center gap-3">
                                <img src="<?php echo e($testimonial->photo ? image_url($testimonial->photo) : 'https://ui-avatars.com/api/?name=' . urlencode($testimonial->name) . '&background=facc15&color=0f172a&size=64'); ?>"
                                     class="rounded-circle" style="width:50px;height:50px;object-fit:cover;" alt="<?php echo e($testimonial->name); ?>">
                                <div>
                                    <div class="fw-bold"><?php echo e($testimonial->name); ?></div>
                                    <div class="text-muted small"><?php echo e($testimonial->role ?: ''); ?></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    </div>
</section>
<?php endif; ?>
<?php /**PATH /Applications/XAMPP/xamppfiles/htdocs/PROYECTOS/LARAVEL/paginaweb/resources/views/partials/home/testimonials.blade.php ENDPATH**/ ?>