IMMREX7
<?php $__env->startSection('content'); ?>
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12">
<!--<div class="card">-->
<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\ChequeBounceController@getChequeList'], 'class' => 'form-horizontal']); ?>
<div class="row clearfix">
<div class="col-sm-4">
<div class="row clearfix">
<div class="col-sm-5 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 class="row clearfix">
<div class="col-sm-5 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 class="col-sm-4">
<div class="row clearfix">
<div class="col-sm-5 form-control-label">
<label for="classname">Status</label>
</div>
<div class="col-sm-7">
<div class="form-group">
<?php echo Form::select('cheque-status',getChequeStatus(),null,['class' => 'form-control show-tick ms','style'=>'background-color: #fff']); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-sm-8 offset-sm-2">
<?php echo Form::submit('Search',['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>
<div class="row clearfix">
<div class="col-sm-12">
<div class="card">
<div class="header">
<h2><strong></strong></h2>
</div>
<div class="body">
<?php echo Form::open(['method' => 'GET', 'action' => ['School\ChequeBounceController@getChequeList'], 'class' => 'form-horizontal']); ?>
<div class="row clearfix">
<div class="col-sm-3">
<div class="form-group">
<?php echo Form::select('idFinancialYear',fys(),null,['class' => 'form-control show-tick ms']); ?>
<?php if($errors->has('idFinancialYear')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('idFinancialYear')); ?></strong>
</label>
<?php endif; ?>
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
<?php echo Form::select('idClass',$classes,null,['class' => 'form-control show-tick ms']); ?>
<?php if($errors->has('idClass')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('idClass')); ?></strong>
</label>
<?php endif; ?>
</div>
</div>
<div class="col-sm-2">
<div class="form-group">
<select id='idSection' name='idSection' class="form-control show-tick ms"><option>-- Section--</option></select>
<?php if($errors->has('idSection')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('idSection')); ?></strong>
</label>
<?php endif; ?>
</div>
</div>
<div class="col-sm-2">
<div class="form-group">
<?php echo Form::text('ecNo',null,['class' => 'form-control','placeholder'=>'Student EC No.']); ?>
</div>
</div>
<div class="col-sm-2 form-control-label">
<?php echo Form::submit('Search',['class' => 'btn btn-raised btn-primary btn-round waves-effect','id'=>'submit-btn']); ?>
<?php echo Form::close(); ?>
</div>
</div>
</div>
<div class="body table-responsive">
<table class="table table-bordered table-striped table-hover dataTable" id="tableexp">
<thead>
<tr>
<th>EC No.</th>
<th>Name</th>
<th>Class</th>
<th>Section</th>
<th>Payment Date</th>
<th>Bank</th>
<th>Cheque / DD No.</th>
<th>Cheque Date</th>
<th>Amount</th>
<th>Collector Name</th>
<th style="width:300px;">Select Status</th>
<th>Update</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $chequelist; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($value->ecNo); ?></td>
<td><?php echo e($value->firstName); ?> <?php echo e($value->middleName); ?> <?php echo e($value->lastName); ?></td>
<td><?php echo e($value->className); ?></td>
<td><?php echo e($value->sectionName); ?></td>
<td><?php echo e($value->paymentDate); ?></td>
<td><?php echo e($value->bankName); ?></td>
<td><?php echo e($value->chequeNo); ?></td>
<td><?php echo e($value->chequeDate); ?></td>
<td><?php echo e($value->totalPaid); ?></td>
<td><?php echo e($value->name); ?></td>
<td style="width:300px;">
<?php echo Form::open(['url' => 'school/chequebounce', 'class' => 'form-horizontal']); ?>
<input type="hidden" name='idTransaction' value="<?php echo e($value->idTransaction); ?>">
<?php if($value->status == 'Bounced'): ?>
<span>Cheque Bounced</span><br>
<?php else: ?>
<?php echo Form::select('status',getChequeStatus(),$value->status,['class' => 'form-control show-tick ms','id'=>'chqstatus','style'=>'background-color: #fff']); ?>
<?php endif; ?>
<?php if($value->chequeBounceCharge!=null): ?>
<span>Cheque Bounce Charge : <?php echo e($value->chequeBounceCharge); ?></span>
<?php else: ?>
<span id='bouncecharge'><input type="text" name='chequeBounceCharge' class="form-control" style="background-color: #fff;" placeholder="Penalty Bounced "></span>
<?php endif; ?>
</td>
<td>
<button class="btn btn-sm btn-success">Update Status</button>
<?php echo Form::close(); ?>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php $__currentLoopData = $lesserchequelist; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($value->ecNo); ?></td>
<td><?php echo e($value->firstName); ?> <?php echo e($value->middleName); ?> <?php echo e($value->lastName); ?></td>
<td><?php echo e($value->className); ?></td>
<td><?php echo e($value->sectionName); ?></td>
<td><?php echo e($value->paymentDate); ?></td>
<td><?php echo e($value->bankName); ?></td>
<td><?php echo e($value->chequeNo); ?></td>
<td><?php echo e($value->chequeDate); ?></td>
<td><?php echo e($value->totalPaid); ?></td>
<td><?php echo e($value->name); ?></td>
<td style="width:300px;">
<?php echo Form::open(['url' => 'school/chequebounce', 'class' => 'form-horizontal']); ?>
<input type="hidden" name='idLesserTransaction' value="<?php echo e($value->idLesserTransaction); ?>">
<?php if($value->status == 'Bounced'): ?>
<span>Cheque Bounced</span><br>
<?php else: ?>
<?php echo Form::select('status',getChequeStatus(),$value->status,['class' => 'form-control show-tick ms','id'=>'chqstatus','style'=>'background-color: #fff']); ?>
<?php endif; ?>
<?php if($value->chequeBounceCharge!=null): ?>
<span>Cheque Bounce Charge : <?php echo e($value->chequeBounceCharge); ?></span>
<?php else: ?>
<span id='bouncecharge'><input type="text" name='chequeBounceCharge' class="form-control" style="background-color: #fff;" placeholder="Penalty Bounced "></span>
<?php endif; ?>
</td>
<td>
<button class="btn btn-sm btn-success">Update Status</button>
<?php echo Form::close(); ?>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</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(){
$('#bouncecharge').hide();
$('#chqstatus').change(function() {
var val = $(this).val();
if((val == 'Bounced')){
$('#bouncecharge').show();
}else{
$('#bouncecharge').hide();
}
});
});
$(function () {
$('#tableexp').DataTable({
dom: 'Bfrtip',
scrollY: "500px",
scrollX: true,
scrollCollapse: true,
fixedColumns: {
left: 1
},
buttons: [
{ extend: 'csv', footer: true, text: 'Export to Excel',title:'Student Cheque Report',
exportOptions: {
columns: [0,1,2,3,4,5,6,7,8]
}
}
]
});
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('schools.school_layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
Copyright © 2021 -