<?php 
    $info = $this->db->get_where('teacher', array('teacher_id' => $teacher_id))->result_array();
    foreach($info as $row):
?>
    <div class="content-w"> 
	    <?php include 'fancy.php';?>
	    <div class="header-spacer"></div>
	    <div class="content-i">
		    <div class="content-box">
    			<div class="conty">
			        <div class="back backbutton">		
    	                <a title="<?php echo getEduAppGTLang('return');?>" href="<?php echo base_url();?>admin/teachers/"><i class="picons-thin-icon-thin-0131_arrow_back_undo"></i></a>	
	                </div>
    			    <div class="row">
        			    <main class="col col-xl-9 order-xl-2 col-lg-12 order-lg-1 col-md-12 col-sm-12 col-12">                
                			<div id="newsfeed-items-grid">
    						    <div class="ui-block paddingtel">
              						<div class="user-profile">
          							    <div class="up-head-w" style="background-image:url(<?php echo base_url();?>public/uploads/<?php echo $this->crud->getInfo('bglogin');?>)">
              								<div class="up-main-info">
          								   	    <div class="user-avatar-w">
          								            <div class="user-avatar">
          								                <img alt="" src="<?php echo $this->crud->get_image_url('teacher', $row['teacher_id']);?>" class="bg-white">
          								            </div>
          								        </div>
          								        <h3 class="text-white"><?php echo $row['first_name'];?> <?php echo $row['last_name'];?></h3>
          								        <h5 class="up-sub-header">@<?php echo $row['username'];?></h5>
          								    </div>
          								    <svg class="decor" width="842px" height="219px" viewBox="0 0 842 219" preserveAspectRatio="xMaxYMax meet" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g transform="translate(-381.000000, -362.000000)" fill="#FFFFFF"><path class="decor-path" d="M1223,362 L1223,581 L381,581 C868.912802,575.666667 1149.57947,502.666667 1223,362 Z"></path></g></svg>
          							    </div>
          							    <div class="up-controls">
              								<div class="row">
          								        <div class="col-lg-6">
              								        <div class="value-pair">
          								                <div><?php echo getEduAppGTLang('account_type');?>:</div>
          								                <div class="value badge badge-pill badge-success"><?php echo getEduAppGTLang('teacher');?></div>
          								            </div>
          								            <div class="value-pair">
              								            <div><?php echo getEduAppGTLang('member_since');?>:</div>
          								                <div class="value"><?php echo $row['since'];?>.</div>
          								            </div>
          								        </div>
          								    </div>
          							    </div>
          							    <div class="ui-block">
										    <div class="ui-block-title">		
    											<h6 class="title"><?php echo getEduAppGTLang('update_information');?></h6>
										    </div>
    										<div class="ui-block-content">
    										    <?php echo form_open(base_url() . 'admin/teachers/update_profile/'.$row['teacher_id'] , array('enctype' => 'multipart/form-data'));?>
                                        			<div class="row">   
                                        				<div class="col-sm-6">
                                            				<div class="form-group label-floating">
                                                				<label class="control-label"><?php echo getEduAppGTLang('first_name');?></label>
                                                				<input class="form-control" type="text" name="first_name" value="<?php echo $row['first_name'];?>" required="">
                                                				<span class="material-input"></span>
                                            					<span class="material-input"></span>
                                            				</div>
                                        				</div>
                                        				<div class="col-sm-6"> 
                                            				<div class="form-group label-floating">
                                                				<label class="control-label"><?php echo getEduAppGTLang('last_name');?></label>
                                                				<input class="form-control"  type="text" name="last_name" value="<?php echo $row['last_name'];?>" required="">
                                                				<span class="material-input"></span>
                                            					<span class="material-input"></span>
                                            				</div>
                                        				</div>
                                        				<div class="col-sm-6"> 
                                            				<div class="form-group label-floating">
                                                				<label class="control-label"><?php echo getEduAppGTLang('username');?></label>
                                                				<input class="form-control"  type="text" name="username" value="<?php echo $row['username'];?>" required="">
                                                				<span class="material-input"></span>
                                            					<span class="material-input"></span>
                                            				</div>
                                        				</div>
                                        				<div class="col-sm-6"> 
                                            				<div class="form-group label-floating">
                                                				<label class="control-label"><?php echo getEduAppGTLang('email');?></label>
                                                				<input class="form-control"  type="text" name="email" value="<?php echo $row['email'];?>">
                                                				<span class="material-input"></span>
                                            					<span class="material-input"></span>
                                            				</div>
                                        				</div>
                                        				<div class="col-sm-6"> 
                                            				<div class="form-group label-floating">
                                                				<label class="control-label"><?php echo getEduAppGTLang('phone');?></label>
                                                				<input class="form-control"  type="text" name="phone" value="<?php echo $row['phone'];?>">
                                                				<span class="material-input"></span>
                                            					<span class="material-input"></span>
                                            				</div>
                                        				</div>
                                        				<div class="col-sm-6"> 
                                            				<div class="form-group label-floating">
                                                				<label class="control-label"><?php echo getEduAppGTLang('identification');?></label>
                                                				<input class="form-control"  type="text" name="idcard" value="<?php echo $row['idcard'];?>">
                                                				<span class="material-input"></span>
                                            					<span class="material-input"></span>
                                            				</div>
                                        				</div>
                                        				<div class="col-sm-6"> 
                                        					<div class="form-group date-time-picker label-floating is-focused">
                                								<label class="control-label"><?php echo getEduAppGTLang('birthday');?></label>
                                                                <input type='text' class="datepicker-here" data-position="top left" value="<?php echo $row['birthday'];?>" data-language='en' name="datetimepicker" data-multiple-dates-separator="/"/>
                                								<span class="input-group-addon">
                                    							<i class="icon-feather-calendar"></i>
                                								</span>
                            								</div>
                            							</div>
                        								<div class="col-sm-6">
                                            				<div class="form-group">
                                                				<label class="control-label"><?php echo getEduAppGTLang('photo');?></label>
                                                				<input class="form-control" type="file" name="userfile">
                                                				<span class="material-input"></span>
                                            					<span class="material-input"></span>
                                            				</div>
                                        				</div>
                                        				<div class="col-sm-12">
                                            				<div class="form-group label-floating">
        	                      								<label class="control-label"><?php echo getEduAppGTLang('address');?></label>
                              									<textarea class="form-control" name="address" rows="3"><?php echo $row['address'];?></textarea>
                                								<span class="material-input"></span>
        	                    								<span class="material-input"></span>
                            								</div>
                        								</div>
                                        				<div class="col-sm-12">
        	                                    			<div class="pull-right">
                                                				<button class="btn btn-success btn-rounded pull-right" type="submit"> <?php echo getEduAppGTLang('update');?></button>
                                            				</div>
                                        				</div>
        	                        				</div>
    	                        				<?php echo form_close();?>
            								</div>
              							</div>
                    				</div>
                				</div>
            			    </main>
            			    <?php include 'teacher_left.php';?>
        			    </div>
        			</div>
    		    </div>
        	</div>
        </div>
    </div>
<?php endforeach;?>