<?php get_header();
/* Template Name: Massage */ 
?>

<?php $Bannersection = get_field('banner_group');
$BannerHeading = $Bannersection['banner_heading'];
$Bannerimage = $Bannersection['banner_image']; ?>
 <section class="hero-block hero-block-in clear" style="background-image: url('<?php echo $Bannerimage;?>');">
   <div class="container">
     <h1><?php echo $BannerHeading;?></h1>
   </div>
</section>

<?php $Callsection = get_field('call_us_section', '120');
$callHeading = $Callsection['call_us_heading'];
$callimage = $Callsection['call_us_image']; ?>
<section class="blue-strip  blue-strip-in clear">
  <div class="container">
    <?php $companymobile = get_field('company_mobile_number', 'options');
    $phone = $companymobile['mobile_number'];
    $phonelink = $companymobile['mobile_link']; ?>
    <a href="<?php echo $phonelink; ?>"><img src="<?php echo $callimage['url']; ?>"
        alt="<?php echo $callimage['alt'] ?>"> <?php echo $callHeading; ?>: <span><?php echo $phone; ?></span>
    </a>
  </div>
</section>
<?php $maincontent = get_field('main_content_section');
$sectionHeading = $maincontent['heading'];
$sectionContent = $maincontent['content']; 
$sectionImage = $maincontent['section_image'];?>
   <section class="mob-service clear">
    <div class="container">
      <div class="flex">
        <div class="left-side">
          <h2><?php echo $sectionHeading;?></h2>
          <p><?php echo $sectionContent;?></p>
        </div>

         <div class="right-side">
          <img src="<?php echo $sectionImage['url'];?>" alt="<?php echo $sectionImage['alt'];?>">
        </div>
      </div>
    </div>
  </section>
<?php $maincontent = get_field('why_choose_us_section');
$sectionHeading = $maincontent['section_heading'];
$sectionImage = $maincontent['section_background_image'];?>
  <section class="mob-choose massage-page-choose clear" style="background-image:url('<?php echo $sectionImage['url'];?>');">
    <div class="container">
      <h2><?php echo $SectioHeading;?></h2>
      <div class="flex">
		  <?php if (have_rows('why_choose_box')): ?>
                      <?php while (have_rows('why_choose_box')):
                        the_row();
                        $Boxicon = get_sub_field('box_icon');
		  				$Boxheading = get_sub_field('box_heading');
		  				$BoxContent = get_sub_field('box_content');
                        ?>
        <div class="mob-choose-box">
          <span><img src="<?php echo $Boxicon['url'];?>" alt="<?php echo $Boxicon['alt'];?>"></span>
          <h4><?php echo $Boxheading;?></h4>
          <p><?php echo $BoxContent;?></p>
        </div>
		  <?php endwhile;?>
		  <?php endif;?>
      </div>
      
    </div>
  </section>
<?php $pricesection = get_field('price_section_backgrounds');
$bgImage = $pricesection['bgimage'];?>
<section class="therapy-price clear therapy-price-box-outer" style="background-image:url('<?php echo $bgImage;?>);">
    <div class="container">
      <div class="owl-carousel owl-theme arrow-owl priceslider" >
		  <?php if (have_rows('price_section')): ?>
                      <?php while (have_rows('price_section')):
                        the_row();
                        $Type = get_sub_field('type_heading');
		  				$Typecontent = get_sub_field('type_content');
		  				$PriceHeading = get_sub_field('price_heading');
		                $Price = get_sub_field('price');
		  				$SessionHeading = get_sub_field('session_heading');
		  				$Session = get_sub_field('session_timing');
		  		  		$Button = get_sub_field('button_text');
		  				$Link = get_sub_field('button_link');
                        ?>
       <div class="therapy-price-box">
          <p class="type"><span class="key"><?php echo $Type;?>:</span> <span class="value"><?php echo $Typecontent;?></span></p>
          <p class="price"><span class="key"><?php echo $PriceHeading;?>:</span> <span class="value"><?php echo $Price;?></span></p>
			
          <?php if($Session){?>
			
			<p class="session"><span class="key"><?php echo $SessionHeading;?>:</span> <span class="value"><?php echo $Session;?></span></p>
			<?php };?>
          <a href="<?php echo $Link['url'];?>"><?php echo $Button;?></a>
        </div>
		  <?php endwhile;?>
		  <?php endif;?>

      </div>
    </div>
  </section>
 <?php if (have_rows('section_repeater')): ?>
    <?php while (have_rows('section_repeater')): the_row(); 
        $SectionHeading = get_sub_field('section_heading');
        $Sectioncontent = get_sub_field('section_content');
        $Sectionimage = get_sub_field('section_image');
    ?>
    <section class="mob-service clear">
        <div class="container">
            <div class="flex">
                <div class="right-side">
                    <img src="<?php echo $Sectionimage['url']; ?>" alt="<?php echo $Sectionimage['alt']; ?>">
                </div>
                <div class="left-side">
                    <h2><?php echo $SectionHeading; ?></h2>
                    <?php echo $Sectioncontent; ?>
                </div>
            </div>
        </div>
    </section>

    <?php if (have_rows('section_price')): ?>
    <section class="therapy-price clear therapy-price-box-outer" style="background-image:url('<?php echo $bgImage;?>');">
        <div class="container">
            <div class="owl-carousel owl-theme arrow-owl priceslider">
                <?php while (have_rows('section_price')): the_row();
                    $Type = get_sub_field('type_heading');
                    $Typecontent = get_sub_field('type_content');
                    $PriceHeading = get_sub_field('price_heading');
                    $Price = get_sub_field('price');
                    $SessionHeading = get_sub_field('session_heading');
                    $Session = get_sub_field('about_session');
                    $Button = get_sub_field('button_text');
                    $Link = get_sub_field('button_link');
                ?>
                <div class="therapy-price-box">
                    <p class="type"><span class="key"><?php echo $Type; ?>:</span> <span class="value"><?php echo $Typecontent; ?></span></p>
                    <p class="price"><span class="key"><?php echo $PriceHeading; ?>:</span> <span class="value"><?php echo $Price; ?></span></p>

                    <?php if ($Session) { ?>
                    <p class="session"><span class="key"><?php echo $SessionHeading; ?>:</span> <span class="value"><?php echo $Session; ?></span></p>
                    <?php } ?>

                    <a href="<?php echo $Link['url']; ?>"><?php echo $Button; ?></a>
                </div>
                <?php endwhile; ?>
            </div>
        </div>
    </section>
    <?php endif; ?>

    <?php endwhile; ?>
<?php endif; ?>




<?php get_footer();?>