<?  global $vis_language;?>  
      <?php if(count($conversations)>0){ ?>
<form name="vis_<?php echo $operation['vis_operation']; ?>_form" id="vis_<?php echo $operation['vis_operation']; ?>_form">

   <input type="hidden" name="vis_current_operation" value="<?php echo $operation['vis_current_operation']; ?>" />
         <div class="table-responsive scroll-x" >
            <table class="table table-hover b-t b-light m-b-none" data-ride="datatables">
               <thead class="table_head">
                  <tr>
                     <!--<th>
                        <div class="btn-group">
                           <label class="checkbox m-n m-r-sm i-checks"  style="float: left;"><input type="checkbox"><i></i></label>		
                        </div>
                     </th>-->
                     <th width="25%"><? echo $vis_language['TXTVISITORNAME']; ?></th>   
                     <th class="txt_nowrap"><? echo $vis_language['TXTVISITOREMAIL'];?></th>
					 <th class="txt_nowrap"><? echo $vis_language['TXTMESSAGE'];?></th>
                    <th class="txt_nowrap"><? echo $vis_language['TXTCREATEDATE'];?></th>
					 
                  </tr>
               </thead>
               <tbody>
                  <? 
                   for($i=0;$i<count($conversations['data']);$i++)
						{	     
							echo '<tr>'; 
							echo '</td>';		
							echo '<td class="txt_nowrap"><a href="#/chat/crisp_chatdetail/'.$operation['vis_website_id'].'/'.$conversations['data'][$i]['session_id'].'">'.$conversations['data'][$i]['meta']['nickname'].'</a></td>';
							echo '<td class="txt_nowrap"><a href="#/chat/crisp_chatdetail/'.$operation['vis_website_id'].'/'.$conversations['data'][$i]['session_id'].'">'.$conversations['data'][$i]['meta']['email'].'</a></td>';
							echo '<td class="txt_nowrap"><a href="#/chat/crisp_chatdetail/'.$operation['vis_website_id'].'/'.$conversations['data'][$i]['session_id'].'">'.$conversations['data'][$i]['last_message'].'</a></td>';
							echo '<td><a href="#/chat/crisp_chatdetail/'.$operation['vis_website_id'].'/'.$conversations['data'][$i]['session_id'].'">'.format_datetime(substr(($conversations['data'][$i]['created_at']),0,-3)).'</a></td>';
						  
							echo '</tr>';  
									 
						}  
					 ?>    
		       </tbody>
            </table>
             </div>
      
   </form>
<? }   