<div class="content-wrapper">
 <section class="content-header">
  <h1>
    <?= $page_title ?>
    <small><?= $page_desc ?></small>
  </h1>
  <ol class="breadcrumb">
   <li><a href="<?= base_url() ?>"><i class="fa fa-star-o" aria-hidden="true"></i>Home</a></li>
   <li>Driver</li>
   <li class="active">Edit Driver</li>
 </ol>
</section>
<section class="content">
  <div class="row">
   <div class="col-md-12">
      <?php if($this->session->flashdata('message')) { 
        $flashdata = $this->session->flashdata('message'); ?>
        <div class="alert alert-<?= $flashdata['class'] ?>">
         <button class="close" data-dismiss="alert" type="button">×</button>
         <?= $flashdata['message'] ?>
       </div>
     <?php } ?>
   </div>
  <div class="col-md-12">
  <div class="box box-warning">
   <div class="box-header with-border">
     <div class="col-md-6"><h3 class="box-title">Admin Details</h3></div>
     <div class="col-md-6" align="right">
        <a class="btn btn-sm btn-primary" href="<?= base_url('Staffs/editStaff/'.$user_id.'/viewProfile') ?>">Edit</a>
        <a class="btn btn-sm btn-primary" href="<?= base_url() ?>">Back</a>
     </div>
   </div>
   <div class="box-body">
    <div>
      <div class="col-md-2">
        <div class="form-group has-feedback">
         <img src="<?= base_url($user_data->profile_image) ?>" onerror="this.src='<?=base_url("assets/images/user_avatar.jpg")?>';" height="100" width="100" />
       </div>
     </div>
     <div class="col-md-6">
       <div class="form-group has-feedback">
         <span style="padding-right: 52px;">Name </span> :
         <label style="padding-left: 10px;" for="exampleInputEmail1">
           <?= $user_data->display_name ?> 
         </label>
      </div> 
       <div class="form-group has-feedback">
         <span style="padding-right: 22px;">User Name </span> :
         <label style="padding-left: 10px;" for="exampleInputEmail1">
          <?= $user_data->user_name ?>
         </label>
      </div> 
      <div class="form-group has-feedback">
       <span style="padding-right: 28px;">User Type </span> :
       <label style="padding-left: 10px;" for="exampleInputEmail1"><?= $user_data->user_type ?></label>
     </div> 
   </div>
  </div>
</div>
</div>
</section>
</div>
