/home/bdqbpbxa/demo-subdomains/u-pod.goodface.com.ua/wp-content/themes/upod/check_info.php
<?php

  // template name: check_info

  get_header();
?>

<main>
<section class="main-title -white-block">
		<div class="container animation">
			<h1 class="title title-2 mobile-1">
        <?php
          echo do_shortcode(get_field('title'));
        ?>
			</h1>
			<p class="text text-1 mobile-1 -grey">
				<?php the_field('subtitle'); ?>
			</p>
		</div>
	</section>
	
	<article class="check-info-section -white-block">
		<div class="container">
      <?php
        $method_list = get_field('method_list');
        foreach($method_list as $item):
          $method_description = $item['method_description'];
          $step_1 = $item['step_1'];
          $step_2 = $item['step_2'];
      ?>
			<div class="check-info-block">
				<div class="check-block__left-box animation">
					<p class="subtitle text-3">
						<?php echo $method_description['suptitle']?>
					</p>
					<h3 class="title title-3">
            <?php echo $method_description['title']?>
					</h3>
					<div class="text text-2">
            <?php echo $method_description['text']?>
					</div>
				</div>
				<div class="check-info__list">
					<div class="check-info__item animation">
						<?php
							if ($step_1['text']):
						?>
                <div class="step">
                  <?php echo $step_1['title']?>
                </div>
						<?php
							endif;
							if ($step_1['text']):
						?>
                <div class="text text-2">
                  <p><?php echo $step_1['text']?></p>
                </div>
						<?php
							endif;
						?>
						<?php
              if($step_1['img']):
            ?>
              <div class="img">
                <img class="lazyload" 
								 srcset="<?php echo get_template_directory_uri();?>/assets/img/srcset.svg"
								 src="<?php echo $step_1['img']['url']?>" 
								 alt="<?php echo $step_1['img']['alt']?>"
								 >
              </div>
            <?php endif;?>
					</div>
					<div class="check-info__item animation">
						<?php
							if ($step_2['text']):
						?>
						<div class="step">
							<?php echo $step_2['title']?>
						</div>
						<?php
							endif;
							if ($step_2['text']):
						?>
						<div class="text text-2">
              <p><?php echo $step_2['text']?></p>
						</div>
						<?php
							endif;
              if($step_2['img']):
            ?>
              <div class="img">
                <img class="lazyload" srcset="<?php echo get_template_directory_uri();?>/assets/img/srcset.svg"
								src="<?php echo $step_2['img']['url']?>" 
								 alt="<?php echo $step_2['img']['alt']?>"
								 >
              </div>
            <?php 
							endif;
							if($step_2['need_brand'] == 'yes'):
						?>
						<ul class="link-list">
						<?php
							$posts = get_posts( array(
								'numberposts' => -1,
								'post_type'   => 'brand',
							) );

							foreach( $posts as $post ):
								setup_postdata($post);
						?>
								<li>
									<a href="<?php echo get_permalink($post->ID)?>">
										<?php the_field('brand_name');?>
									</a>
								</li>
						<?php
							endforeach;
							wp_reset_postdata();
						?>
						</ul>
						<?php
							endif;
              if($step_2['description_after_img']):
            ?>
						<p class="description">
              <?php echo $step_2['description_after_img']?>
						</p>
						<?php
							endif;
						?>
					</div>
				</div>
			</div>
      <?php
        endforeach;
      ?>
		</div>
	</article>

<?php
  get_footer();
?>