<?php
//echo '<pre>';print_r($vehicleList);die();
if (count($vehicleList) > 0) {
    foreach ($vehicleList as $data1) {
        if (!empty($data1['activeweekdays'])) {
            $weekDays = json_decode($data1['activeweekdays'], true);
            $weekDays = array_column($weekDays, "weekdays_name");
            $weekDays = implode(',', $weekDays);
        } else {
            $weekDays = "";
        }

        if (!empty($data1['tourfaredata'])) {
            $fareData = json_decode($data1['tourfaredata'], true);
            $adultFare = $fareData[0]['adult_price'];
            $childFare = $fareData[0]['child_price'];
        } else {
            $adultFare = 0;
            $childFare = 0;
        }
        ?>

        <div class="col-sm-12 col-md-12 col-xl-12 padding0 redio borderregency list" style="background:#fff; padding-top:10px;" >
            <div class="col-sm-3 col-sm-3img listpaddingboot">
                <div style="opacity: 1; display: block;" class="item tr big">
                    <a href="<?php echo $this->url() . '/sightseeing-detail?id=' . $data1['s_id']; ?>"><img src="http://<?php echo $_SERVER['SERVER_NAME']; ?>/images/hotelimage.png" width="100%"></a>
                </div>
            </div>

            <div class="col-sm-7">
                <div class="col-sm-12 padding0">
                    <h3 class="h3new"><?php echo $data1['sightseeing_name']; ?> | <?php echo $data1['city_name'];?></h3>
                    <div class="col-sm-12 padding0 holidaytext"><?php echo $data1['description']; ?></div>
                    <label class="col-sm-5 padding0" style="font-size:20px; margin-top:10px;">
                        <label class="lablecalsicon"><i class="fa fa-plane" aria-hidden="true"></i></label>
                        <label class="lablecalsicon"> <i class="fa fa-car" aria-hidden="true"></i></label>
                        <label class="lablecalsicon"> <i class="fa fa-bed" aria-hidden="true"></i></label>
                        <label class="lablecalsicon"> <i class="fa fa-cutlery" aria-hidden="true"></i> </label>
                    </label>
                    <label class="col-sm-6 pull-right padding0" style="text-align:right; margin-top:10px;">DURATION: 4 Nights/ 5 Days
                        <div>
                            <input id="holidaytheme" type="checkbox" name="holidaytheme" value="1"><label for="holidaytheme"><span></span>Send Mail</label>
                        </div>
                    </label>

                </div>
            </div>

            <div class="col-sm-2 padding0 mobileprice border-left margin5 padding-bot0" align="center">
                <div class="col-sm-12 padding0">
                    <label>Adult Price<br></label>
                    <p style="margin-bottom:0;" class="priceheader">
                        <i class="fa fa-inr" aria-hidden="true"></i><?php echo $adultFare; ?>/-<br>
                    </p>
                    <label>Child Price<br></label>
                    <p style="margin-bottom:0;" class="priceheader">
                        <i class="fa fa-inr" aria-hidden="true"></i><?php echo $childFare; ?>/-<br>
                    </p>
                </div>

                <div class="col-sm-12 margin5 padding-bot0">
                    <a 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 class="col-sm-12 margin5 padding-bot0">
                    <a href="#"  class="contact-iccons" title="Send Enquiry"><i class="fa fa-envelope" aria-hidden="true"></i></a>
                    <a href="#"  class="contact-iccons" title="Gat a Call Back"><i class="fa fa-phone" aria-hidden="true"></i></a>
                    <a href="#"  class="contact-iccons" title="Refer a Friend"><i class="fa fa-user-plus"></i></a>
                </div>
            </div>
        </div>

        <div class="col-sm-4 col-md-4 col-xl-4 col-md-4grid redio grid">
            <div class="col-sm-12 padding12top">
                <div class="col-sm-12 padding0"><img src="http://<?php echo $_SERVER['SERVER_NAME']; ?>/images/hotelimage.png" width="100%"></div>
                <div class="col-sm-12 padding0">
                    <div class="col-sm-12 padding0" align="center">
                        <div class="col-sm-12 padding0">
                            <h3 class="h3new gridh3"><?php echo $data1['sightseeing_name']; ?></h3>
                        </div>
                        <div class="col-sm-12 padding0"><strong>Operates On:</strong><?php echo $weekDays; ?></div>
                        <div class="col-sm-12 padding0">
                    <span class="lablecalsicon"><i class="fa fa-hotel" aria-hidden="true" title="Meal"></i></span>
                    <span class="lablecalsicon"><i class="fa fa-plane" aria-hidden="true" title="Retaurant"></i></span>
                    <span class="lablecalsicon"><i class="fa hroomservice" aria-hidden="true" title="Room Services"></i></span>
                    <span class="lablecalsicon"><i class="fa fa-cab" aria-hidden="true" title="Wifi"></i></span>
                        </div>
                    </div>
                </div>


                <div class="col-sm-12 padding0 priceregencygrid " style="margin-top:10px;">
                    <p style="margin-bottom:0; line-height:6px;" class="priceheadergrid">
                        <i class="fa fa-inr" aria-hidden="true"></i><?php echo $adultFare; ?>/-
                        <span style="font-size:10px;">Adult Price</span>
                    </p>

                    <p style="margin-bottom:0; line-height:6px;" class="priceheadergrid">
                        <i class="fa fa-inr" aria-hidden="true"></i><?php echo $childFare; ?>/-
                        <span style="font-size:10px;">Child Price</span>
                    </p>

                    <div>
                        <input id="holidaytheme" type="checkbox" name="holidaytheme" value="1">
                        <span for="holidaytheme" style="font-size:11px;"><span></span>Send Mail</span>
                    </div>

                </div>

                <div class="col-sm-12 padding0 icon-grid text-center">
                    <a href="#" class="" 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>
                    <a href="#"  class="contact-iccons" title="Send Enquiry"><i class="fa fa-envelope" aria-hidden="true"></i></a>
                    <a href="#"  class="contact-iccons" title="Gat a Call Back"><i class="fa fa-phone" aria-hidden="true"></i></a>
                    <a href="#"  class="contact-iccons" title="Refer a Friend"><i class="fa fa-user-plus"></i></a>
                </div>

                <div class="col-sm-12 padding0 padding-bot10px text-center" align="" style="margin-top:5px;">
                    <a href="#" class="compare_butgrid">Compare</a>
                    <a href="javascript: void(0);" id="cart-<?php echo $data1['s_id']; ?>" rel="<?php echo $data1['s_id']; ?>" class="select_butgrid add_cart">Select</a>
                </div>
            </div>
        </div>

    <?php }
} ?>

