IMMREX7

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

<?php $__env->startSection('content'); ?>

<div class="row clearfix">
    <div class="col-sm-12">
        <div class="card">
            <?php echo Form::open(['method' => 'GET',  'action' => ['School\CreditNoteController@printCreditNote'],'target' => '_blank', 'class' => 'form-horizontal']); ?>

            <div class="header">
                
                <h2><strong>Credit Notes</strong></h2>
                <br>
                <?php echo Form::submit('Print',['class' => 'btn btn-raised btn-success btn-round waves-effect']); ?>

                  <br>
                <?php if($errors->has('student')): ?>
                <label id="minmaxlength-error" class="error" for="minmaxlength">
                    <strong><?php echo e($errors->first('student')); ?></strong>
                </label>
                <?php endif; ?>
                
              
            </div>
            <div class="body table-responsive">
                <table class="table table-bordered table-striped table-hover dataTable js-basic-example">
                    <thead>
                        <tr>
                            <th>Select TO Print</th>
                            <th>Ec No.</th>
                            <th>Name</th>
                            <th>Father </th>
                            <th>Mobile</th>
                            <th>Class</th>
                            <th>Section</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $i = 1; ?>
                        <?php $__currentLoopData = $creditnotes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $var): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if($var->student->isActive == 'Y'): ?>
                        <tr>
                            <td><input type="checkbox" value="<?php echo e($var->idNotes); ?>" name='notes[]'></td>
                            <td><?php echo e($var->student->ecNo); ?></td>
                            <td><?php echo e($var->student->firstName); ?> <?php echo e($var->student->middleName); ?> <?php echo e($var->student->lastName); ?></td>
                            <td><?php echo e($var->student->father_fname); ?> <?php echo e(isset($var->student->father_lname) ? $var->student->father_lname : ''); ?></td>
                            <td><?php echo e($var->student->father_mobile); ?></td>
                            <td><?php echo e($var->student->classM->className); ?></td>
                            <td><?php echo e($var->student->section->sectionName); ?></td>
                        </tr>
                        <?php $i++; ?>
                        <?php endif; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
            </div>
             <?php echo Form::close(); ?>

        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<script>
$(document).on('click', '.class_ids', function(){
    //var checkAll = this.checked;
    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;
            });
        }else{
            $('.sectionclass').each(function () {
                this.checked = checkAll;
            });
        }
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('schools.school_layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

Copyright © 2021 - 2025 IMMREX7