<section id="feature" style="background:#ededed; margin-top:10px;">
    <div class="container">
        <div class="row">
            <div class="features col-sm-12">
                <?php if (count($sessionIds) > 0) { ?>

                    <div class="col-md-2 col-sm-4 wow fadeInDown" data-wow-duration="1000ms" data-wow-delay="600ms">
                        <div class="col-sm-12 col-md-12 col-xl-12 padding0" style="height:240px;"> </div>



                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Price</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Cities to visit</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Sightseeing Name</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Sightseeing Cover</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Description</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Meeting Point</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Highlights</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Car Type</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Passengers</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Valid Date</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Valid Time</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Valid Age</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Category</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Type</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Address</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Coverage (KM)</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Coverage (Hrs)</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Difficult Level</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Popularity</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>YouTube Url</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Transport</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Pickup Point</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Allocation</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Cut-Off days</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Season</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Weekdays</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Meals</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Things Carry</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2"  style="height:auto;">
                            <h3>Inclusions</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2"  style="height:auto;">
                            <h3>Exclusions</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Guide</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Language</h3>
                        </div>

                        <div class="col-sm-12 col-md-12 col-xl-12 padding12top2">
                            <h3>Total Fare</h3>
                        </div>

                    </div>

                    <div class="col-md-10 col-sm-12 wow fadeInDown" data-wow-duration="1000ms" data-wow-delay="600ms">
                        <div class="" style="margin-top:10px;">
                            <div class="">



                                <?php
                                foreach ($sessionIds as $val) {
                                    $data = $payData[$val];
                                    //echo '<pre>';print_r($data['tourfaredata']);
                                    //echo '<pre>';print_r($data);
                                    if (!empty($data['meal'])) {
                                        $meal = json_decode($data['meal'], true);
                                        $meal = array_column($meal, "meal_name");
                                        $meal = implode(', ', $meal);
                                    } else {
                                        $meal = "NA";
                                    }

                                    if (!empty($data['sightseeingcategory'])) {
                                        $category = json_decode($data['sightseeingcategory'], true);
                                        $category = array_column($category, "sightseeing_category");
                                        $category = implode(', ', $category);
                                    } else {
                                        $category = "NA";
                                    }

                                    if (!empty($data['sightseingtype'])) {
                                        $sightseeing_type = json_decode($data['sightseingtype'], true);
                                        $sightseeing_type = array_column($sightseeing_type, "sightseeing_type");
                                        $sightseeing_type = implode(', ', $sightseeing_type);
                                    } else {
                                        $sightseeing_type = "NA";
                                    }

                                    if (!empty($data['season'])) {
                                        $season = json_decode($data['season'], true);
                                        $season = array_column($season, "season");
                                        $season = implode(', ', $season);
                                    } else {
                                        $season = "NA";
                                    }

                                    if (!empty($data['activeweekdays'])) {
                                        $weekDays = json_decode($data['activeweekdays'], true);
                                        $weekDays = array_column($weekDays, "weekdays_name");
                                        $weekDays = implode(', ', $weekDays);
                                    } else {
                                        $weekDays = "NA";
                                    }

                                    if (!empty($data['thingstocarry'])) {
                                        $thingsCarry = json_decode($data['thingstocarry'], true);
                                        $thingsCarry = array_column($thingsCarry, "thingstocarry");
                                        $thingsCarry = implode(', ', $thingsCarry);
                                    } else {
                                        $thingsCarry = "NA";
                                    }

                                    if (!empty($data['tourfaredata'])) {
                                        $fareData = json_decode($data['tourfaredata'], true);
                                        $adultFare = $fareData[0]['adult_price'];
                                        $childFare = $fareData[0]['child_price'];
                                        $totalFare = ($adultFare * $searchData['adults']) + ($childFare * $searchData['childs']);
                                        $guideAvailable = (isset($fareData[0]['is_guide_available']) && $fareData[0]['is_guide_available']==1)? 'Yes':'NA';
                                    } else {
                                        $adultFare = 0;
                                        $childFare = 0;
                                        $totalFare = $adultFare + $childFare;
                                        $guideAvailable = 'NA';
                                    }

                                    if (!empty($data['sightseeinglanguage'])) {
                                        $lang = json_decode($data['sightseeinglanguage'], true);
                                        $lang = array_column($lang, "language_name");
                                        $lang = implode(', ', $lang);
                                    } else {
                                        $lang = "NA";
                                    }
                                    ?>



                                    <div class="col-sm-4 col-md-4 col-xl-4 redio ">
                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0">
                                                <a href="<?php echo $this->url() . '/sightseeing-detail?id=' . $data['s_id']; ?>"><img src="http://<?php echo $_SERVER['SERVER_NAME']; ?>/images/hotelimage.png" width="100%"></a>
                                            </div>
                                            <div class="col-sm-12" style="background:#900; line-height:30px; color:#fff;" align="center">
                                                <h3 style="color:#fff;"><?php echo $data['sightseeing_name']; ?></h3>
                                            </div>

                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0">Adult- Rs <?php echo $adultFare; ?>/- Child- Rs <?php echo $childFare; ?>/-</div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $data['city_name'];?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $data['sightseeing_name']; ?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $data['sightseeing_cover']; ?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $data['description']; ?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $data['meeting_point']; ?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $data['highlights']; ?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php if($data['tour_type']==1){ echo "Private";} else { echo "Seat In coach";}?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php if($data['passenger']!=""){ echo 'Min '.$data['passenger'].' Pax.'; } else { echo 'NA';}?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo date('d-m-Y',strtotime($data['from_date']));?> TO <?php echo date('d-m-Y',strtotime($data['to_date']));?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $data['opening_time'];?> TO <?php echo $data['closing_time'];?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $data['age_from'];?> TO <?php echo $data['age_to'];?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $category;?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $sightseeing_type;?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $data['sightseeing_address'];?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $data['coverage_km'];?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $data['coverage_hrs'];?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $data['difficulty_level'];?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $data['popularity'];?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $data['youtube_url'];?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0">
                                                <?php if($data['transfer']==1) echo "Yes"; else echo "NA"; ?>
                                            </div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php if($data['pickup_point']!="") echo $data['pickup_point']; else 'NA';?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $data['allocation'];?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $data['cut_off_days'];?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $season;?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $weekDays;?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $meal;?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $thingsCarry; ?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $data['cost_inclusive'];?></div>

                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $data['cost_exclusive'];?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $guideAvailable; ?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0"><?php echo $lang; ?></div>
                                        </div>

                                        <div class="col-sm-12 padding12top1">
                                            <div class="col-sm-12 padding0">
                                                <i class="fa fa-inr"></i><?php echo $totalFare;?></div>

                                        </div>

                                        <div class="col-sm-12 ">
                                            <div class="col-sm-12 padding0" align="center">
                                                <button class="btn btn-primary1 btn-lg" type="submit">Book Now</button>
                                                <a class="btn btn-primary1 btn-lg remove-compare" rel="<?php echo $data['s_id']; ?>">Remove</a>
                                            </div>

                                        </div>
                                    </div>
    <?php } ?>
                                <!--<a class="btn btn-primary1 btn-lg removeall-compare">Remove</a>-->


                            </div>

                        </div>

                    </div>

<?php } else { ?>
                    <div class="col-sm-12">
                        <img src="http://<?php echo $_SERVER['SERVER_NAME']; ?>/images/noproduct.png" style="text-align: center;">
                    </div>
<?php } ?>
            </div><!--/.services-->
        </div><!--/.row-->

    </div><!--/.container-->
</section>