    <div class="content-w">
        <?php include 'fancy.php';?>
        <div class="header-spacer"></div>
        <div class="conty">
            <div class="os-tabs-w menu-shad">
                <div class="os-tabs-controls">
                    <ul class="navs navs-tabs upper">
                        <li class="navs-item">
                            <a class="navs-links active" data-toggle="tab" href="#permissions"><i class="os-icon picons-thin-icon-thin-0015_fountain_pen"></i><span><?php echo getEduAppGTLang('permissions');?></span></a>
                        </li>
                        <li class="navs-item">
                            <a class="navs-links" data-toggle="tab" href="#apply"><i class="os-icon picons-thin-icon-thin-0389_gavel_hammer_law_judge_court"></i><span><?php echo getEduAppGTLang('apply');?></span></a>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="content-i">
                <div class="content-box">
                    <div class="element-wrapper">	  
		                <div class="tab-content">
		                    <div class="tab-pane active" id="permissions">
                                <div class="element-box lined-primary shadow">
		                            <div class="table-responsive">
			                            <table width="100%" class="table table-lightborder table-lightfont">
			                                <thead>
                                				<tr>
                                					<th><?php echo getEduAppGTLang('reason');?></th>
                                					<th><?php echo getEduAppGTLang('description');?></th>
                                					<th><?php echo getEduAppGTLang('student');?></th>
                                					<th><?php echo getEduAppGTLang('from');?></th>
                                					<th><?php echo getEduAppGTLang('until');?></th>
                                					<th><?php echo getEduAppGTLang('status');?></th>
                                				</tr>
			                                </thead>
			                                <tbody>
			                                <?php
        		                                $count = 1;
        		                                $this->db->order_by('request_id', 'desc');
        		                                $requests = $this->db->get_where('students_request', array('student_id' => $this->session->userdata('login_user_id')))->result_array();
            		                            foreach ($requests as $row) {
        	                                ?>   
                            				    <tr>
                            					    <td><a class="btn nc btn-rounded btn-sm btn-purple text-white"><?php echo $row['title']; ?></a></td>
                            					    <td><?php echo $row['description']; ?></td>
                            					    <td><img alt="" src="<?php echo $this->crud->get_image_url('student', $row['student_id']);?>" width="25px" class="tbl-user"> <?php echo $this->crud->get_name('student', $row['student_id']); ?></td>
                            					    <td><a class="btn nc btn-rounded btn-sm btn-primary text-white"><?php echo $row['start_date']; ?></a></td>
                            					    <td><a class="btn nc btn-rounded btn-sm btn-secondary text-white"><?php echo $row['end_date']; ?></a></td>
                            					    <td>
                            					    <?php if($row['status'] == 0): ?>
                                						<a class="btn nc btn-rounded btn-sm btn-warning text-white"><?php echo getEduAppGTLang('pending');?></a>
                            					    <?php endif;?>
                            					    <?php if($row['status'] == 1): ?>
                                						<a class="btn nc btn-rounded btn-sm btn-success text-white"><?php echo getEduAppGTLang('approved');?></a>
                            					    <?php endif;?>
                            					    <?php if($row['status'] == 2): ?>
                                						<a class="btn nc btn-rounded btn-sm btn-danger text-white"><?php echo getEduAppGTLang('rejected');?></a>
                            					    <?php endif;?>
                            					    </td>
                                				</tr>
				                            <?php } ?>
			                                </tbody>
    			                        </table>
		                            </div>
    		                    </div>
                            </div>
		                    <div class="tab-pane" id="apply">
                                <div class="element-wrapper">
                                    <div class="element-box lined-primary shadow">
			                            <?php echo form_open(base_url() . 'student/request/create' , array('enctype' => 'multipart/form-data'));?>
			                                <h5 class="form-header"><?php echo getEduAppGTLang('apply');?></h5><br>
			                                <div class="form-group">
				                                <label for=""> <?php echo getEduAppGTLang('reason');?></label>
    				                            <input class="form-control" placeholder="" type="text" name="title" required="">
			                                </div>    
			                                <div class="form-group">
				                                <label> <?php echo getEduAppGTLang('description');?></label>
    				                            <textarea class="form-control" rows="4" name="description" required=""></textarea>
				                            </div>  
			                                <div class="row">
				                                <div class="col-sm-6">
					                                <div class="form-group">
					                                    <label for=""> <?php echo getEduAppGTLang('from');?></label>
					                                    <input type='text' class="datepicker-here" data-position="top left" data-language='en' name="start_date"  data-multiple-dates-separator="/"/>
    					                            </div>
				                                </div>
				                                <div class="col-sm-6">
					                                <div class="form-group">
					                                    <label for=""> <?php echo getEduAppGTLang('until');?></label>
    					                                <input type='text' class="datepicker-here" data-position="top left" data-language='en' name="end_date"  data-multiple-dates-separator="/"/>
					                                </div>
    				                            </div>
				                            </div>
			                                <div class="form-buttons-w text-right">
				                                <button class="btn btn-rounded btn-primary" type="submit"> <?php echo getEduAppGTLang('send');?></button>
    			                            </div>
			                            <?php echo form_close();?>
    			                    </div>
			                    </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>