<div>
<hr class="">
<div class="container target">
    <div class="row">
      <div style="margin: 10px;" class="col-sm-2"><a href="#" class="pull-middle">
        <?php 
        // var_dump($userdata["img"]);
        // die();
            if(empty($userdata["img"])){
                echo "<img class='img-circle img-responsive' src='https://softvilla.com.pk/demovilla/edusolutions/edusolution/./images/avatar.png'>";
                   
                }
                else{ ?>
                    <img class='img-circle img-responsive' src='https://softvilla.com.pk/demovilla/edusolutions/edusolution/<?php echo $userdata['img'];?>'>;
                <?php } ?>
        </a>
        </div>
        <div class="col-sm-9 col-xs-12">
             <div class="row">
             <h1 style="margin-left:50px;margin-top:40px;font-size: 25px;" class="col-sm-2 "><?php echo $userdata['cadet_name']; ?></h1>
            </div>
            <!--<div class="row">-->
            <!--<a style="margin-top: 10px;" href="<?php //echo site_url() ?>user/update_password"><button style="margin-left: 50px;background: #585858" type="button"  class="col-sm-2 col-xs-8 btn btn-info">Update Password</button></a>-->
            <!--</div>-->
            <br>
        </div>
     
    </div>
  <br>
    <div class="row">
        <div class="col-sm-3 col-xs-12">
            <!--left col-->
            <ul class="list-group">
                <li class="list-group-item text-muted" style="background:#DF3D82;color:white;font-weight: bold;" contenteditable="false">Profile</li>
                <br>
                <li class="list-group-item text-right"><span class="pull-left"><strong class="">Father Name</strong></span><?php echo $userdata['father_name']; ?></li>
                <br>
                <li class="list-group-item text-right"><span class="pull-left"><strong class="">City</strong></span><?php echo empty($userdata['city']) ? "Not Available" :  $userdata['city']; ?></li>
                <br>
                <li class="list-group-item text-right"><span class="pull-left"><strong class="">Gr No.</strong></span><?php echo $userdata['grno']; ?></li>
                <br>
                <li class="list-group-item text-right"><span class="pull-left"><strong class="">Contact #</strong></span> <?php echo $userdata['cadet_contact']; ?></li>
            </ul>
        </div>
        <!--/col-3-->
        <div class="col-sm-9 col-xs-12" style="" contenteditable="false">
            <div class="panel panel-default">
                <div style="background:#A8CD1B;color:white;font-weight: bold;" class="panel-heading">Address</div>
                <div class="panel-body"> <?php echo $userdata['permanent_address']; ?>

                </div>
            </div>

            <div class="panel panel-default">
                <div style="background:darkcyan;color:white;font-weight: bold;" class="panel-heading">Language</div>
                <div class="panel-body"> <?php echo $userdata['mother_tongue']; ?>

                </div>
            </div>
            </div>
                     
            </div>
                 
        </div>
              
   </hr>
</div>