<?php defined('BASEPATH')or exit("NO DIRECT ACCESS iS ALLOWED");?>
<?php echo $this->uri->segment(n);?>
<style>
.box {
    position: relative;
    border-radius: 3px;
    background: #ffffff;
    border-top: 3px solid #d2d6de;
    margin-bottom: 20px;
    width: 100%;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}
.box.box-primary {
    border-top-color: #faa21c;
    box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.24);
}
.box-body {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
    padding: 10px;
}
.profile-user-img {
    margin: 0 auto;
    width: 100px;
    padding: 3px;
    border: 3px solid #d2d6de;
}
.profile-username {
    font-size: 21px;
    margin-top: 5px;
}
.list-group-unbordered>.list-group-item {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
}
.content_profile{
	min-height: 250px;
    padding: 15px;
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
}
.text-aqua {
    color: #00c0ef !important;
}
.view_items{
	padding: 6px 15px;
}
.views_itemb{
   color: #333;
    font-size: 13px;
}
.nav-tabs-custom_view{
	border-top: 3px solid #faa21c;
    padding: 12px;
   margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.24);
    border-radius: 3px;
}
.mb25 {
    margin-bottom: 25px;
}
.tshadow {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #d7dfe3;
}
.bozero {
    border-top: 0 !important;
}
.pagetitleh2 {
       background: #f8f8f8;
    margin: 0;
    font-size: 16px;
    padding: 8px 14px;
    color: #000;
    /* box-shadow: 0 0px 2px rgba(0, 0, 0, 0.2); */
    /* border: 1px solid #faa21c; */
}
.pt0 {
    padding-top: 0 !important;
}
table-responsive {
    overflow-y: hidden;
}
.around10 {
    padding: 10px;
}
.tables_margin{

 margin-top: 12px;
}
td, th {
	padding: 7px 6px 7px 4px !important;
	  <!--  border: none;-->
    border-bottom: 1px solid #ccc;
}
.table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th {
    background-color: transparent;
}
.table-hovers>tbody>tr:hover {
    background-color: #f5f5f5;
}
.font_view{
	font-size: 12px;
    font-weight: bold;
}
</style>
<?php

//echo "<pre>";print_r(array($list,$list1,$list2,$list3,$list4,$qualification_li));die;

 ?>
