<div class="container">
    <div class="row pb-3">
        <div class="col-md-2 col-sm-12">
            <h3 class="wln-text-purple package-header">TESTIMONIALS</h3>
            <hr style="border: solid 2px #d66325; " />
        </div>
    </div>
    <div class="row">
        <div class="col-sm-12 col-md-3 text-center">
            <?php 
                $testimonialLast = array_pop($testimonials); 
                $image_resultLast = $image_service->get($testimonialLast->image);
                $imageLast = new Image(
                    $image_resultLast['id'],
                    $image_resultLast['caption'],
                    $image_resultLast['filename']
                );
            ?>
            <img src="<?php echo 'assets/images/'. $imageLast->filename; ?>"
                alt="<?php echo $imageLast->caption; ?>" class="img-fluid d-block px-4" />
            <p><?php echo $testimonialLast->quote; ?></p>
            <p class="blockquote-footer">
            <?php 
                echo $testimonialLast->full_name . ' - '. 
                $testimonialLast->position . ', ' . 
                $testimonialLast->company; ?>
            </p>
        </div>
        <div class="col-sm-12 col-md-9 group-testimonials">
            <div class="row">
                <?php foreach($testimonials as $testimonial) { ?>
                    <div class="col-sm-12 col-md-9">
                        <p>
                            <?php echo $testimonial->quote; ?>
                        </p>
                        <p class="blockquote-footer">
                        <?php  
                            echo $testimonial->full_name . ' - '. 
                            $testimonial->position . ', ' . 
                            $testimonial->company; ?>
                        </p>
                    </div>
                    <div class="col-sm-12 col-md-3 mb-2">
                        <?php
                            $image_result = $image_service->get($testimonial->image);
                            $image = new Image(
                                $image_result['id'],
                                $image_result['caption'],
                                $image_result['filename']
                            );
                        ?>
                        <img src="<?php echo 'assets/images/'. $image->filename; ?>"
                            alt="<?php echo $image->caption; ?>" class="img-fluid d-block px-4" />
                    </div>
                <?php } ?>
            </div>
        </div>
    </div>
</div>