      <div class="innerBanner <?php if($partyDetails['rating_on_off']==0){ echo 'rateinfoinnerWrapper'; }?>">
        <div class="container">
          <div class="banner_wrapper <?php if($partyDetails['rating_on_off']==0){ echo 'rateinfoWrapper'; }?>">
          <?php if($partyDetails['extra_info'] && $partyDetails['rating_on_off']==1){ ?>
               <div class="content_box">
                <div class="content_rating">
                     <?php if($partyDetails['rating']){ ?>
                     <span> 
                      <?php for($i = 1; $i <= $partyDetails['rating']; $i++) { ?>
                      <i class="fa fa-star"></i>
                      <?php } ?>  
                      <?php for($j = 1; $j <= (5 - $partyDetails['rating']); $j++) { ?>
                      <i class="fa fa-star-o"></i>
                      <?php } ?>                      
                     </span>
                     <?php } ?>
                      <div class="rating_text"><?php echo $partyDetails['extra_text']; ?></div>
                    </div>
                    
                   <a href="javascript:void(0)" class="info_content_btn"><?php echo getLang('More_information');?></a>  

                  <div class="content_info">    
                     <p><?php echo $partyDetails['extra_info']; ?></p>                   
                   </div>
              </div>
               <?php } ?>
              <?php //if($partyDetails['airport_distance']){ ?>
                <div class="content_location">
                  <h6><i class="fa fa-map-marker"></i> <?php echo getLang('Airport_Distances');?></h6>
                  <p><?php echo $partyDetails['airport_distance']; ?></p>
                </div>
              <?php //} ?>
              

              <div class="content_btn">
              
                <div class="discount">
                  <?php if($partyDetails['is_sold']!=0){ ?>
                    <h3><span style="color:red; text-transform: uppercase ;"><?php echo getLang('Sold_Out'); ?></span></h3>
                   <?php } ?>
                 <?php $discount = 0; 
                  if($partyDetails['discount_end_date']!=''){
                    if(strtotime($partyDetails['discount_end_date']) > time()){
                      $discount = $partyDetails['discount']; 
                    }
                  } else {
                    $discount = $partyDetails['discount']; 
                  }
                 ?>
                    <?php if($discount>0){ ?>
                      <p><?php //echo getLang('Prices_starting_from'); ?> EUR <strike><?php if(!empty($partyPrice)){ echo number_format($partyPrice['base_price'],2,',','.'); } ?>/ <?php echo getLang('per_couple'); ?></strike> <span class="entryDiscount"><?php echo $discount; ?> % Discount</span>
                      <span style="color: #b3975b; font-weight: bold; padding-top:10px; display:block;">EUR <?php echo number_format($partyPrice['base_price']*(1-($discount/100)),2,',','.'); ?>/ <?php echo getLang('per_couple'); ?></span> 
                      (<?php echo getLang('Couples_&_Single_ladies_only'); ?>)</p>
                    <?php } else { ?>
                      <p><?php //echo getLang('Prices_starting_from'); ?> EUR <?php if(!empty($partyPrice)){ echo number_format($partyPrice['base_price'],2,',','.'); } ?>/ <?php echo getLang('per_couple'); ?> 
                      <br><span>(<?php echo getLang('Couples_&_Single_ladies_only'); ?>)</span></p>
                    <?php } ?>
                 </div> 

                <?php if($partyDetails['is_sold']==0){ ?>
                    <button id="bookParty_Step01newDesign" type="button" class="btn_gold bookParty_Step01newDesig"><?php echo getLang('Party'); ?></button> 
                   <?php } ?>

              </div>

              </div>
              
              </div>
              <?php if($partyDetails['event_video']!=''){ ?>
                <div class="video">
                  <iframe src="<?php echo $partyDetails['event_video']; ?>" frameborder="0" width="100%" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
                </div>
              <?php }else{ ?> 
                <div class="scrollable" style=" background: url(<?php if($partyDetails){ echo base_url().'assets/userfiles/'.$partyDetails['path'].'/'.$partyDetails['filename'].'.'.$partyDetails['extension']; }?>) no-repeat center center/cover;"></div>
              <?php } ?> 
               
               </div>

               <!-- PARTY GUEST -->
                   <div class="guest_wrapper">
                     <div class="container">
                       <h3><?php echo getLang('Experience_sparkling_nights');?></h3>
                       <span class="quote">"<?php echo getLang('One_of_the_things_you_must_do_before_you_die'); ?>.." - <?php echo getLang('DT_Magazine__Spain'); ?> <span>
                       <div class="guests_avatar_list">
                         <?php if(count($booked_users)>=10){
                          foreach ($booked_users as $users) { 
                            $location = uerLocation($users['user_id']);
                            $newClass = 'left';
                            if($keys>0)
                            {
                              $newClass = 'right';
                            }
                          ?>
                           <a href="javascript:void(0)">
                              <img class="tooltipImg" title="<div class='tooltipBox <?php echo $newClass; ?>'>
                            <div class='avatar-tooltip'>
                             <img src='<?php if(!empty($users) && $users['filename']!='' && file_exists(FCPATH.'assets/userfiles/'.$users['path'].'/80/'.$users['filename'].'.'.$users['extension'])){ echo base_url().'assets/userfiles/'.$users['path'].'/80/'.$users['filename'].'.'.$users['extension']; } else { echo base_url().'assets/images/default-avatar.jpg'; }?>' alt=''>
                            </div>
                            <div class='tooltip-container'>                                              
                                                           <h5><?php echo $users['username']; ?>
                                                            <small><?php echo $location; ?></small>
                                                            <?php if($users['accounttype']=='couple'){?>
                                                            <img src='images/couple.png' alt=''>
                                                            <?php } ?>
                                                            <?php if($users['accounttype']=='lady'){?>
                                                            <img src='images/lady.png' alt=''>
                                                            <?php } ?>
                                                            <?php if($users['accounttype']=='gentleman'){?>
                                                            <img src='images/gentleman.png' alt=''>
                                                            <?php } ?>
                                                           </h5>                  
                              <p><em><?php echo word_limiter($users['about'],10); ?></em></p>
                            </div>
                            <?php if($this->session->userdata('user_id')){ ?>
                              <a href='<?php echo base_url('profil/'.$users['alias']); ?>'><button type='button' class='tooltip-btn'><?php echo getLang('View_profile'); ?></button></a>
                            <?php }else{ ?>
                              <button type='button' class='tooltip-btn tooltipregister'><?php echo getLang('View_profile_after_login'); ?></button>
                            <?php } ?>
                          </div>" src="<?php if(!empty($users) && $users['filename']!='' && file_exists(FCPATH.'assets/userfiles/'.$users['path'].'/80/'.$users['filename'].'.'.$users['extension'])){ echo base_url().'assets/userfiles/'.$users['path'].'/80/'.$users['filename'].'.'.$users['extension']; } else { echo base_url().'assets/images/default-avatar.jpg'; }?>" alt="" srcset="<?php if(!empty($users['filename']) && file_exists(FCPATH.'assets/userfiles/'.$users['path'].'/80/'.$users['filename'].'.'.$users['extension'])){ echo  base_url().'assets/userfiles/'.$users['path'].'/80/'.$users['filename'].'.'.$users['extension']; } else { echo base_url().'assets/images/default-avatar.jpg'; } ?> 1x, <?php if(!empty($users['filename']) && file_exists(FCPATH.'assets/userfiles/'.$users['path'].'/160/'.$users['filename'].'.'.$users['extension'])){ echo  base_url().'assets/userfiles/'.$users['path'].'/160/'.$users['filename'].'.'.$users['extension']; } else { echo base_url().'assets/images/default-avatar.jpg'; } ?> 2x" >
                              <?php if($users['online_status']==1){ echo '<i class="fa fa-circle"></i>';}?>
                            </a>
                          <?php }
                              }
                            ?>
                       </div>
                     </div>
                   </div>
             <!-- //PARTY GUEST -->

            <section class="content_wrapper innerPage pt0 clearfix">
             <div class="partyBookingWrapper clearfix">

                <div class="box_boking pt30">
                 <div class="inner">
                  <h4 class="text_white"><?php if($partyDetails){ echo getLang(date('l',$partyDetails['time_from'])).', '.date('d M Y',$partyDetails['time_from']); }?> - <?php if($partyDetails){ echo eventDetails($partyDetails['id']); ; }?></h4>
                  <h1><?php if($partyDetails){ echo $partyDetails['title']; }?></h1>
                  <hr class="bold">
                  <h2 class="clearfix"><?php if($partyDetails){ echo $partyDetails['sub_title']; }?></h2>
                  <p><?php if($partyDetails){ echo strip_tags($partyDetails['teasertext']); }?></p>
                 <?php if($this->session->userdata('user_id')){ ?>
                  <div class="text-center">
                    <p id="message_error" style="color:red"></p>               
                    <button class="hotshotBtn hotshot_party" data-id="<?php echo $partyDetails['id']; ?>"><img src="images/hotspot-icon.png"> <?php echo getLang('Hotshot'); ?></button>
                  </div>
				          <?php } ?>
                  <?php if($partyDetails['video_url']!='' && $this->session->userdata('user_id')){ ?>
                  <div class="video">
                    <iframe src="<?php echo $partyDetails['video_url']; ?>" frameborder="0" width="100%" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
                  </div>
                  <?php } ?>
                  
                  
                 </div>
                 <p class="text_white margin_top30"><?php echo getLang('Archiv__similar_parties_from_the_past'); ?></p>

                 <div class="inner pastParty">
                   <?php if(!empty($pastParties)){ 
                              foreach ($pastParties as $past) { ?>
                  <a href="<?php echo  base_url().'reviews/'.$past['alias']; ?>">            
                    <div class="pastpartyList">

                     <div class="pastLeft">
                        <h4><?php echo $past['title']; ?></h4>
                         <p><span class="time"><?php echo date('d, M Y',$past['time_from']); ?></span> - <span class="place"><?php echo eventDetails($past['id']); ; ?></span></p>
                      </div>

                      <div class="pastRight">
                        
							<img src="<?php if(!empty($past) && $past['filename']!='' && file_exists(FCPATH.'assets/userfiles/'.$past['path'].'/250/'.$past['filename'].'.'.$past['extension'])){ echo base_url().'assets/userfiles/'.$past['path'].'/250/'.$past['filename'].'.'.$past['extension']; } else { echo base_url().'assets/images/default-avatar.jpg'; }?>" alt="" srcset="<?php if(!empty($past['filename']) && file_exists(FCPATH.'assets/userfiles/'.$past['path'].'/250/'.$past['filename'].'.'.$past['extension'])){ echo  base_url().'assets/userfiles/'.$past['path'].'/250/'.$past['filename'].'.'.$past['extension']; } else { echo base_url().'assets/images/default-avatar.jpg'; } ?> 1x, <?php if(!empty($past['filename']) && file_exists(FCPATH.'assets/userfiles/'.$past['path'].'/500/'.$past['filename'].'.'.$past['extension'])){ echo  base_url().'assets/userfiles/'.$past['path'].'/500/'.$past['filename'].'.'.$past['extension']; } else { echo base_url().'assets/images/default-avatar.jpg'; } ?> 2x" >
										
				 
                      </div>
                     
                    </div>
                  </a>
                  <?php   }
                            }
                        ?>

                   

                 </div>

               </div>              
              
              <div id="bookDetails" class="box_boking bookingDetails">
                 <div class="inner">                                
                  <p class="firstUpper"><?php if($partyDetails){ echo strip_tags(html_entity_decode($partyDetails['description'])); }?></p>
                   <hr class="spacer">
                   <ul>
                     <?php $services = json_decode($partyDetails['services']);
                           if(!empty($services)){ 
                           foreach ($services as $key => $service) { ?>
                              
                      <li><i class="fa fa-check"></i> <?php if(strtolower($key)==strtolower('A Few Single Lady Entries Available')){ echo getLang('Ladyentry_available'); } elseif(strtolower($key)==strtolower('Masks & Capes Large Selection On Site')){ echo getLang('Mask_&_Capes_available'); } elseif(strtolower($key)==strtolower('Castle')){ echo getLang('Castle'); } elseif(strtolower($key)==strtolower('Medieval Castle')){ echo getLang('Medieval_Castle'); } elseif(strtolower($key)==strtolower('Villa')){ echo getLang('Villa'); } elseif(strtolower($key)==strtolower('Penthouse')){ echo getLang('Penthouse'); } elseif(strtolower($key)==strtolower('Yacht')){ echo getLang('Yacht'); } elseif(strtolower($key)==strtolower('Five Star Location')){ echo getLang('Five_Star_Location'); } elseif(strtolower($key)==strtolower('Gourmet')){ echo getLang('Gourmet'); } elseif(strtolower($key)==strtolower('Rooms & Suites')){ echo getLang('Rooms_&_Suites'); } elseif(strtolower($key)==strtolower('Delicious Dinner')){ echo getLang('Delicious_Dinner'); } elseif(strtolower($key)==strtolower('Flying Dinner Buffet')){ echo getLang('Flying_Dinner_Buffet'); } elseif(strtolower($key)==strtolower('Airport Service')){ echo getLang('Airport_Service'); } elseif(strtolower($key)==strtolower('Ceremony')){ echo getLang('Ceremony'); } elseif(strtolower($key)==strtolower('Cigar Lounge')){ echo getLang('Cigar_Lounge'); } elseif(strtolower($key)==strtolower('Wellness Area')){ echo getLang('Wellness_Area'); } elseif(strtolower($key)==strtolower('Premium Offers')){ echo 'Premium Offers'; } elseif(strtolower($key)==strtolower('Live Music & Show')){ echo getLang('Live_Music_&_Show'); } elseif(strtolower($key)==strtolower('Dresscode')){ echo getLang('Dresscode'); } elseif(strtolower($key)==strtolower('Guarded Wardrobe')){ echo getLang('Guarded_Wardrobe'); } elseif(strtolower($key)==strtolower('Cape Required')){ echo getLang('Cape_Required'); } elseif(strtolower($key)==strtolower('Venetian Masks')){ echo getLang('Venetian_Masks'); } elseif(strtolower($key)==strtolower('Dresscode Black Tie')){ echo getLang('Dresscode_Black_Tie'); } elseif(strtolower($key)==strtolower('Dresscode See Further Information')){ echo getLang('Dresscode_See_Further_Information'); } elseif(strtolower($key)==strtolower('For Couples only')){ echo getLang('For_Couples_only'); } else{ echo $key; }?></li>
                      
                      <?php } } ?>
                    </ul> 
                 </div>
               </div> 

                <div id="bookEntry" class="box_boking bookEntry text_center">
                 
                 <div class="party_wrapper">                    
                    <?php if($partyDetails['airport_distance']){ ?>
                     <div class="party-location">
                        <img src="<?php echo base_url();?>/assets/images/placeholder.svg" alt="">
                        <p><?php echo $partyDetails['airport_distance']; ?></p>
                     </div>
                     <?php }else{ ?>
                     <hr class="spacer">
                     <?php } ?>
                  </div>

                 <div class="inner">
                   <ul class="attendpartyavatar">
                    <?php if(!empty($booked_users)){
                          foreach ($booked_users as $users) { 
                            $location = uerLocation($users['user_id']);
                            $newClass = 'left';
                            if($keys>0)
                            {
                              $newClass = 'right';
                            }
                    ?>
                           <li>
                              <div class="mediumbgAvatar" >
									<img class="tooltipImg" title="<div class='tooltipBox <?php echo $newClass; ?>'>
                <div class='avatar-tooltip'>
                 <img src='<?php if(!empty($users) && $users['filename']!='' && file_exists(FCPATH.'assets/userfiles/'.$users['path'].'/80/'.$users['filename'].'.'.$users['extension'])){ echo base_url().'assets/userfiles/'.$users['path'].'/80/'.$users['filename'].'.'.$users['extension']; } else { echo base_url().'assets/images/default-avatar.jpg'; }?>' alt=''>
                </div>
                <div class='tooltip-container'>                                              
                                               <h5><?php echo $users['username']; ?>
                                                <small><?php echo $location; ?></small>
                                                <?php if($users['accounttype']=='couple'){?>
                                                <img src='images/couple.png' alt=''>
                                                <?php } ?>
                                                <?php if($users['accounttype']=='lady'){?>
                                                <img src='images/lady.png' alt=''>
                                                <?php } ?>
                                                <?php if($users['accounttype']=='gentleman'){?>
                                                <img src='images/gentleman.png' alt=''>
                                                <?php } ?>
                                               </h5>                  
                  <p><em><?php echo word_limiter($users['about'],10); ?></em></p>
                </div>
                <?php if($this->session->userdata('user_id')){ ?>
                  <a href='<?php echo base_url('profil/'.$users['alias']); ?>'><button type='button' class='tooltip-btn'><?php echo getLang('View_profile'); ?></button></a>
                <?php }else{ ?>
                  <button type='button' class='tooltip-btn tooltipregister'><?php echo getLang('View_profile_after_login'); ?></button>
                <?php } ?>
              </div>" src="<?php if(!empty($users) && $users['filename']!='' && file_exists(FCPATH.'assets/userfiles/'.$users['path'].'/80/'.$users['filename'].'.'.$users['extension'])){ echo base_url().'assets/userfiles/'.$users['path'].'/80/'.$users['filename'].'.'.$users['extension']; } else { echo base_url().'assets/images/default-avatar.jpg'; }?>" alt="" srcset="<?php if(!empty($users['filename']) && file_exists(FCPATH.'assets/userfiles/'.$users['path'].'/80/'.$users['filename'].'.'.$users['extension'])){ echo  base_url().'assets/userfiles/'.$users['path'].'/80/'.$users['filename'].'.'.$users['extension']; } else { echo base_url().'assets/images/default-avatar.jpg'; } ?> 1x, <?php if(!empty($users['filename']) && file_exists(FCPATH.'assets/userfiles/'.$users['path'].'/160/'.$users['filename'].'.'.$users['extension'])){ echo  base_url().'assets/userfiles/'.$users['path'].'/160/'.$users['filename'].'.'.$users['extension']; } else { echo base_url().'assets/images/default-avatar.jpg'; } ?> 2x" >
								
								 </div>
                            </a>
                          </li>
                    <?php }
                        }
                      ?>
                     
                   </ul>
                   <?php if($partyDetails['is_sold']==0){ ?>
                    <h3 class="allcaps text_gold"><?php echo getLang('Be_part_of_this_journey'); ?></h3>                  
                   <?php } else { ?>
                    <h3><span style="color:red; text-transform: uppercase ;"><?php echo getLang('Sold_Out'); ?></span></h3>
                   <?php } ?>


                  


                  <?php 
                    $discount = 0;
                    if($partyDetails['discount_end_date']!='')
                    {
                      if(strtotime($partyDetails['discount_end_date']) > time()){
                        $discount = $partyDetails['discount']; 
                      }
                    } else {
                      $discount = $partyDetails['discount']; 
                    }
                  ?>
                  <?php if($discount>0){ ?>
                    <p><?php //echo getLang('Prices_starting_from'); ?> EUR <strike><?php if(!empty($partyPrice)){ echo number_format($partyPrice['base_price'],2,',','.'); } ?>/ <?php echo getLang('per_couple'); ?></strike> <span class="entryDiscount"><?php echo $discount; ?> % Discount</span>
                    <span style="color: #b3975b; font-weight: bold; padding-top:10px; display:block;">EUR <?php echo number_format($partyPrice['base_price']*(1-($discount/100)),2,',','.'); ?>/ <?php echo getLang('per_couple'); ?></span> 
                    (<?php echo getLang('Couples_&_Single_ladies_only'); ?>)</p>
                  <?php } else { ?>
                    <p><?php //echo getLang('Prices_starting_from'); ?> EUR <?php if(!empty($partyPrice)){ echo number_format($partyPrice['base_price'],2,',','.'); } ?>/ <?php echo getLang('per_couple'); ?> 
                    <br>(<?php echo getLang('Couples_&_Single_ladies_only'); ?>)</p>
                  <?php } ?> 
                   <span id="error" class="text_gold"></span>
                   <?php if($partyDetails['is_sold']==0){ ?>
                    <button id="bookParty_Step01" type="button" class="btn_gold margin_top30"><?php echo getLang('Party'); ?></button> 
                   <?php } ?>
                    
                 </div>
                 <?php if($related_users){ ?>
                 <div class="useronline_status">
                    <p><?php echo count($related_users); ?> <?php echo getLang('people_you_may_know_booked_already');?></p>
                     <div class='guests_avatar_list'>
                      <?php foreach($related_users as $keys=>$related){ 
                        if($keys < 8){ ?>       
                       <a href="<?php echo  base_url().'profil/'.$related['alias']; ?>">
                         <?php if(count($related_users)>8 && $keys==7) {?><span class="moreuser">+<?php echo (count($related_users)-8); ?></span><?php } ?>
                         <img src="<?php if(!empty($related) && $related['filename']!='' && file_exists(FCPATH.'assets/userfiles/'.$related['path'].'/80/'.$related['filename'].'.'.$related['extension'])){ echo base_url().'assets/userfiles/'.$related['path'].'/80/'.$related['filename'].'.'.$related['extension']; } else { echo base_url().'assets/images/default-avatar.jpg'; }?>" alt="<?php echo $keys; ?>">
                       </a>
                     <?php } } ?>
                       
                     </div>
                 </div>
                 <?php } ?>
                 <div class="campanion" id="campanion">
                    <h4><?php echo getLang('LOOKING_FOR_COMPANION'); ?></h4>
                    <span id="errorid" class="" style="color:red"></span>
                    <input type="hidden" id="currentUserMembers" value="<?php echo $userMembershipDetails['id']; ?>">
                      <?php if(!empty($logged_in_lady)){ ?>
                      
                        <div class="campnBox ladies text_center">
                          <div id="campnBox-one" class="owl-carousel owl-theme">
                            <?php foreach ($logged_in_lady as $ladys) { ?>
                            <a class="usrProfil" href="javascript:void(0);" data-id="<?php echo base_url().'profil/'.$ladys['alias'];?>" data-type="<?php echo $userDetail['accounttype']; ?>" data-membership="<?php echo $userMembershipDetails['id']; ?>">
                             <div class="item">
                              <div class="recentAvatar" >
                                <img src="<?php if(!empty($ladys) && $ladys['filename']!='' && file_exists(FCPATH.'assets/userfiles/'.$ladys['path'].'/80/'.$ladys['filename'].'.'.$ladys['extension'])){ echo base_url().'assets/userfiles/'.$ladys['path'].'/80/'.$ladys['filename'].'.'.$ladys['extension']; } else { echo base_url().'assets/images/default-avatar.jpg'; }?>" alt="" srcset="<?php if(!empty($ladys['filename']) && file_exists(FCPATH.'assets/userfiles/'.$ladys['path'].'/80/'.$ladys['filename'].'.'.$ladys['extension'])){ echo  base_url().'assets/userfiles/'.$ladys['path'].'/80/'.$ladys['filename'].'.'.$ladys['extension']; } else { echo base_url().'assets/images/default-avatar.jpg'; } ?> 1x, <?php if(!empty($ladys['filename']) && file_exists(FCPATH.'assets/userfiles/'.$ladys['path'].'/160/'.$ladys['filename'].'.'.$ladys['extension'])){ echo  base_url().'assets/userfiles/'.$ladys['path'].'/160/'.$ladys['filename'].'.'.$ladys['extension']; } else { echo base_url().'assets/images/default-avatar.jpg'; } ?> 2x" >
                              
                               </div>

                               <h4><?php echo $ladys['username']; ?></h4>
                               <p><?php echo $ladys['accounttype']; ?>, <?php echo $ladys['country_name']; ?></p>
                            </div>
                            </a>  
                            <?php } ?>
                            </div>
                          </div>
                      
                        <?php } ?>  

                      <?php if(!empty($logged_in_gentleman)){ ?>
                      
                        <div class="campnBox gentleman text_center">
                          <div id="campnBox-two" class="owl-carousel owl-theme">
                            <?php foreach ($logged_in_gentleman as $gentlemans) { ?>
                            <a class="usrProfil1" href="javascript:void(0);" data-id="<?php echo base_url().'profil/'.$gentlemans['alias'];?>" data-type="<?php echo $userDetail['accounttype']; ?>" data-membership="<?php echo $userMembershipDetails['id']; ?>">
                            <div class="item">
                               <div class="recentAvatar" >
                                <img src="<?php if(!empty($gentlemans) && $gentlemans['filename']!='' && file_exists(FCPATH.'assets/userfiles/'.$gentlemans['path'].'/80/'.$gentlemans['filename'].'.'.$gentlemans['extension'])){ echo base_url().'assets/userfiles/'.$gentlemans['path'].'/80/'.$gentlemans['filename'].'.'.$gentlemans['extension']; } else { echo base_url().'assets/images/default-avatar.jpg'; }?>" alt="" srcset="<?php if(!empty($gentlemans['filename']) && file_exists(FCPATH.'assets/userfiles/'.$gentlemans['path'].'/80/'.$gentlemans['filename'].'.'.$gentlemans['extension'])){ echo  base_url().'assets/userfiles/'.$gentlemans['path'].'/80/'.$gentlemans['filename'].'.'.$gentlemans['extension']; } else { echo base_url().'assets/images/default-avatar.jpg'; } ?> 1x, <?php if(!empty($gentlemans['filename']) && file_exists(FCPATH.'assets/userfiles/'.$gentlemans['path'].'/160/'.$gentlemans['filename'].'.'.$gentlemans['extension'])){ echo  base_url().'assets/userfiles/'.$gentlemans['path'].'/160/'.$gentlemans['filename'].'.'.$gentlemans['extension']; } else { echo base_url().'assets/images/default-avatar.jpg'; } ?> 2x" >
                              
                               </div>

                               <h4><?php echo $gentlemans['username']; ?></h4>
                               <p><?php echo $gentlemans['accounttype']; ?>, <?php echo $gentlemans['country_name']; ?></p>
                            </div>
                            </a>
                            <?php } ?>
                          </div>
                        </div>
                        
                       <?php } ?> 
                       
                  </div>
                     <!-- COMMENT BOX -->
              
                  <!-- // COMMENT BOX -->
               </div> 

               

                <div id="partyEntry" class="rightBlock" style="display:none">
                <div class="book_for_username text_gold" style="display:none;padding: 10px;margin-bottom: 10px;border: 1px solid #b3975b;" data-id="1"></div>
                <div id="bookingStep1" style="display:none">
                <div class="chooseOne"><p><?php echo  getLang('Please_chose_one_of_the_following_entries'); ?></p></div>
                <?php if($this->session->userdata('user_id')=='11330' || $this->session->userdata('user_id')=='25267'){ ?>
                  <label>If you want to send mail uncheck ! </label>
                      <input type="checkbox" name="is_mail" value="1" checked>
                  <div class="searchByUser">
                    <h2><?php echo getLang('Search_for_booking_user'); ?>:</h2>

                    <div class="search_main">
                      <input type="text" id="search" autocomplete="off" placeholder="<?php echo getLang('Search_user_by_username'); ?>">
                      <div id="search_result" style="display: none;"></div>
                      
                    </div>  
                  </div> 
                <?php } ?>
                <?php if(!empty($entries)){ 
                     foreach ($entries as $entry) { 
                        
                      ?>
                    <div class="entryBox <?php if($entry['is_sold']==0){ echo 'box1'; } ?>" id="" data-title="<?php echo $entry['title']; ?>" data-id="<?php echo $entry['id']; ?>" data-price="<?php echo $entry['base_price']*(1-($discount/100)); ?>" data-type="1" data-mandatory="<?php echo $entry['room_mandatory']; ?>">
                      <img src="<?php echo base_url().'assets/userfiles/'. $entry['path'].'/'.$entry['filename'].'.'.$entry['extension']; ?>" alt="" srcset="<?php echo base_url().'assets/userfiles/'. $entry['path'].'/'.$entry['filename'].'.'.$entry['extension']; ?> 1x">
                      <div class="entrycontent">
                        <h4><?php echo $entry['title']; ?>    <?php if($entry['is_sold']==1){ echo '<span style="color:red">Sold out</span>'; } ?></h4>
                        <p><?php echo strip_tags($entry['content']); ?></p>
                        <?php if($discount>0){ ?>
                        <span><strike>EUR <?php echo $entry['base_price']; ?>/ <?php echo getLang('couple'); ?></strike></span>
                        <span class="entryDiscount"><?php echo $discount; ?> % Discount</span>
                        <span class="entryFinal">EUR <?php echo number_format($entry['base_price']*(1-($discount/100)),2,',','.'); ?>/ <?php echo getLang('couple'); ?></span>
                        <?php }else{ ?>
                        <span>EUR <?php echo number_format($entry['base_price'],2,',','.'); ?>/ <?php echo getLang('couple'); ?></span>
                        <?php } ?>

                        <?php if($entry['room_info'] !=''){ ?>
                          <h6 class="room_available_span">ROOMS IN THE VENUE</h6>
                          <div class="availabe_rooms"><?php echo $entry['room_info']; ?></div>
                        <?php } ?>
                      </div>
                    </div>
                 <?php } } else{
                  echo '<div class="extranight">                   
                           <h4 class="text_white">'.getLang('No_entry_available').'</h4>                 
                       </div>';
                  } ?>
                 </div>
                 <?php 
                  $discountAmount = 0;
                  $early_discount = 0;
                  if(!empty($userDiscounts)){ 
                    $discountAmount = $discountAmount + $userDiscounts['discount'];
                  }
                  if($discount>0){ 
                    $early_discount = $early_discount + $discount;
                  }
                 ?>
                 <input type="hidden" id="user_id" value="<?php if($this->session->userdata('user_id')){ echo $this->session->userdata('user_id'); }?>">
                 <input type="hidden" id="user_discount" value="<?php echo $discountAmount; ?>">
                 <input type="hidden" id="early_discount" value="<?php echo $early_discount; ?>">
                 <input type="hidden" id="baseUrl" value="<?php echo base_url();?>">
                 <input type="hidden" id="step_1_price" value="0">
                 <input type="hidden" id="step_1_discount" value="0">
                 <input type="hidden" id="entry_id" value="">
                 <input type="hidden" id="event_id" value="<?php if(!empty($partyDetails)){ echo $partyDetails['id']; }?>">
                 <input type="hidden" id="cart_id" value="0">
                 <input type="hidden" id="room_mandatory" value="0">
                 <input type="hidden" id="stripe_credentials" value="<?php echo $stripe_credentials['public_key']; ?>">

                 <div id="finalStep" style="display:none; ">
                
                 
                 </div>
                 <div id="bookingStep2" style="display:none">
                
                 
                 </div>

                 <div id="bookingStep3" style="display:none">
                
                 
                 </div>

                 <div id="bookingStep4" style="display:none">
                
                 
                 </div>

                 <div id="bookingStep5" style="display:none">
                 
                 
                 </div>
                 <div id="bookingStep6" style="display:none">
                    <div class="entryBox thikGoldBorder">                   
                      <div class="entrycontent">
                        <span class="admin_choosed_username text_gold"></span>
                        <h4 class="text_white"><?php echo getLang('Thanks_For_your_booking'); ?></h4>
                        <p class="bold_text text_gold"><?php echo getLang('We_have_sent_you_an_invoice_with_the_ID'); ?> <span class="invoiceID"></span></p>
                        <p class="text_gold"><?php echo getLang('Should_you_did_not_received_any_mail'); ?>.</p>                     
                      </div>
                    </div>

                    <div class="payBox" >                   
                      <span class="payimg"> <img src="images/paymen_icon.png" alt=""></span>
                      <h4><?php echo getLang('Pay_by_credit_card'); ?></h4>
                      <button type="button" class="btn_grey payNow" data-id="1"><?php echo getLang('pay_Now'); ?></button>
                      <form action="" method="POST" id="booking-form"  autocomplete="on">
                      <div class="center payfrm" style="display:none">
                           <span class="booking-errors" style="color:red;"></span>
                          <span class="payment_details"></span>
                          <p class="ssl_text"><img src="<?php echo  base_url().'assets/images/ssl-icon.png'; ?>">
                           <?php echo getLang('To_guarantee_for_maximum_safety__your_data'); ?>.
                          </p>
                           <div class="form_group">
                     
                             <label><?php echo getLang('Card_Holder'); ?></label>
                             <input type="text" size="20" name="card_holder" id="card_holder" placeholder="<?php echo getLang('Enter_Holder_name'); ?>">
                           
                         </div>

                         <div class="form_group">
                           
                             <label><?php echo getLang('Card_Number'); ?></label>
                             <input type="text" size="20" name="card_number" id="card_number" placeholder="<?php echo getLang('Enter_Card_Number'); ?>">
                           
                         </div>
                        
                         <div class="form_group doubleinput clearfix">
                           
                              <label><?php echo getLang('Expiration'); ?> (MM/YY)</label>
                              <!--<input type="text" size="2" data-stripe="exp_month" placeholder="Enter Month">-->
                              <select name="exp_month" id="exp_month">
                                    <option value=""><?php echo getLang('Month'); ?></option>
                                    <option value="1">Jan</option>
                                    <option value="2">Feb</option>
                                    <option value="3">Mar</option>
                                    <option value="4">Apr</option>
                                    <option value="5">May</option>
                                    <option value="6">Jun</option>
                                    <option value="7">Jul</option>
                                    <option value="8">Aug</option>
                                    <option value="9">Sep</option>
                                    <option value="10">Oct</option>
                                    <option value="11">Nov</option>
                                    <option value="12">Dec</option>
                              </select>
                              <select name="exp_year" id="exp_year">
                                 <option value=""><?php echo getLang('Year'); ?></option>
                                    <?php for($i=date('Y');$i<date('Y')+50;$i++){ ?>
                                       <option value="<?php echo $i; ?>"><?php echo $i; ?></option>
                                    <?php } ?>  
                             </select>
                           <!--<input type="text" size="2" data-stripe="exp_year" placeholder="Enter Year">-->
                         </div>
                        
                         <div class="form_group cvc">
                       
                             <label><?php echo getLang('CVC'); ?></label>
                             <input type="text" size="4" name="card_cvc" id="card_cvc" placeholder="<?php echo getLang('Enter_CVC'); ?>">
                          
                         </div>
                         <div class="text_center margin_top30">
                              <button type="submit" class="btn_gold" id="Pay"><?php echo getLang('Pay'); ?></button>
                           </div>
                         <!--<input type="submit" class="bigbutton" value="Submit Payment">-->
                      </div>
                      </form>
                      
                    </div>



                    <div class="payBox" >                   
                      <span class="payimg"> <img class="brightImg" src="images/bank_trasfer.png" alt="" height="60"></span>
                      <h4><?php echo getLang('Pay_by_Bank_Transfer'); ?></h4>
                      <button type="button" class="btn_grey payNow" data-id="2"><?php echo getLang('pay_Now'); ?></button>
                      <div class="banktransferInvoice" style="display:none">
                        <div class="downloadInvoicePDF printInvoice"><a href="#" target="_blank"><span><i class="fa fa-file-pdf-o"></i></span></a></div>
                        <div class="printInner" id="printInner">
                        <p><?php echo getLang('Please_transfer_the_full_amount_of'); ?> <span class="total">EUR 3,720</span> <?php echo getLang('to_the_bank_accunt_below'); ?></p><br>
                         <p><strong><?php echo getLang('Invoice_Number'); ?>:</strong> <span class="invoiceID"></span></p>
                         <p><strong><?php echo getLang('Generated_On'); ?>:</strong> <?php echo date('Y-m-d',time());?></p>
                         <p><strong><?php echo getLang('Due_to'); ?>:</strong> <?php echo date('Y-m-d',strtotime("+5 days"));?></p>
                         <p><strong><?php echo getLang('Outstanding_Amount'); ?>: </strong><span class="total">3,720 EUR</span></p>
                         <br>
                         <strong><?php echo getLang('Bank_Details'); ?>:</strong>
                         <br>
                         <p><strong>IBAN:</strong> CH810023123110716660E</p>
                         <p><strong><?php echo getLang('Clearing'); ?>:</strong> 231</p>
                         <p><strong>Swift:</strong> UBSWCHZH80A</p>
                         <p><strong><?php echo getLang('Payment_Reason'); ?>:</strong> <span class="invoiceID"></span></p>
                         <p><strong><?php echo getLang('Amount'); ?>:</strong> <span class="total"></span></p>
                         <p><strong><?php echo getLang('Bank'); ?>:</strong> UBS, Bahnhofstrasse 1, 5000 Aarau, Switzerland</p>
                         <p><strong><?php echo getLang('Recipient'); ?>:</strong> <?php echo $site_address_name['value']; ?>, <?php echo $site_address_city['value']; ?>, <?php echo $site_address_country_zip['value']; ?></p>
                        </div> 
                      </div>
                    </div>

                    

                  </div>  
                  <div id="bookingStep7" style="display:none">
                     <div class="entryBox thikGoldBorder">                   
                      <div class="entrycontent">
                        <h4 class="text_white"><?php echo getLang('Thanks_For_your_payment'); ?></h4>
                        <p class="bold_text text_gold"><?php echo getLang('We_have_sent_you_an_invoice'); ?></p>
                        <p class="text_gold"><?php echo getLang('Should_you_did_not_received_any_mail'); ?>.</p>                     
                      </div>
                    </div>
                  </div>  
                 
                 <input type="hidden" id="totalPrice" value="0">
                 <!--Reservation-->
                 <?php $setting = getValue('sys_settings', array('key'=>'reservation_fee')); 
                 $reservation_fee = 0;
                 if($this->session->userdata('user_id')){ 
                    if($this->session->userdata('user_id') == '25267' || $this->session->userdata('user_id') == '11330'){
                      $reservation_fee = $setting ? $setting['value'] : 0;
                    }
                  }
                 if($reservation_fee > 0) {
                 ?>
                 <section class="reservation_section" style="display: none;">
                    <div class="reservation_blocks">
                    <h2><?php echo getLang('please_select_the_desired_payment_method'); ?></h2>
                      <div class="reservation_blocks reservation_section-black">
                        <div class="reservationSectionBox">
                         <h3>SAVE YOUR ENTRY WITH A <?php echo $reservation_fee; ?>% DEPOSIT</h3>
                         <span class="sectionentryDetails"></span>
                         <span class="reservation_row reservation_row-whitetext"><p>Deposit <span class="40depositDetails"></span></p></span>
                         <span class="reservation_row"><p>Rest payment at arrival <span class="restDetails"></span></p></span>
                         <span class="sectiondiscount"></span>
                         <button type="button" id="reservation_btn" class="btn_gold margin_top30" data-value="0">MAKE RESERVATION NOW</button>
                       </div>
                      </div>
                      <div class="mainSectionBox">
                         <span class="sectionentryDetails"></span>
                         <span class="sectiondiscount"></span>
                         <span class="reservation_row reservation_row-whitetext"><p><?php echo getLang('Total'); ?> <span class="sectiontotal">Eur 2,000</span></p></span>
                         <button type="button" id="main_btn" class="btn_gold margin_top30">BOOK NOW</button>
                      </div>
                    </div>

                    
                 </section>
                 <?php } ?>
                 <!--Reservation-->
                 <div class="paymentBox" style="display:none">
                   <span class="entryDetails"></span>
                   <span class="roomDetails"></span>
                   <span class="extraDetails"></span>
                   <span class="limousineDetails"></span>
                   <span class="discount"></span>
                   <p><?php echo getLang('Total'); ?> <span class="total">Eur 2,000</span></p>
                   <!--Reservation-->
                   <span class="reservation_row-whitetext" style="display: none;"><p><span style="color: #DDDDDD">Pay deposit now</span><span class="40depositDetailsMain"></span></p></span>
                   <span class="" style="display: none;"><p>Rest payment at arrival <span class="restDetailsMain"></span></p></span>
                   <!--Reservation-->
                   <span id="terms-error" style="color:red"></span>  
                   <p id="terms" style="display:none"><label><input type="checkbox" name="terms"> <?php echo getLang('I_have_read__understood_and_agree_the'); ?> <a href="<?php echo base_url().'terms'; ?>" target="_blank"><?php echo getLang('terms_and_conditions'); ?>.</a></label></p>                 
                   <button type="button" id="cancel" class="btn_grey margin_top30"><?php echo getLang('cancel'); ?></button>                  
                   <button type="button" id="booking_complete_1" class="btn_gold margin_top30"><?php echo getLang('Book_party'); ?></button>
                   
                 </div>
                 <div></div>

               </div> 
               
             </div>

             <div class="stickyActionwrapper sticky clearfix" id="sticky">
                <a href="javascript:void(0)" class="btngoldenStick" id="bookPartyNewButton"><?php if($this->session->userdata('user_id')){ echo getLang('Book_party'); } else { echo getLang('Register_Now'); } ?></a>
             </div>