<section class="content_profile">
<div class="row">
<div class="col-md-12">
    <div class="col-md-3">
             <div class="box box-primary">
                    <div class="box-body box-profile">
                        <!-- <img class="profile-user-img img-responsive img-circle" src="https://demo1.smart-school.in/uploads/student_images/2.jpg" alt="User profile picture"> -->
                        <?php if(preg_match ('./',$this->teacher_data->profile_image) && ($this->teacher_data->profile_image!="")){
                        echo img(array("src"=>base_url($this->teacher_data->profile_image),"class"=>"profile-user-img img-responsive img-circle changepic",
                        "style"=>"width:100px; height:100px;cursor:pointer;"));
                        }
                        else if(!preg_match ('./',$this->teacher_data->profile_image) && ($this->teacher_data->profile_image!="") ){
                        echo img(array("src"=>$this->teacher_data->profile_image,"class"=>"profile-user-img img-responsive img-circle changepic",
                        "style"=>"width:100px; height:100px;cursor:pointer;"));
                        }
                        else {echo img(array("src"=>"assets/easy-admin/images/user-img.png","class"=>"profile-user-img img-responsive img-circle changepic",
                          "style"=>"width:100px; height:100px;cursor:pointer;"));}?>
                        <h3 class="profile-username text-center"><?php echo  ucwords($list->first_name);?><?php echo  ucwords($list->last_name);?></h3>
                        <ul class="list-group list-group-unbordered">
                            <li class="list-group-item view_items">
                                <b class="views_itemb">Occupation</b> <a class="pull-right text-aqua"><?php echo  ucwords($list4->current_occupation);?></a>
                            </li>
                            <li class="list-group-item view_items">
                                <b class="views_itemb">Teaching Experience</b> <a class="pull-right text-aqua"><?php echo  ucwords($list4->total_teaching_experience);?></a>
                            </li>
                            <li class="list-group-item view_items">
                                <b class="views_itemb">Occupation Type</b> <a class="pull-right text-aqua"><?php echo  ucwords($list4->type_of_connection);?></a>
                            </li>
                            <li class="list-group-item view_items">
                                <b class="views_itemb">Download speed</b> <a class="pull-right text-aqua"><?php echo  ucwords($list4->down_internet_conn_speed);?></a>
                            </li>
                            <li class="list-group-item view_items">
                                <b class="views_itemb">Upload Speed</b> <a class="pull-right text-aqua"><?php echo  ucwords($list4->up_internet_conn_speed);?></a>
                            </li>
                            <li class="list-group-item view_items">
                                <b class="views_itemb">Association</b> <a class="pull-right text-aqua"><?php echo  ucwords($list4->association_with_gurukul);?></a>
                            </li>
                        </ul>
                    </div>
                </div>
    </div>
    <div class="col-md-9">
      <div class="nav-tabs-custom_view">
	                     <div class="tshadow mb25 bozero">
                                <h3 class="pagetitleh2">General Information</h3>
                                <div class="table-responsive around10 pt0">
                                    <table class="table table-hovers tables_margin"><tbody>
                                            <tr>
                                                <td class="font_view">First Name</td>
                                                <td><?php echo  ucwords($list->first_name);?></td>
												<td class="font_view">Last Name</td>
                                                 <td><?php echo  ucwords($list->last_name);?></td>
                                            </tr>


											<tr>
                                                <td class="font_view">Mobile</td>
                                                <td><?php echo  ucwords($list->mobile);?></td>
												<td class="font_view">Date of Birth</td>
                                                <td><?php echo  ucwords($list->dob);?></td>

                                            </tr>

											<tr>
                                                <td class="font_view">country</td>
                                               <td><?php echo  ucwords($list->countries);?></td>
												<td class="font_view">State</td>
                                                <td><?php echo  ucwords($list->cities);?></td>
                                            </tr>

											<tr>
                                                <td class="font_view">City</td>
                                                <td><?php echo  ucwords($list->states);?></td>
												<td class="font_view">Zip Code</td>
                                                <td><?php echo  ucwords($list->zip_code);?></td>

											</tr>
											<tr>
                                                <td class="font_view">Aadhar Id</td>
                                                <td><?php echo  ucwords($list->aadhar_id);?></td>
												<td class="font_view">Pan Id</td>
                                               <td><?php echo  ucwords($list->pan_id);?></td>

											</tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
							                     <div class="tshadow mb25 bozero">
                                <h3 class="pagetitleh2">Qualification Details</h3>
                                <div class="table-responsive around10 pt0">
                                    <table class="table table-hovers tables_margin"><tbody>
                                      <?php foreach($list1 as $list11){
                                        if($list11->qualification!=""){
                                        ?>
                                        <tr>
                                            <td class="font_view">Qualification</td>
                                            <td><?php echo $list11->qualification;?></td>
                                            <td class="font_view">University</td>
                                            <td><?php echo $list11->university;?></td>
                                        </tr>

                                        <tr>
                                            <td class="font_view">Passing Year </td>
                                            <td><?php echo $list11->passing_year;?></td>
                                            <td class="font_view">Grade </td>
                                            <td><?php echo $list11->grade;?></td>
                                        </tr>
                                        <?php
                                      }
                                      }?>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
							              <div class="tshadow mb25 bozero">
                                <h3 class="pagetitleh2">Preferred classes & subjects ??</h3>
                                <div class="table-responsive around10 pt0">
                                    <table class="table table-hovers tables_margin"><tbody>
                                      <?php foreach($list2 as $list21){
                                            if($list21->class!=""){
                                        ?>
                                            <tr>
                                                <td class="font_view">Classes</td>
                                                <td><?php echo $list21->class;?></td>
												                        <td class="font_view">	Primary Subject</td>
                                                <td><?php echo $list21->primary_sub;?></td>
                                            </tr>
											                       <tr>
                                                <td class="font_view">Secondary Subject</td>
                                                <td><?php echo $list21->secondary_sub;?></td>
												                        <td class="font_view">other</td>
                                                <td><?php echo $list21->other;?></td>
                                            </tr>
                                            <?php
                                          }
                                            }
                                            ?>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                            <div class="tshadow mb25 bozero">
                                <h3 class="pagetitleh2">Bank Detail</h3>
                                <div class="table-responsive around10 pt0">
                                    <table class="table table-hovers tables_margin"><tbody>

                                            <tr>
                                                <td class="font_view">Bank</td>
                                                <td><?php echo $list3->bank_name;?></td>
												                        <td class="font_view">Branch</td>
                                                <td><?php echo $list3->branch_name;?></td>
                                            </tr>
											                       <tr>
                                                <td class="font_view">IFSC</td>
                                                <td><?php echo $list3->ifsc_code;?></td>
												                        <td class="font_view">MICR</td>
                                                <td><?php echo $list3->micr_code;?></td>
                                            </tr>

                                        </tbody>
                                    </table>
                                </div>
                            </div>
	  </div>
    </div>
</div>
</div>
</section>
<script>
	$('.changepic').click(function() {
		window.location.href = "<?=site_url('Teacher/upload_profile')?>";
		return false;
	});

  </script>
