<div class="container-fluid px-md-5 py-5 bg_gray">
  <div class="text-center space-top ms-5" style="">Providing the best financial services in Ghana, Returning the best
    value for<br /> shareholders and the community.</div>

  <div class="container">
    <div class="row mt-3">
      <?php foreach ($viewContents as $key => $content) { ?>


        <!-- Bootstrap Break Points -->
        <div class="col-xs-12 col-sm-12 col-md-4 col-xl-4 col-xxl-4 p-4">

          <a href="<?= $this->Url->build([
            'controller' => $this->request->getParam('subsection')
              ? $this->request->getParam('subsection')
              : ($this->request->getParam('section')
                ? $this->request->getParam('section')
                : $this->request->getParam('controller')),
            'action' => 'details',
            $content->id
          ]) ?>">

            <div class="bg-light la_2col_card">
              <div class="two-col-aspect-img">
                <img
                  src="<?= $this->Url->image(sizeof($content->content_images) > 0 ? $content->content_images[0]->image_path : 'noimage.png') ?>"
                  class="img-responsive img-fluid" alt="">
              </div>

              <div class="box pt-4" style="padding:35px;">
                <h4 class="fw-6">
                  <?= $this->Text->truncate(strip_tags($content->name), 50, ['ellipsis' => '...', 'exact' => false]) ?>
                </h4>
                <p class="">
                  <?= $this->Text->truncate(strip_tags($content->content), 90, ['ellipsis' => '...', 'exact' => false]) ?>
                </p>

                <p class="readmore blue_color">
                  <a href="<?= $this->Url->build([
                    'controller' => $this->request->getParam('subsection')
                      ? $this->request->getParam('subsection')
                      : ($this->request->getParam('section')
                        ? $this->request->getParam('section')
                        : $this->request->getParam('controller')),
                    'action' => 'details',
                    $content->id
                  ]) ?>">

                    <span style="color:#15569f;">Read More &nbsp;&nbsp;<i class="bi bi-arrow-right-short"
                        aria-hidden="true" style="font-size:30px; color:#15569f;position: absolute;
      margin-top: -8px;"></i> </span>
                  </a>
                </p>

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

        </div>
        <!-- Break Point Ends Here -->

      <?php } ?>
    </div>
  </div>

</div>