<?php 
 
   $this->load->view('common_front/header');

?>
    <!--================ End Header Menu Area =================-->
    <div class="view_link">
        <div class="container">
            <div class="row">
                <div class="col-sm-6">
                    <h4>Package Name</h4>
                </div>
                <div class="col-sm-6">
                    <p><a href="<?= base_url()?>">Home</a> / <a href="<?= base_url('front/programes')?>">Programe</a> </p>
                </div>
            </div>
        </div>
    </div>
    
    <!-- section 1 -->
    <div class="programe_detail">
        <div class="container">
            <div class="row">
                    <div class="col-sm-8 about_us">
                            <div class="row space">
                                <div class="col-sm-12 ">
                                        <div class="banner thumbnail">
                                                <ul class="bannerSlider">
                                                  <!--  1. slide  -->
                                                  <?php 
                                               foreach(json_decode($programe['slider'],true) as  $s) { ?>
                                                    <li class="slide" >
                                                            <div class="slide__image">
                                                                
                                                   
                                               
                                         <img src="<?= base_url('uploads/programe/'.$s)?>">
                                        
                                                            </div>
                                                        
                                                    </li>
                                                    <?php } ?>
                                                   <!--  2. slide  -->
                                                   <!--  <li class="slide">
                                                            <div class="slide__image">
                                                                <img src="images/slider2.jpg" alt="" />
                                                            </div>
                                                    </li> -->
                                                      <!--  3. slide  -->
                                                   <!--  <li class="slide">
                                                            <div class="slide__image">
                                                                <img src="images/slider3.jpg" alt="" />
                                                            </div>
                                                    </li> -->
                                                </ul>
                                                <div class="prev">
                                                        <i class="fa fa-angle-left"></i>
                                                    </div>
                                                    <div class="next">
                                                            <i class="fa fa-angle-right"></i>
                                                    </div>
                                        </div>
                                </div>
                            </div>
            
                            <div class="row about_us space">
                                    <div class="col-sm-12 sm-space text-left">
                                       <h4>Package Overview</h4>
                                       <div class="line"></div>
                                    </div>
                          
                                <div class="col-sm-12">
                                    <p><?= $programe['package'] ?></p>
                                </div>
                            </div>
            
                            <div class="row about_us space">
                                    <div class="col-sm-12 sm-space text-left">
                                       <h4>Venue</h4>
                                       <div class="line"></div>
                                    </div>
                          
                                <div class="col-sm-12">
                                    <p><?= $programe['venue'] ?></p>
                                </div>
                            </div>
            
                            <div class="row space">
                                    <div class="col-sm-12 sm-space text-left">
                                       <h4>Terms & Condition</h4>
                                       <div class="line"></div>
                                    </div>
                          
                                <div class="col-sm-12">
                                    <ul class="why_we_do">
                                            <?= $programe['terms'] ?>
                                            
                                        </ul>
                                </div>
                               
                            </div>
            
                        </div> <!-- COL-SM-8-->
              <form action="<?= base_url('front/choose_dates')?>" method="post">
                <input type="hidden" name="id" value="<?= $programe['id']?>">
                        <div class="col-sm-4 thumbnail">
                                <div class="package_box">
                                  <div class="package_box_img">
                                    <img src="<?= base_url('uploads/programe/'.$programe['image'])?>" alt="">
                                    <div class="package_box_img_overlay">
                                      <span><i class="fa fa-inr"></i> <?= $programe['price'] ?> /-</span>
                                    </div>
                                  </div>
                                  <div class="package_box_content text-center">
                                      <h4> <?= $programe['tittle'] ?> </h4>
                                      <p class="days"> <?= $programe['shortdesc'] ?> </p>
                                      <hr>
                                      <p><label for=""> Date Of Journey:</label>
                                       <div class="row">
                                            <div class="col-sm-8 col-sm-offset-2">

                                              <?php 
                                              $array=explode(',',$programe['tour_date']);
                                                    $array = array_values(array_filter($array,function($date){
                                                    return strtotime($date) >= strtotime('today');
                                                    }));

                                                    //print_r($array);
                                                   
                                              ?>
                                                    <!-- <input type="date" placeholder="Date" name="date" class="form-control"> -->
                                                    <?php echo $array[0].' '.$programe['tour_time']?>
                                                  </p>
                                             </div>
                                       </div>
                                         <div class="row sm-space">
                                             <div class="col-sm-12">
                                                    <p><?= $programe['seat'] ?> seats available</p>
                                             </div>
                                         </div>

                                      <button class="button_b">Book Now</button>
                                  </div>
                                </form>
                                </div>
                              </div>
            </div>
        </div>
    </div>

    <!-- section 2 -->
    <div class="buy_now_box">
        <div class="container">
            <div class="row">
                <div class="col-sm-9">
                    <h1>" Do you want to travel with us'?</h1>
                    <p>We are committed to ensure tailormade expeditions based on your requirement,<br />
 tell us your requirement here.</p>
                    <a href="#" class="pruchase_btn" data-toggle="modal" data-target="#myModal">Purchase</a>
                </div>
            </div>
        </div>
    </div>


<?php 
 
   $this->load->view('common_front/footer');

?>