<section id="profile" class="content_wrapper innerPage">
    <div class="container clearfix">
         <div class="invoice-row">
           <div class="bookings tab-div" >
              <h2><?php echo getLang('Display_of_your_party_participations'); ?></h2>
             <table style="width:100%">  
             <?php if(!empty($invoices)) {
                   foreach ($invoices as $value) { ?>
             <tr>
               <td><span class="name"><?php echo $value['title']; ?></span> <?php echo $value['name']; ?></td>
               <td>
                <?php 
                  $getStatus = getValue('user_to_event',array('user_id'=>$this->session->userdata('user_id'),'event_id'=>$value['event_id']));
                  $check = 0;
                  if($getStatus)
                  {
                    if($getStatus['status']==1)
                    {
                      $check = 1;
                    }
                  }
                ?>
                  <?php if($check==0){ ?>
                    <a onclick="return confirm('<?php echo getLang('hide_this_party_in_my_profile');?>')" href="<?php echo  base_url().'profile/show_participation/'.base64_encode($value['event_id']); ?>/1" class="pay-bttn participation-btn"><i class="fa fa-eye"></i></a>
                  <?php }else{ ?>
                    <a onclick="return confirm('<?php echo getLang('show_this_event_in_my_profile');?>')" href="<?php echo  base_url().'profile/show_participation/'.base64_encode($value['event_id']); ?>/2" class="pay-bttn participation-btn"><i class="fa fa-eye-slash"></i></a>
                  <?php } ?>
               </td>
             </tr>
             <?php } } ?> 

             <?php if(!empty($old_invoices)) {
                   foreach ($old_invoices as $value) { ?>
             <tr>
               <td><span class="name"><?php echo $value['title']; ?></span> <?php echo $value['name']; ?></td>
               <td>
                  <?php 
                  $getStatus = getValue('user_to_event',array('user_id'=>$this->session->userdata('user_id'),'event_id'=>$value['event_id']));
                  $check = 0;
                  if($getStatus)
                  {
                    if($getStatus['status']==1)
                    {
                      $check = 1;
                    }
                  }
                ?>
                  <?php if($check==0){ ?>
                    <a onclick="return confirm('<?php echo getLang('hide_this_party_in_my_profile');?>')" href="<?php echo  base_url().'profile/show_participation/'.base64_encode($value['event_id']); ?>/1" class="pay-bttn participation-btn"><i class="fa fa-eye"></i></a>
                  <?php }else{ ?>
                    <a onclick="return confirm('<?php echo getLang('show_this_event_in_my_profile');?>')" href="<?php echo  base_url().'profile/show_participation/'.base64_encode($value['event_id']); ?>/2" class="pay-bttn participation-btn"><i class="fa fa-eye-slash"></i></a>
                  <?php } ?>
               </td>
             </tr>
             <?php } } ?> 
             <?php if(empty($invoices) && empty($old_invoices)){ echo '<div class="invoiceNotFound">'.getLang('No_record_found').'</div>'; }?>
             
           </table>
           </div>
         </div>
    </div>
</section>       

<style type="text/css">
  span#order_number {
      float: left;
      border: none;
  }
  span#printSpace {
      border: none;
  }
</style>