<?php defined('BASEPATH')or exit("NO DIRECT ACCESS iS ALLOWED");?>
<div class="col-md-12  padding_sidebar">

<div class="row" style="margin-right:0px ;margin-left:0px;">

	<div class="card-head profile-categories_bread"><header>Earnings</header>

		<div class="pull-left"><?php echo  $link;?></div>

    		 <ol class="breadcrumb page-breadcrumb pull-right">

                    <li><i class="fa fa-home"></i>&nbsp;<a class="parent-item" href="<?=site_url("Teacher")?>">Home</a>&nbsp;<i class="fa fa-angle-right"></i>

                    </li>

                    <li class="active">Earnings</li>



             </ol>
		<div class="pull-left">
			            <!-- <a href="#" class="btn btn-sm btn-social btn-github pull-right button_collapse">
						<i class="fa fa-fw fa-search  text-green"></i>Search</a> -->
						</div>
    	</div>

    <div class="card card-topline-purple">

    	<div class="card-head">

    		<!-- <div id="example4_filter" class="dataTables_filter"><label>Search:

				<input type="search" class="form-control form-control-sm search-boxes input-sm" placeholder="" aria-controls="example4"></label>

			</div> -->

			<!--<div class="row">

				<div class="col-md-12">

					 <div class="col-md-2 padding_20">

						<input class="form-control date text-box single-line" id="date" name="date" placeholder="Enter Date" type="text" value="">

					 </div>

					<div class="col-md-2  padding_20">

						<input class="form-control date text-box single-line" id="date" name="date" placeholder="Enter Date" type="text" value="">

					 </div>

					<div class="col-md-2  padding_20">

						<input class="form-control date text-box single-line" id="date" name="date" placeholder="Enter Date" type="text" value="">

					 </div>

					 <div class="col-md-2  padding_20">

						<input class="form-control date text-box single-line" id="date" name="date" placeholder="Enter Date" type="text" value="">

					 </div>

					 <div class="col-md-2  padding_20">

						<input class="form-control date text-box single-line" id="date" name="date" placeholder="Enter Date" type="text" value="">

					 </div>

					 <div class="col-md-2  padding_20">

    					<div class="input-group-btn">

                            <button type="button" class="btn btn-search btn-info" style="padding: 7px 13px 7px;">

                                <span class="glyphicon glyphicon-search"></span>

                                <span class="label-icon">Search</span>

                            </button>

                        </div>

					 </div>

              	</div>

              </div>-->



    		<!--<div class="tools">

    			<a class="fa fa-repeat btn-color box-refresh" href="javascript:;"></a>

    			<a class="t-collapse btn-color fa fa-chevron-down" href="javascript:;"></a>

    			<a class="t-close btn-color fa fa-times" href="javascript:;"></a>

    		</div>-->

    	</div>

	   <div class="table-responsive">

	   <div id="tableContainer2" class="container-tb">

	     <table class="table" style="font-family: sans-serif;font-size: 12px;">

			<thead>

				<tr>

					<th>#</th>

                    <th>Course Id</th>

				    <th>Course start</th>

                    <th>Course End</th>

                    <th>Faculty</th>

                    <th>Category</th>

                    <th>Class</th>

                    <th>Subject</th>

                    <th>Subject Code</th>

                    <th>Total Earnings</th>





			</thead>

		   <tbody>

		   <?php if( count($list) ):$sn=1;

                $count = $this->uri->segment(4);
?>
                <tr><td><a href="#">No Record Found</a></td></tr>

        <?php else : ?>

        <tr><td><a href="#">No Record Found</a></td></tr>

         <?php endif; ?>

		  </tbody><?php $count++; ?>


	</table>

	</div>

</div>



</div>

</div>

</div>

</div>

</div>

 <div class='wrap_search'>
	<div class='content content_pop'>
		<div class="col-md-12">
			 <?=form_open('Teacher/earning_list_search');?>
				<div class="col-md-10">
					<div class="col-md-2  padding_20 emp_style">
			<select id='sel_category' class="form-control input-sm" name="category">
					<option value="" >Select Category</option>
					<?php
					foreach($category as $category1){
						echo "<option value='".$category1['id']."'>".strtoupper($category1['category_code'])." | ".strtoupper($category1['category'])."</option>";
					}
					?>
			</select>
					</div>
					<div class="col-md-2  padding_20 emp_style">
						<select id='sel_class' class="form-control input-sm" name="class" >
							<option value="" >Select class</option>
						</select>
					</div>
					<div class="col-md-2  padding_20 emp_style">
						<select id='sel_subject' class="form-control input-sm" name="subject" >
							<option value="" >Select subject</option>
						</select>
					</div>
					<div class="col-md-2  padding_20 emp_style">
			<select id='sel_course_list' class="form-control input-sm" name="course" >
				<option value="" >Select course</option>
			</select>
		</div>
		<div class="col-md-2 btn_mrgin1 emp_style">
				 <?=form_submit('search','search',['class'=>'btn btn-primary btn_mrgin btn-sm']);?>
				</div>
				</div>



			<?php echo form_close();?>
			</div>

	<?=form_open('Teacher/earning_list_search2');?>
	<div class="col-md-2">
		<div class="col-md-12  padding_20 emp_style">
			<?=form_dropdown('subject_code',$subject_code ,set_value('subject_code',$data_taskpo['subject_code']),['class'=>'form-control input-sm select2 select2-hidden-accessible',
			"tabindex"=>"-1","aria-hidden"=>"true","style"=>"width: 100%;",'onchange'=>"this.form.submit()"]);?>
		</div>
	</div>
	<?php echo form_close();?>

	</div>

</div>
