<style>
    .item.grid-group-item .col-sm-7 {
        width: 100%;
        text-align: center;
        padding: 0px;
    }
    .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: 2px;
    }
    .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;
    }
    .item.list-group-item {
        float: none;
        width: 100%;
        background-color: #fff;
        /*margin-bottom: 10px;*/
        padding: 10px 0px;
    }
    .item.list-group-item .thumbnail {
    margin-bottom: 0px;
    border:0px;
    padding: 0px;
}
.item.list-group-item img {
    float: left;
}
.col-sm-3img {
    width: 24%;
}
.row_box {
    float: left;
    overflow: hidden;
}
.holidaytext {
    margin-top: 6px;
    border-top: 1px solid #ccc;
    padding: 0 0;
    line-height: 18px;
    text-align: justify;
}
.thumbnail .caption {
    padding: 0px;
}
.listpaddingboot{
    padding: 5px;
}
.grid-group-item sdes{
    padding: 0px;
}.col-lg-3{
    padding-right: 0px;
    padding-left: 10px;
}.col-sm-7{
    padding-left: 5px;
    padding-right: 5px;
}
.lablecalsicon{
    margin-right: 4px;
}
</style>


<?php
//echo '<pre>';print_r($vehicleList);die();
$i = 1;
if (count($sessionCartIds) > 0) {?>
<div class="col-sm-12 col-md-12 col-xl-12 padding0 list disable_none" style="background:#fff; padding-top:10px;" >
    <?php foreach ($sessionCartIds as $val) {
         $data1 = $payData[$val['s_id']];
        if (!empty($data1['activeweekdays'])) {
            $weekDays = json_decode($data1['activeweekdays'], true);
            $weekDays = array_column($weekDays, "weekdays_name");
            $weekDays = implode(',', $weekDays);
        } else {
            $weekDays = "";
        }
        
        if (!empty($data1['meal'])) {
            $meal = json_decode($data1['meal'], true);
        } else {
            $meal = "";
        }

        if (!empty($data1['tourfaredata'])) {
            $fareData = json_decode($data1['tourfaredata'], true);
            $adultFare = $fareData[0]['adult_price'] * $data['adults'];
            $childFare = $fareData[0]['child_price'] * $data['childs'];
        } else {
            $adultFare = 0;
            $childFare = 0;
        }
        
        if(isset($data1['mainimages']) && !empty($data1['mainimages'])){ 
         $mainimages = json_decode($data1['mainimages'], true);
        } else {
         $mainimages = "";
        }
        ?>
     <div class="item col-xs-4 col-lg-4 list-group-item sdes list-group-item" >
                <div class="thumbnail">

                    <div class="col-sm-3 col-sm-3img listpaddingboot row_box">
                        <div style="opacity: 1; display: block;" class="item tr big grid-group-item">
                            <a href="<?php echo $this->url() . '/sightseeing-detail?id=' . $data1['s_id']; ?>">
                                <?php if(!empty($mainimages)) { ?>
                                    <img src="<?php echo SIGHTSEEING_IMAGE_PATH  .$mainimages[0]['image'];?>" style="height:133px;" width="100%" height="165px">    
                                    <?php } else { ?>
                                    <img src="/images/default.png" style="height:133px;" width="100%" height="165px">
                                    <?php }?>
                            </a>
                        </div>

                    </div>
                    <div class="caption">
                        <div class="col-sm-7">
                            <div class="col-sm-12 padding0">
                                <h3 class="h3new"><?php echo $data1['sightseeing_name']; ?></h3>
                                <span class="resutllabel"><?php echo $data1['city_name']; ?></span>
                                <span class="resutllabel"><?php echo $data1['estimated_time']; ?></span>
                                <span class="col-sm-4 padding0 pull-right margin-btot0">
                                        <!--<span class=""><img src="/images/wellchear.jpg"></span>-->
                                        <?php if($data1['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 class=""> <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>
                                <!--<span><i class="fa fa-cutlery" aria-hidden="true" title="Lunch Dinner"></i></span>-->
                                        <?php } } ?>
                                </span>
                                <div class="col-sm-12 padding0 holidaytext sightseeingtext">
                                    <?php echo substr($data1['highlights'], 0, 100); ?>....
                                </div>

                                <span class="col-sm-9 padding0 margin-top10"><strong>Operates On:</strong> Monday, Wednesday, Friday </span>
                                <div class="pull-left col-sm-3 no-padding margin-top10">
                                    <span>
                                        <span class="booking-check font-size13">Send Mail
                                            <input type="checkbox">
                                            <span class="checkmark"></span>
                                        </span>

                                    </span>
                                </div>

                            </div>
                        </div>

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


                                <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-12 no-padding font-size14 childprice height40px">


                                <span for="holidaytheme"><img src="/images/child-con.png"></span>

                                <span class="padding-left5px padding-right5px font-size18">
                                    <i class="fa fa-inr" aria-hidden="true"></i><?php echo $childFare; ?>/-</span>                                     
                               
                            </div>

                             <div class="col-sm-12  padding0 padding-bot10px">
                                    <a style="float:left;" href="javascript: void(0);" rel="<?php echo $data1['s_id']; ?>" class="add_compare" title="Add Compare"><img src="http://<?php echo $_SERVER['SERVER_NAME']; ?>/images/icons/compare-add.png"></a>
                                    <a href="javascript: void(0);" onclick="addWishList('<?php echo $data['master_package_type']; ?>', '<?php echo $data1['s_id']; ?>')" class="" title="Add Wish List"><img src="http://<?php echo $_SERVER['SERVER_NAME']; ?>/images/icons/wishlist-add.png"></a>
                                    
                                </div>


                            <div class="col-sm-12 margin5 padding0" style="padding-bottom:5px;">
                                    <a href="javascript: void(0);" id="cart-<?php echo $data1['s_id']; ?>" rel="<?php echo $data1['s_id']; ?>" class="select_but add_cart">Select</a>
                                </div>
                            
                           
                        </div>           

                        <div class="row">

                        </div>
                    </div>
                </div>
            </div>
    <?php } ?>
    </div>
<?php }else{ ?>
No Product In cart
<?php } ?>




