/home/bdqbpbxa/demo-subdomains/adaptiq.goodface.com.ua/wp-content/themes/adaptiq/cases.php
<?php
  // Template name: Cases

  get_header();
  $template_directory = get_template_directory_uri();
  $srcset = 'srcset="' . $template_directory . '/assets/images/lazyload.png"';
?>

<?php
  $main = get_field('main');
  if ($main['title']) :
?>
  <section class="inner-main-section" data-animate-group="list" data-offset="0">
    <div class="container">
      <div class="inner-main__wrapper">
        <?php
          if ($main['tag_text']) :
        ?>
          <div class="bubble-tag text-3 mob-text-3" data-animate="fade" data-index="2">
            <?php echo $main['tag_text']; ?>
          </div>
        <?php
          endif;
        ?>
        <h1 class="title-1 mob-title-1 title --red-dot" data-animate="word" data-index="1">
          <?php
            echo $main['title'];
          ?>
        </h1>
      </div>
    </div>
  </section>
<?php
  endif;
?>


<section class="cases-section">
  <div class="container">
    <div class="cases-big-list">
    <?php
      $cases = new WP_query([
        'post_type' => 'case-study',
        'numberposts' => -1,
        'orderby' => 'date',
      ]);
      $cases = $cases->posts;
      foreach($cases as $key=>$item) {
        $args['post_id'] = $item->ID;
        $args['card_size'] = 'big';
        $args['key'] = $key;
        get_template_part('templates/cards/case-study', null, $args);
      }          
    ?>
    </div>
  </div>
</section>

<?php
  get_template_part('templates/blocks/clients-section');

    $args = [];
    $args['has-breadcrumbs'] = true;
    get_template_part('templates/blocks/cta-section', null, $args);

  get_template_part('templates/blocks/breadcrumbs');

?>


<?php
  get_footer();
?>