<?php foreach($cate_pro as $item): ?>

<section class='moments off-color fade-in rooms-list' id="container">

  <div class='columns-10 section-center'>

    <header class='offer-header'>

      <h4><?php echo e($item->name); ?></h4>

      <a class='with-arrow upcase right' href='<?php echo e($item->alias); ?>'>View all Offer</a></header>

	  <section class="rooms">

	  <ul style='display: flex;' class='product-home-ul'>

        <?php $i=0 ?>

        <?php foreach($product_home as $items): ?>

        <?php if($item->id == $items->to_cate && $items->id == $items->to_id): ?>

        <?php $i++ ?>

       

        <li class='column columns-4 first-row promo-tile'>

              <div class='image-holder'><a href='<?php echo e($items->alias); ?>'><img src='<?php echo e($items->thumb); ?>'></a></div>

              <div class='info'><a href='<?php echo e($items->alias); ?>'>

                <h5 class='reverse'><?php echo e($items->name); ?></h5>

                </a>

                <dl>

                  <dt>Size</dt>

                  <dd><?php echo e($items->option_2); ?></dd>

                </dl>

                <div class='price'>Price from <?php echo e(Helper::adddotstring($items->price_sale)); ?>VND/ per night</div>
				<?php if($items->price > 0): ?><div class='price' style="color:#888"> <i><?php echo e(Helper::adddotstring($items->price)); ?>VND/ per night</i></div><?php endif; ?>

                <a href='<?php echo e($items->alias); ?>' class='upcase with-arrow'>View Room Details</a>

			    <a href='<?php echo e(url('checkout-book-secure')); ?>/<?php echo e($items->id); ?>' class='button button-medium'>Book This Room</a></div>

            </li>

          <?php endif; ?>

         

          <?php endforeach; ?>

<!--

          <ul class='column columns-5 offer-list-box first-row columns'>

            <?php $i=0 ?>

            <?php foreach($product_home as $items): ?>

            <?php if($item->id == $items->to_cate && $items->id == $items->to_id): ?>

            <?php $i++ ?>

            <?php if($i>1 && $i <=5): ?>

			<?php if($i%2==0): ?>

            <li class='column columns-half first-column first-row box-shadow promo-tile offer-image-0'><a href='<?php echo e($items->alias); ?>'><img src='<?php echo e($items->thumb); ?>'></a>

              <div class='info'><a href='<?php echo e($items->alias); ?>'>

                <h5 class='multiline reverse'><?php echo e($items->name); ?></h5>

              </a><a href='<?php echo e($items->alias); ?>' class='upcase with-arrow'>View Detail Offers</a></div>

            </li>

		    <?php else: ?>

		  	 <li class='column columns-half first-row box-shadow promo-tile offer-image-0'><a href='<?php echo e($items->alias); ?>'><img src='<?php echo e($items->thumb); ?>'></a>

              <div class='info'><a href='<?php echo e($items->alias); ?>'>

                <h5 class='multiline reverse'><?php echo e($items->name); ?></h5>

              </a><a href='<?php echo e($items->alias); ?>' class='upcase with-arrow'>View Detail Offers</a></div>

            </li>

		  	<?php endif; ?>

            <?php endif; ?>

            <?php endif; ?>

            <?php endforeach; ?>

          </ul>

-->

        </ul>

	  

	  </section>

      

      </section>

      <?php endforeach; ?>