<div class="panel panel-default">

    <div class="panel-heading">
        <h6 class="panel-title">
            <a href="<?php echo site_url('everbright/teacherleave_add'); ?>"><i class="fa fa-align-justify"></i></a> 
            Teacher Leave Info| Add
        </h6>
        <a href="<?php echo site_url('everbright/teacherleave'); ?>" class="pull-right btn btn-circle btn-xs btn-default"><i class="fa fa-times"></i>Cancel</a>
    </div>

    <div class="panel-body">
        <form action="<?php echo site_url('everbright/teacherleave/add'); ?>" method="post" class="form-horizontal validate" role="form"> 
			<div class="row">
				<!-- Gross Weigth -->
					
				<?php 
                        $querytcr = $this->main_model->teacher();
                    ?>
                <div class="col-md-6">                   
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-right">Teacher<span class="mandatory">*</span></label>
                        <div class="col-sm-8">
                            <select data-placeholder="(:-- Select Teacher --:)" name="user_ID" class="required  select-search">
                               
							   <option value=""></option>
							   <?php foreach($querytcr as $rowtcr): ?>
                                <option value="<?php echo $rowtcr['tid']; ?>"><?php echo $rowtcr['name']; ?></option>
								<?php endforeach; ?>
                              
                            </select>                            
                        </div>
                        
                    </div> 
                </div>
				<div class="col-md-6">                   
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-right">Leave <span class="mandatory">*</span></label>
                        <div class="col-sm-8">
                            <select data-placeholder="(:-- Select Leave Status --:)" name="user_present" class="required  select-search">
                               
							   <option value=""></option>
							   
                                <option value="1">Yes</option>
								<option value="0">No</option>
                              
                            </select>                            
                        </div>
                        
                    </div> 
                </div>
                                 
            </div>
                      
            <div class="form-group">
                <label class="control-label col-md-2 text-right">Remarks </label>
                <div class="col-md-10">
                    <textarea type="text" class="form-control" placeholder="Remarks" name="remark">If don't have, please write N/A</textarea>
                </div>
            </div>  
			
            <div class="form-actions text-right">
                <button type="submit" value="Submit" class="btn btn-primary"><i class="fa fa-check"></i> Submit</button>
            </div>
        </form>
    </div>

</div>
