<style>
    .item.grid-group-item .col-sm-7 {
        width: 100%;
        text-align: center;
    }
    .td-grids label {
        position: relative;
        pointer-events: auto;
        font-size: 13px;
    }
    .h3new {
        margin: 5px 0 0 0;
    }
.item.grid-group-item .col-sm-12.priceregency {
    border-top: 1px solid #ccc;
    border-left: none;
}

.item.grid-group-item .col-sm-4 {
    width: 100%;
    text-align: center;
    float: none;
}
/*.td-grids label {
    position: relative;
    pointer-events: auto;
    font-size: 13px;
}
col-sm-12 label {
    display: inline-block;
    margin-bottom: 5px;
    font-weight: bold;
    left: 0px;
    top:0px;
    position: fixed;
}*/
.item.grid-group-item .adultprice {
    width: 50%;
    float: left;
}
.item.grid-group-item .childprice {
    width: 50%;
    float: left;
}
.padding-right5px {
    padding-right: 5px;
}
.padding-left5px {
    padding-left: 5px;
}
.booking-check {
    display: block;
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto;
    line-height: 16px;
    width: 100%;
}
.item.grid-group-item .compare {
    width: 50%;
    float: left;
    padding: 0 5px;
        padding-bottom: 0px;
}
.item.grid-group-item .addsightseeing {
    width: 50%;
    float: left;
    padding: 1px 0px;
    padding-top: 1px;
    padding-right: 0px;
    padding-bottom: 1px;
    padding-left: 0px;
    margin-top: 0;
    background-color:none;
}
.padding-L15px-R15px {
    padding-left: 15px !important;
    padding-right: 15px !important;
}
.sremove, .sadd{
    background: none;
    border: none;
}
.sremove:hover, .sadd:hover {
    border: none;
    background: none;
}
.select_but{
    padding: 5px 18px;
}.col-sm-7{
    padding-left: 5px;
    padding-right: 5px;
}
.lablecalsicon{
    margin-right: 4px;
}.contact-iccons {
    font-size: 25px;
    color: #333;
    text-align: center;
    padding: 0 6px;
}
</style>
<?php
$session = new \Zend\Session\Container('userlogin');
$user_id = isset($session->userData['user_id']) ? $session->userData['user_id'] : '';

$cityModule = new \Zend\Session\Container('cityModule');
$cityId = isset($cityModule->city_id) ? $cityModule->city_id : '';
//$cityId = '707';
$sightseeingData = $this->mainMenu()->getSightseeingDetailsByCity($cityId);
//echo '<pre>';print_r($sightseeingData);die();

?>


