<div class="row">

                          <div class="col-md-4" >

                            <table width="100%"  class="responsive">
                            
                              <tr>
                              <th colspan="2" style="background-color:#00AFEF;color:white;" width="100%"> Personal Information </th>
                              </tr>
                            
                              <tr>
                              <th class="tdStyle" width="40%"> Student Name: </th>
                  <td class="tdStyle" width="60%"> <?php  if($WorkAssignListVal[0]['first_name']!=NULL){echo $WorkAssignListVal[0]['first_name'];}else {echo "--";};?> </td>
                              </tr>

                              <tr>
                              <th class="tdStyle" width="40%"> Father Name: </th>
                  <td class="tdStyle" width="60%"> <?php  if($WorkAssignListVal[0]['last_name']!=NULL){echo $WorkAssignListVal[0]['last_name'];}else {echo "--";};?> </td>
                              </tr>

                       <tr>
                              <th class="tdStyle" width="40%"> Ref No: </th>
                  <td class="tdStyle" width="60%"> <?php  if($WorkAssignListVal[0]['ref_no']!=NULL){echo $WorkAssignListVal[0]['ref_no'];}else {echo "--";};?> </td>
                              </tr>

            
       
                              <tr>
                              <th class="tdStyle" width="30%"> Religion: </th>
                  <td class="tdStyle" width="70%"> <?php  if($WorkAssignListVal[0]['religion']!=NULL){echo $WorkAssignListVal[0]['religion'];}else {echo "--";};?> </td>
                              </tr>


                              <tr>
                              <th class="tdStyle" width="30%"> Cast: </th>
                  <td class="tdStyle" width="70%"> <?php  if($WorkAssignListVal[0]['cast']!=NULL){echo $WorkAssignListVal[0]['cast'];}else {echo "--";};?> </td>
                              </tr>

                              <tr>
                              <th class="tdStyle" width="30%"> Gender: </th>
                  <td class="tdStyle" width="70%"> <?php  if($WorkAssignListVal[0]['gender']!=NULL){echo $WorkAssignListVal[0]['gender'];}else {echo "--";};?> </td>
                              </tr>


                              <tr>
                              <th class="tdStyle" width="40%"> Date of Birth: </th>
                  <td class="tdStyle" width="60%"> <?php  if($WorkAssignListVal[0]['dob']!=NULL){echo $WorkAssignListVal[0]['dob'];}else {echo "--";};?> </td>
                              </tr>


                              <tr>
                              <th class="tdStyle" width="40%"> Form-B No: </th>
                  <td class="tdStyle" width="60%"> <?php  if($WorkAssignListVal[0]['formBNo']!=NULL){echo $WorkAssignListVal[0]['formBNo'];}else {echo "--";};?> </td>
                              </tr>


                              <tr>
                              <th class="tdStyle" width="40%"> Gaurdian Name: </th>
                  <td class="tdStyle" width="60%"> <?php  if($WorkAssignListVal[0]['gardian_name']!=NULL){echo $WorkAssignListVal[0]['gardian_name'];}else {echo "--";};?> </td>
                              </tr>


                              <tr>
                              <th class="tdStyle" width="40%"> Gaurdian CNIC: </th>
                  <td class="tdStyle" width="60%"> <?php  if($WorkAssignListVal[0]['cnic']!=NULL){echo $WorkAssignListVal[0]['cnic'];}else {echo "--";};?> </td>
                              </tr>


                            <tr>
                              <th class="tdStyle" width="30%"> Roll No : </th>
                  <td class="tdStyle" width="70%"> <?php  if($WorkAssignListVal[0]['candidate_roll_no']!=NULL){echo $WorkAssignListVal[0]['candidate_roll_no'];}else {echo "--";};?> </td>
                              </tr>



                              <tr>
                              <th class="tdStyle" width="30%"> Admission Date: </th>
                  <td class="tdStyle" width="70%"> <?php  if($WorkAssignListVal[0]['date_of_adms']!=NULL){echo $WorkAssignListVal[0]['date_of_adms'];}else {echo "--";};?> </td>
                              </tr>




                            </table>

                           </div>


                        

                          <div class="col-md-5" >

                            <table width="100%"  class="responsive">


                              <tr>
                              
                              <th colspan="2" style="background-color:#00AFEF;color:white;" width="100%"> Academic Information  </th>
                              </tr>


          
                              <tr>
                              <th class="tdStyle" width="30%"> Session: </th>
                  <td class="tdStyle" width="70%"> <?php  if($session[0]['session_year']!=NULL){echo $session[0]['session_year'];}else {echo "--";};?> </td>
                              </tr>

                  <tr>
                              <th class="tdStyle" width="30%"> Class Admitted : </th>
                  <td class="tdStyle" width="70%"> <?php  if($classadm[0]['Class_Name']!=NULL){echo $classadm[0]['Class_Name'];}else {echo "--";};?> </td>
                              </tr>


                          <tr>
                              <th class="tdStyle" width="30%"> Class : </th>
                  <td class="tdStyle" width="70%"> <?php  if($class[0]['Class_Name']!=NULL){echo $class[0]['Class_Name'];}else {echo "--";};?> </td>
                              </tr>                   


                              <tr>
                              <th class="tdStyle" width="30%"> Section : </th>
                  <td class="tdStyle" width="70%"> <?php  if($section[0]['section_name']!=NULL){echo $section[0]['section_name'];}else {echo "--";};?> </td>
                              </tr>




                              <tr>
                              <th class="tdStyle" width="30%"> Previous Class : </th>
                  <td class="tdStyle" width="70%"> <?php  if($WorkAssignListVal[0]['old_class']!=NULL){echo $WorkAssignListVal[0]['old_class'];}else {echo "--";};?> </td>
                              </tr>




                              <tr>
                              <th class="tdStyle" width="30%"> Prev.Institute : </th>
                  <td class="tdStyle" width="70%"> <?php  if($WorkAssignListVal[0]['old_school']!=NULL){echo $WorkAssignListVal[0]['old_school'];}else {echo "--";};?> </td>
                              </tr>




                              <tr>
                              <th class="tdStyle" width="30%"> Previous Total : </th>
                  <td class="tdStyle" width="70%"> <?php  if($WorkAssignListVal[0]['old_tmarks']!=NULL){echo $WorkAssignListVal[0]['old_tmarks'];}else {echo "--";};?> </td>
                              </tr>




                              <tr>
                              <th class="tdStyle" width="30%"> Previous Obtained : </th>
                  <td class="tdStyle" width="70%"> <?php  if($WorkAssignListVal[0]['old_obtmarks']!=NULL){echo $WorkAssignListVal[0]['old_obtmarks'];}else {echo "--";};?> </td>
                              </tr>



                              <tr>
                              
                              <th colspan="2" style="background-color:#00AFEF;color:white;" width="100%">Contact & Address Information  </th>
                              </tr>



                              <tr>
                              <th class="tdStyle" width="30%"> Cell No: </th>
                  <td class="tdStyle" width="70%"> <?php  if($WorkAssignListVal[0]['cell_no']!=NULL){echo $WorkAssignListVal[0]['cell_no'];}else {echo "--";};?>  </td>
                              </tr>

                              <tr>
                              <th class="tdStyle" width="30%"> Email: </th>
                  <td class="tdStyle" width="70%"> <?php  if($WorkAssignListVal[0]['email']!=NULL){echo $WorkAssignListVal[0]['email'];}else {echo "--";};?> </td>
                              </tr>

                              <tr>
                              <th class="tdStyle" width="30%"> Address: </th>
                  <td class="tdStyle" width="70%"> <?php  if($WorkAssignListVal[0]['address']!=NULL){echo $WorkAssignListVal[0]['address'];}else {echo "--";};?> </td>
                              </tr>


                              <tr>

