IMMREX7

aku nok ndi : /home/spdtg/www/schoolmis/storage/framework/views/
File Up :
aku nok ndi : /home/spdtg/www/schoolmis/storage/framework/views/dcafe2508bd6f438a7a2f2ff7fba91f94d5ebeb2.php

<?php $__env->startSection('content'); ?>
<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\Hostel\HostelFeeChequeController@index'], '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 js-basic-example dataTable">
                    <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 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 style="width:300px;">
                                <?php echo Form::open(['url' => 'school/hostelcheques', 'class' => 'form-horizontal']); ?>

                                <input type="hidden" name='idHostelTransaction' value="<?php echo e($value->idHostelTransaction); ?>">
                                <?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 style="width:300px;">
                                <?php echo Form::open(['url' => 'school/hostelcheques', 'class' => 'form-horizontal']); ?>

                                <input type="hidden" name='idHostelLesserTransaction' value="<?php echo e($value->idHostelLesserTransaction); ?>">
                                <?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();
        }
    });
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('schools.school_layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

Copyright © 2021 - 2025 IMMREX7