<div class="main-contant-inerpage-home">

    <div class="container">
        <div class="row">

            <div class="col-sm-8">
                <div class="span12 row_box">
                    <h2>Great Holiday Deals For You <span class="pull-right font-size14px padding-rihgt10px"><a href="#">Explore All</a></span></h2>

                    <ul class="hot-tours" id="flexiselDemoholiday">
                        <li class="nbs-flexisel-item1">
                            <div class="col-md-12 col-md-3regency col-sm-6 pkg_col">
                                <div class="package_con">

                                    <div class="item tr big">

                                        <div class="package_img ">
                                            <img src="/images/demestic_holidays/1.jpg" alt="">
                                        </div>
                                        <span class="package_icon">


                <!--<img src="@Url.Content(strUrl1)" />-->
                                            <div class="morecat_list">
                                                <span title="More Associated Categories" class="more_cat">+more</span>
                                                <div class="mc_list">
                                                    <div class="mcl_header">Holiday type</div>
                                                    <div class="mcl_con">
                                                        <ul>
                                                            <li ><i class="filter_icon" title="Escorted Group Holiday">
                                                                    <div class="group_icon"></div></i> <span>Group Holiday</span></li>
                                                            <li ><i class="filter_icon" title="Family">
                                                                    <div class="family_icon"></div></i> <span>Family</span></li>
                                                            <li ><i class="filter_icon" title="Popular">
                                                                    <div class="populer_icon"></div></i> <span>Popular</span></li>
                                                        </ul>
                                                    </div>
                                                </div>
                                            </div>
                                        </span>
                                        <a class="package_details" href="javascript: void(0);" onclick="offerEnquiry('holiday_enquiry')">

                                            <div class="package_text">
                                                <h4>
                                                    Agra Tour</h4>
                                                <p>
                                                    3 Nights / 2 Days
                                                </p>
                                            </div>

                                            <span class="bk_nw_price">INR<b>70,992</b></span> <span class="book_now_wrap">
                                                <span>Book Now<i class="sprite icon_book_arrow"></i></span> </span>
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </li>


                        <li class="nbs-flexisel-item1">
                            <div class="col-md-12 col-md-3regency col-sm-6 pkg_col">
                                <div class="package_con">
                                    <div class="item tr big">
                                        <div class="package_img" >
                                            <img src="/images/demestic_holidays/delhi.jpg" alt="">
                                        </div>
                                        <span class="package_icon">


                <!--<img src="@Url.Content(strUrl1)" />-->
                                            <div class="morecat_list">
                                                <span title="More Associated Categories" class="more_cat">+more</span>
                                                <div class="mc_list">
                                                    <div class="mcl_header">Holiday type</div>
                                                    <div class="mcl_con">
                                                        <ul>
                                                            <li ><i class="filter_icon" title="Escorted Group Holiday">
                                                                    <div class="group_icon"></div></i> <span>Group Holiday</span></li>
                                                            <li ><i class="filter_icon" title="Family">
                                                                    <div class="family_icon"></div></i> <span>Family</span></li>
                                                            <li ><i class="filter_icon" title="Popular">
                                                                    <div class="populer_icon"></div></i> <span>Popular</span></li>
                                                        </ul>
                                                    </div>
                                                </div>
                                            </div>
                                        </span>
                                        <a href="javascript: void(0);" onclick="offerEnquiry('holiday_enquiry')" class="package_details">
                                            <div class="package_text">
                                                <h4>
                                                    Delhi Tour</h4>
                                                <p>
                                                    5 Nights / 6 Days
                                                </p>
                                            </div>

                                            <span class="bk_nw_price">INR<b>70,992</b></span> <span class="book_now_wrap">
                                                <span>Book Now<i class="sprite icon_book_arrow"></i></span> </span>
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </li>



                        <li class="nbs-flexisel-item1">
                            <div class="col-md-12 col-md-3regency col-sm-6 pkg_col">
                                <div class="package_con">

                                    <div class="item tr big">

                                        <div class="package_img" >
                                            <img src="/images/demestic_holidays/dehradoon.jpg" alt="">
                                        </div>

                                        <span class="package_icon">


                <!--<img src="@Url.Content(strUrl1)" />-->
                                            <div class="morecat_list">
                                                <span title="More Associated Categories" class="more_cat">+more</span>
                                                <div class="mc_list">
                                                    <div class="mcl_header">Holiday type</div>
                                                    <div class="mcl_con">
                                                        <ul>
                                                            <li ><i class="filter_icon" title="Escorted Group Holiday">
                                                                    <div class="group_icon"></div></i> <span>Group Holiday</span></li>
                                                            <li ><i class="filter_icon" title="Family">
                                                                    <div class="family_icon"></div></i> <span>Family</span></li>
                                                            <li ><i class="filter_icon" title="Popular">
                                                                    <div class="populer_icon"></div></i> <span>Popular</span></li>
                                                        </ul>
                                                    </div>
                                                </div>
                                            </div>
                                        </span>
                                        <a class="package_details" href="javascript: void(0);" onclick="offerEnquiry('holiday_enquiry')">
                                            <div class="package_text">
                                                <h4>
                                                    Dehradun Tour</h4>
                                                <p>
                                                    5 Nights / 6 Days
                                                </p>
                                            </div>

                                            <span class="bk_nw_price">INR<b>70,992</b></span> <span class="book_now_wrap">
                                                <span>Book Now<i class="sprite icon_book_arrow"></i></span> </span>
                                        </a>
                                    </div>
                                </div>
                            </div>

                        </li>


                        <li class="nbs-flexisel-item1">
                            <div class="col-md-12 col-md-3regency col-sm-6 pkg_col">
                                <div class="package_con">
                                    <div class="item tr big">
                                        <div class="package_img" >
                                            <img src="/images/demestic_holidays/coimbatore.jpg" alt="">
                                        </div>
                                        <span class="package_icon">


                <!--<img src="@Url.Content(strUrl1)" />-->
                                            <div class="morecat_list">
                                                <span title="More Associated Categories" class="more_cat">+more</span>
                                                <div class="mc_list">
                                                    <div class="mcl_header">Holiday type</div>
                                                    <div class="mcl_con">
                                                        <ul>
                                                            <li ><i class="filter_icon" title="Escorted Group Holiday">
                                                                    <div class="group_icon"></div></i> <span>Group Holiday</span></li>
                                                            <li ><i class="filter_icon" title="Family">
                                                                    <div class="family_icon"></div></i> <span>Family</span></li>
                                                            <li ><i class="filter_icon" title="Popular">
                                                                    <div class="populer_icon"></div></i> <span>Popular</span></li>
                                                        </ul>
                                                    </div>
                                                </div>
                                            </div>
                                        </span>
                                        <a href="#" class="package_details" href="javascript: void(0);" onclick="offerEnquiry('holiday_enquiry')">
                                            <div class="package_text">
                                                <h4>
                                                    Coimbatore Tour</h4>
                                                <p>
                                                    5 Nights / 6 Days
                                                </p>
                                            </div>

                                            <span class="bk_nw_price">INR<b>70,992</b></span> <span class="book_now_wrap">
                                                <span>Book Now<i class="sprite icon_book_arrow"></i></span> </span>
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </li>

                        <li class="nbs-flexisel-item1">
                            <div class="col-md-12 col-md-3regency col-sm-6 pkg_col">
                                <div class="package_con">
                                    <div class="item tr big">
                                        <div class="package_img" >
                                            <img src="/images/demestic_holidays/kasmir.jpg" alt="">
                                        </div>
                                        <span class="package_icon">


                <!--<img src="@Url.Content(strUrl1)" />-->
                                            <div class="morecat_list">
                                                <span title="More Associated Categories" class="more_cat">+more</span>
                                                <div class="mc_list">
                                                    <div class="mcl_header">Holiday type</div>
                                                    <div class="mcl_con">
                                                        <ul>
                                                            <li ><i class="filter_icon" title="Escorted Group Holiday">
                                                                    <div class="group_icon"></div></i> <span>Group Holiday</span></li>
                                                            <li ><i class="filter_icon" title="Family">
                                                                    <div class="family_icon"></div></i> <span>Family</span></li>
                                                            <li ><i class="filter_icon" title="Popular">
                                                                    <div class="populer_icon"></div></i> <span>Popular</span></li>
                                                        </ul>
                                                    </div>
                                                </div>
                                            </div>
                                        </span>
                                        <a href="javascript: void(0);" onclick="offerEnquiry('holiday_enquiry')" class="package_details">
                                            <div class="package_text">
                                                <h4>
                                                    Kashmir Tour</h4>
                                                <p>
                                                    5 Nights / 6 Days
                                                </p>
                                            </div>

                                            <span class="bk_nw_price">INR<b>70,992</b></span> <span class="book_now_wrap">
                                                <span>Book Now<i class="sprite icon_book_arrow"></i></span> </span>
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </li>

                        <li class="nbs-flexisel-item1">
                            <div class="col-md-12 col-md-3regency col-sm-6 pkg_col">
                                <div class="package_con">
                                    <div class="item tr big">
                                        <div class="package_img" >
                                            <img src="/images/demestic_holidays/shimla.jpg" alt="">
                                        </div>
                                        <span class="package_icon">


                <!--<img src="@Url.Content(strUrl1)" />-->
                                            <div class="morecat_list">
                                                <span title="More Associated Categories" class="more_cat">+more</span>
                                                <div class="mc_list">
                                                    <div class="mcl_header">Holiday type</div>
                                                    <div class="mcl_con">
                                                        <ul>
                                                            <li ><i class="filter_icon" title="Escorted Group Holiday">
                                                                    <div class="group_icon"></div></i> <span>Group Holiday</span></li>
                                                            <li ><i class="filter_icon" title="Family">
                                                                    <div class="family_icon"></div></i> <span>Family</span></li>
                                                            <li ><i class="filter_icon" title="Popular">
                                                                    <div class="populer_icon"></div></i> <span>Popular</span></li>
                                                        </ul>
                                                    </div>
                                                </div>
                                            </div>
                                        </span>
                                        <a href="javascript: void(0);" onclick="offerEnquiry('holiday_enquiry')" class="package_details">
                                            <div class="package_text">
                                                <h4>
                                                    Shimla Tour</h4>
                                                <p>
                                                    5 Nights / 6 Days
                                                </p>
                                            </div>

                                            <span class="bk_nw_price">INR<b>70,992</b></span> <span class="book_now_wrap">
                                                <span>Book Now<i class="sprite icon_book_arrow"></i></span> </span>
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </li>

                    </ul>

                </div>
            </div>

            <div class="col-sm-4">
                <h2>Oneway City</h2>
                <?php echo $this->partial('application/index/one-way'); ?>
            </div>
        </div>
    </div>