<?php 

  
  $m->where("Country_Id", $WorkAssignListVal[0]['Country_Id']);
  $country =  $m->get('eduportal_country_config', $data);

  $m->where("State_Id", $WorkAssignListVal[0]['State_Id']);
  $state =  $m->get('eduportal_state_config', $data);

  $m->where("City_Id", $WorkAssignListVal[0]['City_Id']);
  $city =  $m->get('eduportal_city_config', $data);

 
  $m->where("session_id", $WorkAssignListVal[0]['session_id']);
  $session=$m->get("edu_session_config");  
?>


                              <th class="tdStyle" width="30%"> Location: </th>
                               <td class="tdStyle" width="70%"> 

                     <?php  if($city[0]['City_Name']!=NULL){echo $city[0]['City_Name'];}else {echo "--";};?>, 
                      <?php  if($state[0]['State_Name']!=NULL){echo $state[0]['State_Name'];}else {echo "--";};?>
                     
                              </td>
                              </tr>



                            </table>

                           </div>


                          <div class="col-md-3" style="text-align:right;" >

                          
   <?php if($WorkAssignListVal[0]['image']!=NULL){ ?>
      
      <img src="<?php echo DOMAIN.AgentDirectory;?>/students_pics/<?php echo $WorkAssignListVal[0]['image'];?>" id="preview" class="img-thumbnail" style="width:180px;height:190px;"   />

   <?php }else { ?>   

       <img src="<?php echo DOMAIN;?>Production/images/upload.png" id="preview" height="170px" class="img-thumbnail" width="180px"  />


   <?php } ?> 

                           </div>





                        </div> <!--ending tab div -->