
<?php

    $testimonials_query = mysqli_query($GLOBALS['dbconn'], "SELECT * FROM safe_business_tbl WHERE status = 'Y' ORDER BY sbtOrder");



?>

<div class="testimonials_four">
    <div class="container">
        <div class="row align-items-stretch">
            <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 col-12 col-xs-12 wow fadeIn" data-wow-delay="100ms">

                <div class="clients-img">
                    <img src="<?=site_url?>/designer/images/image.webp" alt="Testimonials" title="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">
                    <span></span>
                    <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 ($row = mysqli_fetch_assoc($testimonials_query)){

                        $testimonial = str_replace("{companyName}", $admin_res['companyName'], $row['description']);
                        ?>
                        <div class="testimonial-body">
                            <div class="testimonial-content">
                                <div class="testimonial-icon"></div>
                                <p><?= $testimonial; ?></p>
                                <div class="testimonial-thumb">
                                    <div class="thumb-img"><?=strtoupper(substr($row['title'], 0, 1))?></div>
                                    <div class="thumb-body">
                                        <div class="clientName"><?=$row['title'] ?></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php } ?>

                </div>
            </div>
        </div>
    </div>
</div>