<?php
$tid=$this->session->userdata('tid');
$teacher_profile_data =$this->SchoolModel->teacher_profile($tid);
if($teacher_profile_data){
    foreach($teacher_profile_data as $records){ 
?>

<style>
body{background:#EAEDED;}
.profile{box-shadow:0 0 2px silver;min-height:500px;margin-bottom:20px; margin-top:20px; } 
input[type=text]{width:50%;}
.basic-info{padding:20px;}
@media only screen and (max-width:767px){
    input[type=text]{width:100%;}    
}
a{color:black;}
a:hover{text-decoration:none;}
</style>
<div class="container bg-white mt-3 mb-3 pt-3 pb-3">
    <div class="row">
        <div class="col-sm-12">

            <ul class="breadcrumb">
                <li class="breadcrumb-item"><?php echo $this->session->userdata('ac_year'); ?></li> 
                <li class="breadcrumb-item"><a href="<?php echo base_url(); ?>Welcome">Home</a></li> 
                <li class="breadcrumb-item">Profile</li> 
                <li class="breadcrumb-item"><?php echo $records['salutation']; echo " ";echo $records['name']; ?></li>
            </ul>

            <div class="profile">
                <h4><?php if($success){ ?>
                <p style='color:green;font-weight:bolder;'> <?php echo $success; ?></p>
                <?php } ?>
                <?php if($error){ ?>
                <p style='color:red;font-weight:bolder;'> <?php echo $error; ?></p>
                <?php } ?></h4>

                <div class="basic-info">

                
                <div class="personal-info">
                    <ul class="breadcrumb">
                        <li class="breadcrumb-item">Personal Information</li>    
                        <li class="breadcrumb-item"><a href="<?php echo base_url();?>School/update_personal_information/<?php echo $tid;?>">Update</a></li>
                    </ul>    
                    
                    <form method="post" action="#">
                    
                        <div class="form-group">
                            <label>Name</label> 
                            <input type="text" value="<?php echo $records['salutation']; echo " "; echo $records['name']; ?>" disabled class="form-control">
                        </div>

                        <div class="form-group">
                            <label>Father's Name</label> 
                            <input type="text" value="<?php echo $records['father_name']; ?>" disabled class="form-control">
                        </div>

                        <div class="form-group">
                            <label>D.O.B.</label> 
                            <input type="text" value="<?php echo date('d-M-Y',strtotime($records['dob']));?>" disabled class="form-control">
                        </div> 

                        <div class="form-group">
                            <label>Marital Status</label> 
                            <input type="text" value="<?php echo $records['marital_status'];?>" disabled class="form-control">
                        </div> 
    
                        <div class="form-group">
                            <label>Gender</label> 
                            <input type="text" value="<?php echo $records['gender'];?>" disabled class="form-control">
                        </div> 

                        <div class="form-group">
                            <label>Aadhar No.</label> 
                            <input type="text" value="<?php echo $records['aadhar_no'];?>" disabled class="form-control">
                        </div> 
                    </form>
                </div>

                <div class="contact-info">
                    <ul class="breadcrumb">
                        <li class="breadcrumb-item">Contact Information</li>
                        <li class="breadcrumb-item"><a href="<?php echo base_url();?>School/update_contact_information/<?php echo $tid;?>">Update</a></li>
                    </ul>    


                    <div class="form-group">
                        <label>Mobile Number</label> 
                        <input type="text" value="<?php echo $records['mobile_number'];?>" disabled class="form-control">
                    </div> 

                    <div class="form-group">
                        <label>Alternate Mobile   Number</label> 
                        <input type="text" value="<?php echo $records['alt_mobile_number'];?>" disabled class="form-control">
                    </div> 
    
                    <div class="form-group">
                        <label>Email</label> 
                        <input type="text" value="<?php echo $records['email'];?>" disabled class="form-control">
                    </div>    

                    <div class="form-group">
                        <label>Address</label> 
                        <input type="text" value="<?php echo $records['address'];?>" disabled class="form-control">
                    </div>

                    <div class="form-group">
                        <label>Permanent Address</label> 
                        <input type="text" value="<?php echo $records['permanent_address'];?>" disabled class="form-control">
                    </div>

                </div>

                <div class="">
                    <ul class="breadcrumb">
                        <li class="breadcrumb-item">Educational Qualifications / Experience</li>
                        <li class="breadcrumb-item"><a href="<?php echo base_url();?>School/update_educational_information/<?php echo $tid;?>">Update</a></li>
                    </ul> 
                    <div class="form-group">
                        <label>Educational Qualification</label> 
                        <input type="text" value="<?php echo $records['educational_qualification1'];?>" disabled class="form-control">
                    </div> 
                    <div class="form-group">
                        <label>Educational Qualification</label> 
                        <input type="text" value="<?php echo $records['educational_qualification2'];?>" disabled class="form-control">
                    </div> 

                    <div class="form-group">
                        <label>Educational Qualification</label> 
                        <input type="text" value="<?php echo $records['educational_qualification3'];?>" disabled class="form-control">
                    </div> 

                    <div class="form-group">
                        <label>highest_qualification</label> 
                        <input type="text" value="<?php echo $records['highest_qualification'];?>" disabled class="form-control">
                    </div> 

                    <div class="form-group">
                        <label>Date  Of Joining</label> 
                        <input type="text" value="<?php echo $records['date_of_joining'];?>" disabled class="form-control">
                    </div> 

                    <div class="form-group">
                        <label>Total Teachiing  Experience</label> 
                        <input type="text" value="<?php echo $records['total_teaching_experience'];?>  Years" disabled class="form-control">
                    </div> 

                    <div class="form-group">
                        <label>Designation</label> 
                        <input type="text" value="<?php echo $records['designation'];?>" disabled class="form-control">
                    </div> 

                    <div class="form-group">
                        <label>Teaching Classes</label> 
                        <input type="text" value="<?php echo $records['teaching_classes'];?>" disabled class="form-control">
                    </div> 

                    <div class="form-group">
                        <label>Emp Nature</label> 
                        <input type="text" value="<?php echo $records['employee_nature'];?>" disabled class="form-control">
                    </div>

                    <div class="form-group">
                        <label>staff_category</label> 
                        <input type="text" value="<?php echo $records['staff_category'];?>" disabled class="form-control">
                    </div> 

                    <div class="form-group">
                        <label>subject_taught1</label> 
                        <input type="text" value="<?php echo $records['subject_taught1'];?>" disabled class="form-control">
                    </div>

                    <div class="form-group">
                        <label>subject_taught2</label> 
                        <input type="text" value="<?php echo $records['subject_taught2'];?>" disabled class="form-control">
                    </div>

                    <div class="form-group">
                        <label>subject_taught3</label> 
                        <input type="text" value="<?php echo $records['subject_taught3'];?>" disabled class="form-control">
                    </div>

                </div>

                <div class="bank-info">
                    <ul class="breadcrumb">
                        <li class="breadcrumb-item">Bank Information</li>
                        <li class="breadcrumb-item"><a href="<?php echo base_url();?>School/update_bank_information/<?php echo $tid;?>">Update</a></li>
                    </ul>

                    <div class="form-group">
                        <label>bank_name</label> 
                        <input type="text" value="<?php echo $records['bank_name'];?>" disabled class="form-control">
                    </div>

                    <div class="form-group">
                        <label>IFSC CODE</label> 
                        <input type="text" value="<?php echo $records['ifsc'];?>" disabled class="form-control">
                    </div>

                    <div class="form-group">
                        <label>account_number</label> 
                        <input type="text" value="<?php echo $records['account_no'];?>" disabled class="form-control">
                    </div>

                    <div class="form-group">
                        <label>branch_address</label> 
                        <input type="text" value="<?php echo $records['branch_address'];?>" disabled class="form-control">
                    </div>

                </div>
                </div>   


            </div>    
        </div>    
    </div>
</div>
<?php 
    }    
}else{
    echo "No Query Executed"; echo $records['name']; 
}
?>