view-customers.php 5.81 KB
<div class="content-wrapper" >
   <!-- Content Header (Page header) -->
   <section class="content-header">
      <h1>
         Customer Details
      </h1>
      <ol class="breadcrumb">
         <li><a href="#"><i class="fa fa-male"></i>Home</a></li>
         <li class="active"> Customer Details</li>
      </ol>
   </section>
   <!-- Main content -->
   <section class="content">
      <div class="row">
         <div class="col-xs-12">
            <?php
               if($this->session->flashdata('message')) {
					$message = $this->session->flashdata('message');
              ?>
            <div class="alert alert-<?php echo $message['class']; ?>">
               <button class="close" data-dismiss="alert" type="button">×</button>
               <?php echo $message['message']; ?>
            </div>
            <?php
               }
               ?>
         </div>
         <div class="col-xs-12">
            <!-- /.box -->
            <div class="box">
               <div class="box-header">
                  <h3 class="box-title"> Customer Details</h3>
               </div>
               <!-- /.box-header -->
               <div class="box-body">
                  <table class="table table-bordered table-striped datatable">
                     <thead>
                        <tr>
                           <th class="hidden">ID</th>
                            <th>Name</th>
                           <th>Email</th> 
                            <th>Phone Number</th>
                             <th>Gender</th> 
                              <th>Goverment Id</th>                              
                           <th>Action</th>
                        </tr>
                     </thead> 
                     <tbody>
                        <?php
                           foreach($data as $users) {
                           // $users->id);
                           			 
                           ?>
                        <tr>
                           <td class="hidden"><?php echo $users->id; ?></td>
                           <td class="center"><?php echo $users->first_name; ?></td>                         
                           <td class="center"><?php echo $users->email; ?></td>
                           <td class="center"><?php echo $users->phone_no; ?></td>						                          
                           <td class="center"><?php echo $users->gender; ?></td>
                           <td class="center">
                            <?php  if($users->verifiedstatus=='0'){echo "Not Uploaded";} 
                                  else if($users->verifiedstatus=='1'){echo "Verified";} 
                                  else if($users->verifiedstatus=='2'){echo "Pending";} 
                                  else if($users->verifiedstatus=='3'){echo "Rejected";} 
                                   else if($users->verifiedstatus=='4'){echo "Uploaded";}
                                  ?>
                             
                           </td>                          
                           <td class="center">	                           
<!--                               <a class="btn btn-sm bg-olive show-patientdetails"  href="javascript:void(0);"  data-id="<?php echo $users->id; ?>">
 -->                             
                              <a class="btn btn-sm bg-olive show-customerdetails"  href="javascript:void(0);"  data-id="<?php echo $users->id; ?>">

                               <i class="fa fa-fw fa-eye"></i> View </a>


             <!--                 <a class="btn btn-info btn-sm" href="<?php echo base_url(); ?>Customer/edit_customer/<?php echo $users->id; ?>">
                <i class="glyphicon glyphicon-edit icon-white"></i>
                Edit
            </a> -->

                              <a class="btn btn-sm btn-primary" href="<?php echo base_url();?>Customer/upload_goverment/<?php echo $users->id; ?>" >
                              <i class="fa fa-fw fa-edit"></i>Upload GovermentId</a> 

                              <a class="btn btn-sm btn-danger" href="<?php echo base_url();?>Customer/delete_customer/<?php echo $users->id; ?>" onClick="return doconfirm()">
                              <i class="fa fa-fw fa-trash"></i>Delete</a>							
                           </td>
                        </tr>
                        <?php
                           }
                           ?>
                     </tbody>
                     <tfoot>
                        <tr>
                           <th class="hidden">ID</th>
                            <th>Name</th>
                           <th>Email</th> 
                            <th>Phone Number</th>
                             <th>Gender</th>                        
                           <th>Action</th>
                        </tr>
                     </tfoot>
                  </table>
               </div>
               <!-- /.box-body -->
            </div>
            <!-- /.box -->
         </div>
         <!-- /.col -->
      </div>
      <!-- /.row -->
   </section>
   <!-- /.content -->
</div>
<div class="modal fade modal-wide" id="popup-patientModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"aria-hidden="true">
   <div class="modal-dialog">
      <div class="modal-content">
         <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title">View Customer Details</h4>
         </div>
         <div class="modal-patientbody">
         </div>
         <div class="business_info">
         </div>
         <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
         </div>
      </div>
      <!-- /.modal-content -->
   </div>
   <!-- /.modal-dialog -->
</div>