<div class="page-title">
    <div class="container">
        <div class="banner-full-wrap">
            <div class="row g-0">
                <div class="col-md-4">
                    <div class="text-center banner-right-wrap">
                        <h1 class="main-title">Testimonials</h1>
                    </div>
                </div>
                <div class="col-md-8">
                    <img src="<?php echo base_url(); ?>assets/user/img/testimonial-banner.webp" alt="shop" class="w-100">
                </div>
            </div>
        </div>
    </div>
</div>

<div class="testimonials pb-0">
    <div class="home2">
        <div class="container">
            <div class="row g-3 mb-md-4 mb-4">
                <div class="col-lg-12 col-md-12 col-sm-12 col-12">
                    <div class="home2-inner">
                        <h4 class="main-title mb-md-0">What Our Valuable Customers Said</h4>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12 col-12 p-0">
                    <?php if (isset($testimonial) && $testimonial) {
                        $testimonial = array_chunk($testimonials, 11);
                    ?>
                        <div class="owl-carousel owl-theme testimonial-slider-main">
                            <?php foreach ($testimonial as $key1 => $value1) { ?>
                                <div class="item">
                                    <div class="grid">
                                        <div class="grid-sizer"> </div>
                                        <?php if (isset($value1) && $value1) {
                                            foreach ($value1 as $key => $value) {
                                        ?>
                                                <div class="grid-item">
                                                    <div class="testimonial-wrap">
                                                        <div class="wrap-des">
                                                            <p><?php echo $value['description']; ?></p>
                                                        </div>
                                                        <div class="wrap-content">
                                                            <?php if ($value['image'] != '') { ?>
                                                                <img src="<?php echo base_url($value['image']); ?>" alt="av" class="img-fluid">
                                                            <?php } else { ?>
                                                                <img src="<?php echo base_url(); ?>assets/user/img/Avatar.webp" alt="av" class="img-fluid">
                                                            <?php } ?>
                                                            <div class="text-center w-100">
                                                                <p class="mb-0 title"><?php echo $value['name']; ?></p>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                        <?php }
                                        } ?>
                                    </div>
                                </div>
                            <?php } ?>
                        </div>
                    <?php } ?>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $this->load->view('contact-section'); ?>