  <?php include "include/header.php" ;?>
  
  	 <?php foreach($product as $prow);?>
 <div class="rev_slider_wrapper fullscreen-container">
    <div id="slider3" class="rev_slider fullscreenbanner rs-nav-light" data-version="5.4.1">
      <ul>
		 <li data-transition="fade" data-nav-color="light"><img src="<?php echo base_url();?>assets/uploads/products/product_<?php echo $prow->p_id;?>.jpg" alt="" />
         </li>
		<?php foreach($images as $row):?>
        <li data-transition="fade" data-nav-color="light"><img src="<?php echo base_url();?>assets/uploads/Images/image_<?php echo $row->a_id;?>.jpg" alt="" />
      
         </li>
		<?php endforeach;?>
      </ul>
      <div class="tp-bannertimer tp-bottom"></div>
    </div>
    <!-- /.rev_slider --> 
  </div>
  <div class="wrapper light-wrapper">
    <div class="container inner pt-40 pb-60">
      <div class="row">
       <h2 class="section-title text-center"><?php echo $name;?></h2>
    
        <div class="col-md-12 text-justify mt-0">
          <p><?php echo $prow->p_description;?></p>          
        </div>
        <!-- /column -->
		<div class="col-md-12 text-center mt-20">
			<a href="<?php echo base_url();?>assets/uploads/products/brochure_<?php echo $prow->p_id;?>.pdf" target="_tab" class="btn btn-full-rounded btn-l">Download Brochure</a>			
		</div>
      </div>
      <!-- /.row -->
    </div>
  </div>
  
  <?php if(count($video) != 0){ ?>
  <div class="wrapper dark-wrapper inverse-text">
  <div class="container inner pt-60 pb-90">
      <h2 class="section-title text-center">Demo Videos</h2>
      <div class="space10"></div>
          <div class="row">
			<?php foreach($video as $vrow):?>
            <div class="col-sm-6 col-md-6">
                <?php
				  $step1 =explode('v=',$vrow->v_link);
				  $step2 =explode('&',$step1[1]);
				  $v_id=$step2[0];
				?>
				<iframe width="100%" height="400" src="https://www.youtube.com/embed/<?php echo $v_id;?>" class="framelink" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
            </div>
            <!-- /column -->
			<?php endforeach;?>       
          </div>
          <!--/.row -->  
	</div>
	</div>
  <?php } ?>
  
  <?php include "include/footer.php" ;?>
