

<div class="">
					<h3>Invitation<span class="round-search"><?php echo PageContext::$response->invitationCount; ?></span></h3>
          <table class="invitation_tbl invt_list_tbl">
							<thead>
              <tr>
                <th>Sender Name</th>
                <th>Status</th>
                <th>Sent On</th>
                <th>Received By</th>
              </tr>
              </thead>
               				 <tbody>
					<?php if (PageContext::$response->invitationCount > 0){ ?>
                                         <?php 
												$slno = 1;
										 ?>
                                         <?php ?>
                    <?php foreach (PageContext::$response->invites as $inv){ ?>
                      <tr>
      <td><?php echo $slno.') ';if ($inv->invitation_sender_id == 0){?>-<?php }else{ echo $inv->user_firstname.' '.$inv->user_lastname; } ?></td>
      <td><?php if ($inv->invitation_status=='A'){ echo 'Accepted'; }elseif($inv->invitation_status == 'R'){ echo 'Rejected'; }elseif($inv->invitation_status == 'P'){ echo 'Pending'; }elseif($inv->invitation_status == 'DJ'){ echo 'Left Group'; } ?></td>
      <td><?php echo date("m/d/Y",strtotime($inv->invitation_created_on));?></td>
      <td><?php if ($inv->invitation_receiver_email==''){?>-<?php }else{ echo $inv->invitation_receiver_email;  } ?></td>
    </tr>

							

               				 <?php $slno++;?>
                   <?php }?>
                    <?php }else{?>
                    <tr><td colspan="4"><?php if(PageContext::$response->searchtype==''){?>No Invitations have been sent.<?php }else{?>No matches found.<?php } ?></td></tr>
                   <?php }?>	
                   </tbody>	
				
        </table>
				</div>