
<div class="container-fluid px-md-5 py-5 bgcolor_gray">
  <!-- Page Title -->
  <!-- <div class="text-center py-3">
    <a href="<//?= $this->Url->build(['controller' => $menuDetails->slug, 'action' =>'index']) ?>">
                <h1 class="fw-bold lh-sm display-4"><//?= $menuDetails->name ?></h1>
            </a>
    <h1 class="fw-bold lh-sm display-4">
      <//?= $menuDetails->name ?>
    </h1>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit donec sollicitudin</p>
  </div> -->
  <!-- Page Title Ends Here -->

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


      <!-- Bootstrap Break Points -->
      <div class="col-xs-12 col-sm-12 col-md-6 col-xl-6 col-xxl-6 p-4">
        <!-- <a href="</?= $this->Url->build(['controller' => isset($this->request->params['subsection']) ? $this->request->params['subsection']
                        :(isset($this->request->params['section'])?$this->request->params['section'] :$this->request->params['controller']),'action' => 'details',$content->id]) ?>"> -->
        <a href="<?= $this->Url->build(['controller' => $menuDetails->slug, 'action' => $content->slug])  ?>">
          <div class="bg-light la2_2col_card">
            <div class="la2_2col_aspect_imgs">
               <img
                src="<?= $this->Url->image(isset($content->image_path) ? $content->image_path : 'noimage.png') ?>"
                class="img-responsive img-fluid" alt="">
            </div>

            <div class="box2 pt-5 pb-4 text-center">
              <h4 class="fw-bold">
                <?= $this->Text->truncate(strip_tags($content->name), 50, ['ellipsis' => '...', 'exact' => false]) ?>
              </h4>
              <p class="">
                <?= $this->Text->truncate(strip_tags($content->content), 110, ['ellipsis' => '...', 'exact' => false]) ?>
    </p>

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

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

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

</div>





<!-- Notes   Date: 27/06/2022 
   1. Main Containers should have bootstrap py of 5.
   2. All html tags should be placed in a div.
   3. All html tags should use boostrap classes
-->