<?php
//echo '<pre>';print_r($vehicleList);die();
$i = 1;
if (count($sessionCartIds) > 0) { ?>
  <div class="padding0 redio borderregency grid display-block" style="background:#fff; padding-top:10px;" >
            <ul class="sightinc no-padding">  
    <?php  foreach ($sessionCartIds as $val) {
         $data1 = $payData[$val['s_id']];
        if (!empty($data1['activeweekdays'])) {
            $weekDays = json_decode($data1['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($data1['meal'])) {
            $meal = json_decode($data1['meal'], true);
        } else {
            $meal = "";
        }

        if (!empty($data1['tourfaredata'])) {
            $fareData = json_decode($data1['tourfaredata'], true);
            $adultFare = $fareData[0]['adult_price'] * $data['adults'];
            $childFare = $fareData[0]['child_price'] * $data['childs'];
        } else {
            $adultFare = 0;
            $childFare = 0;
        }
        
        if(isset($data1['mainimages']) && !empty($data1['mainimages'])){ 
         $mainimages = json_decode($data1['mainimages'], true);
        } else {
         $mainimages = "";
        }
        ?>
  <li>
                    <div class="item col-xs-3 col-lg-3 grid-group-item sdes">
                    <div class="thumbnail">
                        <div class="col-sm-3 listpaddingboot row_box">
                            <div style="opacity: 1; display: block;" class="item tr big">
                                <a href="<?php echo $this->url() . '/sightseeing-detail?id=' . $data1['s_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 $data1['sightseeing_name']; ?></h3>
                                    <span class="resutllabel"><?php echo $data1['city_name']; ?></span>
                                    <span class="resutllabel"><?php echo $data1['estimated_time']; ?></span>
                                    <span class="col-sm-4 padding0 pull-right margin-btot0">
                                        <!--<span class=""><img src="/images/wellchear.jpg"></span>-->
                                        <?php if($data1['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 class=""> <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>
                                <!--<span><i class="fa fa-cutlery" aria-hidden="true" title="Lunch Dinner"></i></span>-->
                                        <?php } } ?>
                                </span>
                                        <!--<div class="col-sm-12 padding0 holidaytext sightseeingtext">
                                            The Taj Mahal is an enormous mausoleum complex commissioned in 1632 by the Mughal emperor Shah Jahan to house the remains of his beloved wife. Constructed over a 20-year period ....
                                        </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 margin-top10">
                                            <span>
                                                <span class="booking-check font-size13">Send Mail
                                                    <input type="checkbox">
                                                    <span class="checkmark"></span>
                                                </span>
                                            </span>
                                        </div>
                                </div>
                            </div>

                            <div class="col-sm-12 priceregency padding-left5px padding-right5px" align="center">
                                <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-size14">
                                        <i class="fa fa-inr" aria-hidden="true"></i><?php echo $adultFare; ?>/-
                                    </span>                             
                                </div>

                                <div class="col-sm-6 no-padding font-size14 childprice">
                                    <span for="holidaytheme"><img src="/images/child-con.png"></span>
                                    <span class="padding-left5px padding-right5px font-size14">
                                        <i class="fa fa-inr" aria-hidden="true"></i><?php echo $childFare; ?>/-
                                    </span>                                     
                                </div>

                                <div class="col-sm-12 margin5 padding-bot0">
                                    <a style="float:left;" href="javascript: void(0);" rel="<?php echo $data1['s_id']; ?>" class="add_compare" title="Add Compare"><img src="http://<?php echo $_SERVER['SERVER_NAME']; ?>/images/icons/compare-add.png"></a>
                                    <a href="javascript: void(0);" onclick="addWishList('<?php echo $data['master_package_type']; ?>', '<?php echo $data1['s_id']; ?>')" class="" title="Add Wish List"><img src="http://<?php echo $_SERVER['SERVER_NAME']; ?>/images/icons/wishlist-add.png"></a>
                                    
                                </div>




                                <div class="col-sm-12 padding0" style="padding-bottom:5px;">
                                    <a href="javascript: void(0);" id="cart-<?php echo $data1['s_id']; ?>" rel="<?php echo $data1['s_id']; ?>" class="select_but add_cart">Select</a>
                                </div>
                                
                                


                            </div>           

                            <div class="row">

                            </div>
                        </div>
                    </div>
                </div>
                </li>
    <?php  } ?>
                 </ul>
        </div>
<?php }else{?>
No Product In cart
<?php } ?>