IMMREX7
<?php $__env->startSection('content'); ?>
<div class="row clearfix">
<div class="col-sm-12">
<?php if(count($students) > 0): ?>
<div class="card">
<div class="header">
<h2><strong>Search Student</strong></h2>
</div>
<div class="body table-responsive">
<div class="row">
<div class="col-sm-6">
<div class="row clearfix">
<div class="col-sm-6">
<div class="form-group">
<?php echo Form::select('idStudent',[" " => "Select Student"]+$students,null,['class' => 'form-control show-tick ms select2','id'=>'payFees']); ?>
</div>
</div>
<div id="bts" class="col-sm-6">
</div>
</div>
</div>
</div>
</div>
</div>
<?php endif; ?>
<div class="card">
<div class="header">
<h2><strong>Collect Fee</strong></h2>
</div>
<div class="body table-responsive">
<table class="table table-bordered table-striped table-hover dataTable" id='tableexp'>
<thead>
<tr>
<!--<th>S. No.</th>-->
<th>Photo</th>
<th>EC No.</th>
<th>Name</th>
<th>Father</th>
<th>Class</th>
<th>Section</th>
<th>Mobile</th>
<th>Action</th>
</tr>
</thead>
<tfoot>
<tr>
<!--<th>S. No.</th>-->
<th>Photo</th>
<th>EC No.</th>
<th>Name</th>
<th>Father</th>
<th>Class</th>
<th>Section</th>
<th>Mobile</th>
<th>Action</th>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<script>
$(document).ready(function() {
$('select[name="idClass"]').on('change', function() {
var classID = $(this).val();
if(classID) {
$.ajax({
url: "<?php echo e(url('/school/class')); ?>"+'/' +classID + "/sections",
type: "GET",
dataType: "json",
success:function(data) {
$('#idSection').empty();
$('#idSection').append('<option value="">--Select--</option>');
$.each(data, function(key, value) {
$('#idSection').append('<option value="'+key+'">'+value+'</option>');
});
}
});
}else{
$('select[name="idSection"]').empty();
}
});
var cur_class = $('select[name="idClass"]').val();
if (cur_class) {
$.ajax({
url: "<?php echo e(url('/school/class')); ?>"+'/' +cur_class + "/sections",
type: "GET",
dataType: "json",
success:function(data) {
$('#idSection').empty();
$('#idSection').append('<option value="">--Select--</option>');
$.each(data, function(key, value) {
$('#idSection').append('<option value="'+key+'">'+value+'</option>');
});
}
});
}
$('#payFees').on('change', function (e) {
$('#bts').empty();
var selectedValue = $(this).val().trim();
if(selectedValue != ""){
$('#bts').append('<a class="btn btn-warning btn-sm" href="https://online-login.online/school/stdfees/'+selectedValue+'/details" target="_blank">School Fees</a>');
<?php if(auth()->user()->idSchool == 25 || auth()->user()->idSchool == 86): ?>
$('#bts').append('<a class="btn btn-warning btn-sm" href="https://online-login.online/school/stdfees-extra/'+selectedValue+'/details" target="_blank">Extra Fees</a>');
<?php endif; ?>
}
})
setTimeout(function() {
loadStudent();
}, 2000);
});
</script>
<script>
function loadStudent(){
$('#tableexp').DataTable({
dom: 'lBfrtip',
scrollY: "500px",
scrollX: true,
scrollCollapse: true,
fixedColumns: {
left: 1
},
'lengthMenu': [[25,50,100,-1], [25,50,100, "All"]],
buttons: [
{ extend: 'csv', text: 'Export to Excel',title:'Student List'}
],
"processing": true,
"serverSide": true,
"language": {
"processing": '<img src="<?php echo e(asset("dist/images/loading_light_green.gif")); ?>" height="50" style="margin-top:50px;">'
},
"ajax": {
"url": "<?php echo e(url('school/stdfees')); ?>",
"dataType": "json",
"type": "GET",
"data": function (d) {
d._token = "<?php echo e(csrf_token()); ?>"
},
},
initComplete: function(row, data) {
var count = data['recordsTotal'];
$('#total_record').text(count);
},
"columns": [
// { "data": "sNo" },
{ "data": "photo" },
{ "data": "ecNo" },
{ "data": "name" },
{ "data": "father_name" },
{ "data": "className" },
{ "data": "sectionName" },
{ "data": "father_mobile" },
{ "data": "action" }
],
'searching' : true
});
}
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('schools.school_layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
Copyright © 2021 -