</section>    

    
<?php if($side_events){ ?>
<section class="new-party-arousel">
  <h4 class="new-party-title"><?php echo getLang('Expand_your_stay_with_impressive_memories'); ?> <span>| 
   <?php if($is_booked==1){ ?>
   <a href="<?php echo  base_url().'side_events/'.$partyDetails['alias']; ?>"><?php echo getLang('Contact_Us'); ?></a>
   <?php }else{ ?>
   <a href="javascript:void()" class="con_side_login"><?php echo getLang('Contact_Us'); ?></a>
   <label class="err_side_eve" style="margin-left: 30px; display:none;"><?php echo getLang('Before_choosing_side_events_please_book'); ?></label>
   <?php } ?>
  </span></h4>
   <div id="party-memory" class="itemsScaleUp-true owl-carousel owl-theme">  
   <?php foreach ($side_events as $key => $value) { ?>
          <div class="item <?php if(count($side_events)<3){ echo 'show_content'; }?>">
            <a href="<?php if($value['link']){ echo $value['link'];}else{ echo 'javascript:void(0)'; } ?>" target="_new">
             <img src="<?php echo base_url().$value['image']; ?>" alt="">
             <div class="label">
               <p class="party-memory-title"><span><?php echo $value['title']; ?> </span>  <br/>
               <?php echo $value['sub_title']; ?></p>
               <?php if($value['link']){ ?>
               <p class="party-link"><?php echo $value['link']; ?> <img src="<?php echo  base_url().'assets/images/link-symbol.svg'; ?>" width="20"></p>
               <?php } else { ?>
                  <?php if($is_booked==1){ ?>
                    <p class="party-link"><a href="<?php echo  base_url().'side_events/'.$partyDetails['alias']; ?>"><?php echo getLang('Book_Event'); ?></a></p>
                  <?php } else { ?>
                    <p class="party-link"><?php echo getLang('Book_after_check_in'); ?></p>
                  <?php } ?>
               <?php } ?>
             </div>
             <div class="party-description">
               <p><?php if(count($side_events)==1){ echo $value['description']; }else{ echo word_limiter($value['description'],40); } ?></p>
             </div>
            </a> 
          </div>
   <?php } ?>
   </div>
</section> 
<?php } ?>   