</div>


<div class="main-contant-inerpage-home">
    <div class="container">
        <div class="row">
            <div class="col-sm-12">
                <h2>We Offer </h2>
                <ul class="" id="flexiselDemohome">
                    <li align="" href="javascript: void(0);" onclick="offerEnquiry('conference')">
                        <div class="col-sm-12">
                            <div class="confrence">Vehicle for <br />Conference</div>
                        </div>
                    </li>
                    <li align="" href="javascript: void(0);" onclick="offerEnquiry('mice')">
                        <div class="col-sm-12">
                            <div class="mice">Vehicle for <br />MICE</div>
                        </div>

                    </li>
                    <li align="" href="javascript: void(0);" onclick="offerEnquiry('wedding')">
                        <div class="col-sm-12">
                            <div class="wedding">Vehicle for <br />Wedding</div>
                        </div>
                    </li>
                    <li align="" href="javascript: void(0);" onclick="offerEnquiry('tours')">
                        <div class="col-sm-12">
                            <div class="tours-home">Vehicle for <br />Tours</div>
                        </div>
                    </li>
                    <li align="" href="javascript: void(0);" onclick="offerEnquiry('luxury')">
                        <div class="col-sm-12">
                            <div class="lux-car">Luxury Car</div>
                        </div>
                    </li>
                    <li align="" href="javascript: void(0);" onclick="offerEnquiry('international-destination')">
                        <div class="col-sm-12">
                            <div class="international">Vehicle for <br />International Destination</div>
                        </div>
                    </li>
                    <li align="" href="javascript: void(0);" onclick="offerEnquiry('self-drive')">
                        <div class="col-sm-12">
                            <div class="selfdriving">Vehicle for <br />Self Driving</div>
                        </div>
                    </li>

                </ul>




            </div>


        </div>
    </div>
