<?php
include('include/main.inc.php');
$sel_testi_query = "select * from safe_business_tbl order by sbtOrder asc";
$res_testi = $dbconn->query($sel_testi_query);
if($res_testi->num_rows > 0){
?>
<div class="testimonials_four">
    <div class="container">
        <div class="row align-items-center">
            <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 col-12 col-12 wow fadeIn" data-wow-delay="100ms">
                <div class="clients-img">
                    <img src="<?= site_url; ?>/designer/images/image.webp" loading="lazy" width="470" height="470" alt="Healoxy Testimonials" title="Healoxy Testimonials">
                </div>
            </div>

            <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 col-12 col-12">
                <div class="title_style2 wow fadeInDown" data-wow-delay="0.2s">
                    <div class="titleTestimonials">What Our Clients Say</div>
                </div>

                <div id="testimonials" class="web-pulse-testimonials owl-carousel wow fadeInUp" data-wow-delay="0.4s">
                    <?php while($testi = $res_testi->fetch_assoc()) { ?>
                    <div class="testimonial-body">
                        <div class="testimonial-content">
                            <div class="testimonial-icon"></div>
                            <p><?= $testi['description']; ?></p>
                            <div class="testimonial-thumb">
                                <div class="thumb-img"><img src="<?= site_url.'/uploaded-files/testimonials/'.$testi['image']; ?>" width="80" height="80" alt="<?= $testi['title']; ?>" title="<?= $testi['title']; ?>"></div>
                                <div class="thumb-body">
                                    <div class="clientName"><?= $testi['title']; ?></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <?php } ?>
                </div>
            </div>
        </div>
    </div>
</div>
<?php } ?>