IMMREX7
<?php $__env->startSection('content'); ?>
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="body">
<button class="btn btn-raised btn-warning btn-round waves-effect" type="button" data-toggle="collapse" data-target="#collapseExample" aria-expanded="false" aria-controls="collapseExample">Advance Search</button>
<div class="collapse" id="collapseExample">
<div class="well">
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="card">
<div class="header">
<h2><strong>Advance Search</strong></h2>
</div>
<div class="body">
<?php echo Form::open(['method' => 'GET', 'action' => ['School\NorthTransactionReportController@transactionReport'], 'class' => 'form-horizontal']); ?>
<div class="row clearfix">
<div class="col-sm-2 form-control-label required">
<label for="classname">Fee Type</label>
</div>
<div class="col-sm-4">
<div class="form-group">
<?php echo Form::select('feetype',['Student'=>'Student','Bus'=>'Bus','Hostel'=>'Hostel'],null,['class' => 'form-control show-tick ms']); ?>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-sm-4">
<div class="row clearfix">
<div class="col-sm-3 form-control-label">
<label for="classname">Class</label>
</div>
<div class="col-sm-7">
<div class="form-group">
<div style="border:1px solid #ccc; width:250px; height: 150px; overflow-y: scroll;">
<?php $__currentLoopData = $classes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="checkbox-inline" style="padding-left:10px;padding-top:5px;">
<input type="checkbox" name="classes[]" value="<?php echo e($key); ?>" class="class_ids">
<label><?php echo e($value); ?></label>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="row clearfix">
<div class="col-sm-3 form-control-label">
<label for="classname">Section</label>
</div>
<div class="col-sm-7">
<div class="form-group">
<div id="idSection" style="border:1px solid #ccc; width:250px; height: 150px; overflow-y: scroll;">
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="row clearfix">
<div class="col-sm-3 form-control-label">
<label for="classname">Select Demand</label>
</div>
<div class="col-sm-7">
<div class="form-group">
<div id="idFeehead" style="border:1px solid #ccc; width:250px; height: 150px; overflow-y: scroll;">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-sm-4">
<div class="row clearfix">
<div class="col-sm-3 form-control-label">
<label for="classname">EC No.</label>
</div>
<div class="col-sm-7">
<div class="form-group">
<?php echo Form::text('ecNo',null,['class' => 'form-control show-tick ms']); ?>
</div>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="row clearfix">
<div class="col-sm-3 form-control-label">
<label for="classname">From Date</label>
</div>
<div class="col-sm-7">
<div class="form-group">
<?php echo Form::text('fromDate',null,['class' => 'form-control datepicker']); ?>
</div>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="row clearfix">
<div class="col-sm-3 form-control-label">
<label for="classname">To Date</label>
</div>
<div class="col-sm-7">
<div class="form-group">
<?php echo Form::text('toDate',null,['class' => 'form-control datepicker']); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-sm-8 offset-sm-2">
<?php echo Form::submit('SHOW',['class' => 'btn btn-raised btn-primary btn-round waves-effect']); ?>
<?php echo Form::close(); ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-sm-12">
<div class="card">
<div class="header">
<h2><strong>Students Paid Data</strong></h2>
</div>
<div class="body table-responsive">
<?php if(isset($transactions) && count($transactions)>0): ?>
<table class="table table-bordered table-striped table-hover js-exportable dataTable">
<thead>
<tr>
<th>Receipt No.</th>
<th>Date</th>
<th>Ec No.</th>
<th>Name</th>
<th>Class</th>
<th>Section</th>
<th>Mobile</th>
<th>Demand Name</th>
<th>Total Fee</th>
<th>Total Paid</th>
<th>Total Fine</th>
<th>Total Discount</th>
<th>Balance</th>
<th>Payment Mode</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $transactions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $var): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($var->receiptNo); ?></td>
<td><?php echo e($var->paymentDate); ?></td>
<td><?php echo e($var->ecNo); ?></td>
<td><?php echo e($var->firstName); ?> <?php echo e($var->middleName); ?> <?php echo e($var->lastName); ?></td>
<td><?php echo e($var->className); ?></td>
<td><?php echo e($var->sectionName); ?></td>
<td><?php echo e($var->father_mobile); ?></td>
<td><?php echo e($var->demandName); ?></td>
<td><?php echo e($var->amount); ?></td>
<td><?php echo e($var->totalpaid); ?></td>
<td><?php echo e($var->discountTotal); ?></td>
<td><?php echo e($var->fineTotal); ?></td>
<td><?php echo e($b = $var->amount - $var->totalpaid); ?></td>
<td><?php echo e($var->paymentMode); ?></td>
<td>
<a href="<?php echo e(url('school/north/stdfees/'.$var->idTransaction.'/print')); ?>" target="_blank" class="btn btn-sm btn-info">Re-Print</a>
<a href="<?php echo e(url('school/stdtransaction/'.$var->idTransaction.'/cancelrcpt')); ?>" target="_blank" class="btn btn-sm btn-danger">Cancel Receipt</a>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
<?php else: ?>
<p style="color:red;font-weight: bold">Select Demand Name to View the report</p>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<script>
$(document).on('click', '.class_ids', function(){
var classIds = [];
$("input:checkbox[name='classes[]']:checked").each(function () {
classIds.push($(this).val());
});
if (classIds.length > 0) {
$.ajax({
url: "<?php echo e(url('/school/schclass')); ?>" + '/' + classIds + "/sections",
type: "GET",
dataType: "json",
success:function(data) {
$('#idSection').empty();
$('#idSection').append('<div class="checkbox-inline" style="padding-left:10px;padding-top:5px;"><input type="checkbox" class="select-all" id="selectall"><label><strong>Select All</label></strong></div>');
$.each(data, function(key, value) {
$('#idSection').append('<div class="checkbox-inline" style="padding-left:10px;"><input type="checkbox" name="sections[]" value="' + key + '" class="sectionclass"><label>' + value + '</label></div>');
});
}
});
}
});
$(document).on('click', '.select-all', function(){
var checkAll = this.checked;
if (checkAll === true){
$('.sectionclass').each(function () {
this.checked = checkAll;
});
var sectionIds = [];
$("input:checkbox[name='sections[]']:checked").each(function () {
sectionIds.push($(this).val());
});
if (sectionIds.length > 0) {
$.ajax({
url: "<?php echo e(url('/school/sec')); ?>" + '/' + sectionIds + "/feedemands",
type: "GET",
dataType: "json",
success:function(data) {
$('#idFeehead').empty();
$('#idFeehead').append('<div class="checkbox-inline" style="padding-left:10px;padding-top:5px;"><label style="margin-right:42px;"><strong>Select All</label></strong><input type="checkbox" class="select-allfeehead"></div>');
$.each(data, function(key, value) {
$('#idFeehead').append('<div class="checkbox-inline" style="padding-left:10px;"><label style="margin-right:50px;">' + value + '</label><input type="checkbox" name="feeheads[]" value="' + key + '" class="feehead_allselect"></div>');
});
}
});
}
} else{
$('.sectionclass').each(function () {
this.checked = checkAll;
});
$('#idFeehead').empty();
}
});
$(document).on('click', '.sectionclass', function(){
var sectionIds = [];
$("input:checkbox[name='sections[]']:checked").each(function () {
sectionIds.push($(this).val());
});
if (sectionIds.length > 0) {
$.ajax({
url: "<?php echo e(url('/school/sec')); ?>" + '/' + sectionIds + "/feedemands",
type: "GET",
dataType: "json",
success:function(data) {
$('#idFeehead').empty();
$('#idFeehead').append('<div class="checkbox-inline" style="padding-left:10px;padding-top:5px;"><label style="margin-right:42px;"><strong>Select All</label></strong><input type="checkbox" class="select-allfeehead"></div>');
$.each(data, function(key, value) {
$('#idFeehead').append('<div class="checkbox-inline" style="padding-left:10px;"><label style="margin-right:50px;">' + value + '</label><input type="checkbox" name="feeheads[]" value="' + key + '" class="feehead_allselect"></div>');
});
}
});
}else{
$('#idFeehead').empty();
}
});
$(document).on('click', '.select-allfeehead', function(){
var checkAllstd = this.checked;
if (checkAllstd === true){
$("input:checkbox[name='feeheads[]']").each(function () {
this.checked = checkAllstd;
});
} else{
$('.feehead_allselect').each(function () {
this.checked = checkAllstd;
});
}
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('schools.school_layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
Copyright © 2021 -