</div>

<?php if ($sightseeingData != "") { ?>

    <!--<div class="container">
        <div class="row">
            <div class="col-sm-12 thingk-to-do">
                <h2>Things to Do <span class="pull-right font-size14px padding-rihgt10px"><a href="#">Explore All</a></span></h2>

                <ul class="sightadd hot-tours" id="flexiselDemothinktodo">
                    <?php foreach ($sightseeingData as $sight) { ?>

                        <li class="nbs-flexisel-item1">
                            <div class="col-md-12 col-md-3regency col-sm-6 pkg_col">
                                <div class="col-sm-12 no-padding expore-style">
                                    <div class="daytrip-img">
                                        <img src="/images/explor-city/akshar-dham.jpg" />
                                    </div>

                                    <div class="explor-text-style-home">
                                        <h3><?php echo $sight['sightseeing_name']; ?></h3>
                                        <?php echo substr($sight['description'], 0, 100); ?>....
                                    </div>
                                </div>
                            </div>
                        </li>

                    <?php } ?>

                </ul>
            </div>
        </div>
    </div>-->
<?php } ?>

<?php if (count($sightseeingData) > 0) { ?>
<div class="container">
<div class="row">
<div class="col-sm-12">
<div id="products" class="list-group">
    <h2>Things to Do</h2>
    <ul class="sightinc no-padding" id="flexiselDemothinktodo1" style="left:0px !important;">
        <?php foreach ($sightseeingData as $sight) {
        if (!empty($sight['tourfaredata'])) {
            $fareData = json_decode($sight['tourfaredata'], true);
            $adultFare = $fareData[0]['adult_price'];
            $childFare = $fareData[0]['child_price'];
        } else {
            $adultFare = 0;
            $childFare = 0;
        }
        
        if (!empty($sight['activeweekdays'])) {
            $weekDays = json_decode($sight['activeweekdays'], true);
            $weekDays = array_column($weekDays, "weekdays_name");
            $weekDays = array_map(function($v) { return substr($v, 0, 3); }, $weekDays);
            $weekDays = implode(', ', $weekDays);
        } else {
            $weekDays = "";
        }
        
        if (!empty($sight['meal'])) {
            $meal = json_decode($sight['meal'], true);
        } else {
            $meal = "";
        }
        
        if(isset($sight['mainimages']) && !empty($sight['mainimages'])){ 
        echo $mainimages = json_decode($sight['mainimages'], true);
        } else {
         $mainimages = "";
        }
        ?>
        <li class="nbs-flexisel-item">
        <div class="item grid-group-item sdes">
            <div class="thumbnail">
                <div class="col-sm-3 col-sm-3img listpaddingboot row_box">
                    <div style="opacity: 1; display: block;" class="item tr big">
                        <a href="<?php echo $this->url('sight-seeing', ['controller' => 'index', 'action' => 'index'],['query'=>['city'=>$sight['city_name'],'city_id'=>$sight['city_id']]]);?>">
                            <?php if(!empty($mainimages)) { ?>
                                    <img src="<?php echo SIGHTSEEING_IMAGE_PATH  .$mainimages[0]['image'];?>" width="100%" height="165px" style="height:133px;">    
                                    <?php } else { ?>
                                    <img src="/images/default.png" width="100%" height="165px" style="height:133px;">
                                    <?php }?>
                        </a>
                    </div>

                </div>
                <div class="caption">
                    <div class="col-sm-7">
                        <div class="col-sm-12 padding0">
                            <h3 class="h3new"><?php echo $sight['sightseeing_name']; ?></h3>
                            <span class="resutllabel"><?php echo $sight['city_name']; ?></span>
                            <span class="resutllabel"><?php echo $sight['estimated_time']; ?></span>
                            <span class="col-sm-4 padding0 pull-right margin-btot0">
                                <?php //echo '<pre>';print_r($meal);die();?>
                                <!--<span><img src="/images/wellchear.jpg"></span>-->
                                <?php if($sight['tour_type']==1) { ?>
                                <span class="lablecalsicon"><i class="fa fa-car" aria-hidden="true" title="Private"></i></span>
                                <?php } else {?>
                                <span class="lablecalsicon"><i class="fa fa-bus" aria-hidden="true" title="Seat In Coach"></i></span>
                                <?php }?>
                                <!--<span><img src="/images/laggage_icon.jpg"></span>-->
                                <?php if(!empty($meal)) { foreach($meal as $mealVal){ ?>
                                <span class="lablecalsicon">
                                  <i class="<?php echo $mealVal['meal_icon'];?>" aria-hidden="true" title="<?php echo $mealVal['meal_name'];?>"></i>
                                </span>
                                <?php } }?>
                                
                            </span>
                            <!--<div class="col-sm-12 padding0 holidaytext sightseeingtext">
                                <?php echo substr($sight['description'], 0, 100); ?>....
                            </div>-->

                            <div class="col-sm-12 pull-right padding0 margin-top10 align-right" style="height:35px;">
                                <strong>Operates On:</strong>  <?php echo substr($weekDays, 0, 80); ?>....
                            </div>
                                
                            
                                
                            <div class="pull-left col-sm-12 padding0">                                
                                <div class="col-sm-12 padding-bot10px">
                                    <span  style="float:left; width: 33%;">
                                    <a style="float:left;" href="javascript:void(0)"  class="contact-iccons" title="Send Enquiry"><i class="fa fa-envelope" aria-hidden="true" style="font-size:20px;color:#000; margin-top: 0px;"></i></a>
                                    </span>
                                    <?php if (!empty($user_id)) { ?>
                                    <span  style="float:left; width: 33%;">
                                    <a style="float:left;" href="javascript: void(0);" rel="<?php echo $sight['s_id']; ?>" class="add_compare" title="Add Compare"><i class="fa fa-balance-scale" aria-hidden="true" style="font-size:20px;color:#000; margin-top: 12px;"></i></a>
                                    </span>
                                    <span  style="float:left; width: 33%;">
                                    <a style="float:left;" href="javascript: void(0);" onclick="addWishList('<?php echo $fareData[0]['bkg_type_id']; ?>', '<?php echo $sight['s_id']; ?>')" class="" title="Add Wish List"><i class="fa fa-heart-o" aria-hidden="true" style="font-size:20px;color:#000; margin-top: 12px;"></i></a> 
                                    </span>
                                    <?php } else {?>
                                    <span  style="float:left; width: 33%;">
                                    <a style="float:left;" href="<?php echo $this->url('login'); ?>" data-target="#ajax-modal" data-toggle="modal" data-remote="true" data-keyboard="false" data-backdrop="static" title="Add Compare"><i class="fa fa-balance-scale" aria-hidden="true" style="font-size:20px;color:#000; margin-top: 12px;"></i></a>
                                    </span>
                                    <span  style="float:left; width: 33%;">
                                    <a style="float:left;"  href="<?php echo $this->url('login'); ?>" data-target="#ajax-modal" data-toggle="modal" data-remote="true" data-keyboard="false" data-backdrop="static" title="Add Wish List"><i class="fa fa-heart-o" aria-hidden="true" style="font-size:20px;color:#000; margin-top: 12px;"></i></a> 
                                    </span>
                                    <?php }?>
                                </div>
                            </div>

                        </div> 
                    </div>

                    <div class="col-sm-12 priceregency padding-left5px padding-right5px">
<div class="col-sm-12 no-padding font-size14 adultprice">


<!--<span for="holidaytheme"><img src="/images/adult-icon.png"></span>-->
<span class="padding-left5px padding-right5px font-size18">
    <i class="fa fa-inr" aria-hidden="true"></i><?php echo $adultFare;?>/-
</span>                                     

            </div>

                        <div class="col-sm-6 no-padding font-size14 margin-top10">
                            <div class="sremove addsightseeing col-sm-12 padding-L15px-R15px">
                            <a href="<?php echo $this->url('sight-seeing', ['controller' => 'index', 'action' => 'index'],['query'=>['city'=>$sight['city_name'],'city_id'=>$sight['city_id']]]);?>" class="select_but widthauto">Book</a>
                        </div>                                    
                        </div>

                   

                    </div>           

                    <div class="row">

                    </div>
                </div>
            </div>
        </div>
        </li>
        <?php } ?>
    </ul>

</div>
</div>   
</div>           
</div>
<?php } ?>
