IMMREX7
<?php $__env->startSection('content'); ?>
<div class="row clearfix">
<div class="col-sm-12">
<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>');
});
}
});
}
});
$(document).ready(function() {
$('#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/north/stdtransaction')); ?>",
"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 -