       
      <!-- start page content -->
            <div class="page-content-wrapper">
                <div class="page-content">
                    <div class="page-bar">
                        <div class="page-title-breadcrumb">
                            <div class=" pull-left">
                                <div class="page-title">All Student Fees</div>
                            </div>
                            <ol class="breadcrumb page-breadcrumb pull-right">
                                <li><i class="fa fa-home"></i>&nbsp;<a class="parent-item" href="index.html">Home</a>&nbsp;<i class="fa fa-angle-right"></i>
                                </li>
                                <li><a class="parent-item" href="">Courses</a>&nbsp;<i class="fa fa-angle-right"></i>
                                </li>
                                <li class="active">All Student Fees</li>
                            </ol>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                                                 
                                <div class="tab-content">
                                    <div class="tab-pane active fontawesome-demo" id="tab1">
                                        <div class="row">
					                        <div class="col-md-12">
					                            <div class="card card-box">
					                                <div class="card-head">
					                                    <header>All Student Fees</header>
					                                    <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="card-body ">
					                                    <div class="row">
					                                       <div class="col-md-10 col-sm-10 col-10">
					                                          
					                                        </div>	
					                                        <div class="col-md-2 col-sm-2 col-2">
					                                            <div class="btn-group pull-right">
					                                                <a class="btn deepPink-bgcolor  btn-outline dropdown-toggle" data-toggle="dropdown">Download
					                                                    <i class="fa fa-angle-down"></i>
					                                                </a>
					                                                <ul class="dropdown-menu pull-right">
					                                                    <li>
					                                                        <a href="<?=base_url();?>scripts/exportBillData?center_name=0&year=<?=(isset($_GET['year']) && $_GET['year'] !=''? $_GET['year']:'A 18-19');?>&student_type=<?=$student;?>">
					                                                            <i class="fa fa-file-excel-o"></i> Export to Excel </a>
					                                                    </li>
					                                                </ul>
					                                            </div>
					                                        </div>
					                                    </div>	                                 
					                                    <div class="table-scrollable">
					                                    <table class="table table-striped table-bordered table-hover table-checkable order-column valign-middle" id="example4">
					                                        <thead>
					                                            <tr>
																    <th> Ref No.</th>
					                                                <th> Enroll No.</th>
					                                                <th> Student Name</th>
					                                                <th> Father Name</th>
					                                                <th> Admission Type</th>
					                                                <th> Course</th>
					                                                <th> Sub Course-Cat</th>
					                                                <th> YEAR</th>
					                                                <th> Uploaded By</th>
					                                                <th> Univ FEE</th>
					                                                <th> Univ Sharing %</th>
					                                                <th> EX. FEE</th>
					                                                <th> Lateral FEE</th>
					                                                <th> Credit Transfer</th>
					                                                <th> Prospectus FEE</th>
					                                                <th> Service Charge</th>
					                                                <th> Total</th>
																</tr>
					                                        </thead>
					                                        <tbody>
															<?php $i=1; foreach ($student_details as $key):?>
															<?php 
															 $center_details    = get_center_by_id($key->user_id);
															 $subCourse_details = get_sub_courses_by_id($key->sub_course_id);
															if($key->admission_type=='LATERAL ENTRY'){
																$lateralFee = $subCourse_details[0]['lateral_fees'];
															}else{
																 $lateralFee=0;
															}
															if($key->admission_type=='CREDIT TRANSFER')
															{
															   $creadit_transfer = $subCourse_details[0]['credit_transfer'];
															}else{ 
															   $creadit_transfer=0; 
															}
											                $total = $key->crs_fee_in_rs+$key->exam_fee+$lateralFee+$creadit_transfer+$center_details[0]['prospectus_fee']+$center_details[0]['service_charge'];
																	?>
																<tr class="odd gradeX">
																	<td><?=ucfirst($key->id);?></td>
																	<td><?=ucfirst($key->enroll_num);?></td>
																	<td><?=ucfirst($key->name);?></td>
																	<td><?=ucfirst($key->father_name);?></td>
																	<td><?=ucfirst($key->admission_type);?></td>
																	<td><?=get_courses_by_id($key->course_id);?> </td>
																	<td><?=$subCourse_details[0]['name'];?> </td>
																	<td class="left"><?=$key->year;?> Years</td>
																	<td class="left"><?=$center_details[0]['company_name'];?></td>
																	<td class="left"><?=$key->crs_fee_in_rs;?></td>
																	<td class="left"><?=$key->crs_fee;?></td>
																	<td class="left"><?=$key->exam_fee;?></td>
																	<td class="left"><?=$lateralFee;?></td>
																	<td class="left"><?=$creadit_transfer;?></td>
																	<td class="left"><?=$center_details[0]['prospectus_fee'];?></td>
																	<td class="left"><?=$center_details[0]['service_charge'];?></td>
																	<td class="left"><?=$total;?></td>
																</tr>
															 <?php $i++; endforeach ?>
															</tbody>
					                                    </table>
					                                    </div>
					                                </div>
					                            </div>
					                        </div>
					                    </div>
                                    </div>
                                </div>
                           
                        </div>
                    </div>
                </div>
            </div>
            <!-- end page content -->      