<?php defined('BASEPATH') or exit('No direct Access is Allowed'); ?>

 <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            User Profile
          </h1>
          <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Dashboard</a></li>
            <li><a href="#">Manage Profile</a></li>
            <li class="active">Admin profile</li>
          </ol>
        </section>

        <!-- Main content -->
        <section class="content">
          <div class="row">
            <div class="col-md-3">

              <!-- Profile Image -->
              <div class="box box-primary">
                <div class="box-body box-profile">
                  <?php //$img_property_logo=['src'=>'assets/dist/img/user2-160x160.jpg','alt'=>'User profile picture','class'=>'profile-user-img img-responsive img-circle'];?>
          	  	  <?php //img($img_property_logo);?>
          	  	  <?php if(preg_match ('./',$userdata->profile_image) && ($userdata->profile_image!="")){
                            echo img(array("src"=>base_url($userdata->profile_image),"class"=>"img-user img-circle img-responsive",
                            "style"=>"width:93px;"));
                        }
                        else if(!preg_match ('./',$userdata->profile_image) && ($userdata->profile_image!="") ){
                            echo img(array("src"=>$userdata->profile_image,"class"=>"img-user img-circle img-responsive",
                            "style"=>"width:93px;"));
                        }
                        else {
                            echo img(array("src"=>"assets/easy-admin/images/user-img.png","class"=>"img-user img-circle img-responsive",
                            "style"=>"width:93px;"));
                        }
                        ?>
                  <h3 class="profile-username text-center"><?=ucfirst($userdata->first_name).nbs(2).ucfirst($userdata->last_name)?></h3>
                  <p class="text-muted text-center">
                 	<a href="<?=site_url('admin/adminlte/upload_profile');?>"><i class="fa fa-fw fa-user-secret"></i> <span>Upload Profile</span></a>
                 </p>
                  
                </div><!-- /.box-body -->
              </div><!-- /.box -->
            </div><!-- /.col -->
            <div class="col-md-9">
              <div class="nav-tabs-custom">
                <ul class="nav nav-tabs">
                  <li ><a href="#settings" data-toggle="tab">Account Details</a></li>
                </ul>
                <div class="tab-content">
              		
                  <div class="active tab-pane" id="settings">
                     <div class="form-group">
						<?php echo form_label('First Name','activity',['for'=>'activity']);?>
                        <?php echo form_input('fname',strtoupper($userdata->first_name),['class'=>'form-control','disabled'=>'disabled']);?>
                     </div>
                      
                     <div class="form-group">
						<?php echo form_label('Last Name','activity',['for'=>'activity']);?>
                        <?php echo form_input('fname',strtoupper($userdata->last_name),['class'=>'form-control','disabled'=>'disabled']);?>
                     </div>
                      
                      <div class="form-group">
						<?php echo form_label('Email','activity',['for'=>'activity']);?>
                        <?php echo form_input('fname',strtoupper($userdata->email),['class'=>'form-control','disabled'=>'disabled']);?>
                     </div>
                      
                      <div class="form-group">
						<?php echo form_label('Designation','activity',['for'=>'activity']);?>
                        <?php echo form_input('fname',strtoupper($userdata->designation),['class'=>'form-control','disabled'=>'disabled']);?>
                     </div>
                      
                     <!--  <div class="form-group">
						<?php echo form_label('Role','Role',['for'=>'Role']);?>
                        <?php echo form_input('fname',strtoupper($userdata->user_type),['class'=>'form-control','disabled'=>'disabled']);?>
                     </div>-->
                     
                     </div>
                    
                  </div><!-- /.tab-pane -->
                </div><!-- /.tab-content -->
                
              </div><!-- /.nav-tabs-custom -->
            </div><!-- /.col -->
          </div><!-- /.row -->
        </section><!-- /.content --> 
      </div><!-- /.content-wrapper -->
     
 <script src="<?=DOCUMENT_ROOT?>plugins/fastclick/fastclick.min.js"></script>