ÿØÿà JFIF ÿá Exif MM * ÿÛ C
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 : |
<?php $__env->startSection('pageTitle'); ?> Assign Ability <?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">×</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_message')): ?> <div class="alert alert-error 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 echo e(session('error_message')); ?> </div> <?php endif; ?> <form method="post" action="<?php echo e(url('/assign-ability')); ?>" class="form-horizontal"> <?php echo e(csrf_field()); ?> <div class="form-group"> <label for="section" class="col-md-3 control-label">Select User Role</label> <div class="col-md-9"> <select name="user" class="select_picker form-control" data-live-search="true" id="role"> <option value="">Select One</option> <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($list->roleID); ?>"><?php echo e($list->rolename); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> <div class="form-group"> <label for="section" class="col-md-3 control-label">Select Role</label> <div class="col-sm-offset-3 col-md-9"> <input type="checkbox" name="can_submit_salary" value="1"> Can Submit salary </div> <div class="col-sm-offset-3 col-md-9"> <input type="checkbox" name="can_authorize_salary" value="1"> Can Authorize to checking </div> <div class="col-sm-offset-3 col-md-9"> <input type="checkbox" name="can_check" value="1"> Can Check </div> <div class="col-sm-offset-3 col-md-9"> <input type="checkbox" name="can_audit" value="1"> Can Audit </div> <div class="col-sm-offset-3 col-md-9"> <input type="checkbox" name="can_cpo" value="1"> Cpo action </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">ASSIGN ABILITY</button> </div> </div> </form> </div> </div> </div> </div> <div id="page-wrapper" class="box box-default"> <div class="box-body"> <h2 class="text-center">ASSIGNED ABILITIES</h2> <div style="clear: both;"></div> <div class="row" style="margin-top: 25px;"> <div class="col-md-12"> <table class="table table-striped table-condensed table-bordered input-sm" id="userRoles"> <thead> <tr class="input-sm"> <th>S/N</th> <th>Name</th> <th>Can Submit salary</th> <th>Can Authorize</th> <th>Can Check</th> <th>Can Audit</th> <th>Cpo action</th> <th>Action</th> </tr> </thead> <tbody> <?php $key = 1; ?> <?php $__currentLoopData = $assignedFunctions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr id="tr"> <td><?php echo e($key++); ?></td> <td><?php echo e(strtoupper($list->rolename)); ?></td> <td> <?php if($list->can_submit_salary == 1): ?> Yes <?php else: ?> No <?php endif; ?> </td> <td> <?php if($list->can_authorize_salary == 1): ?> Yes <?php else: ?> No <?php endif; ?> </td> <td> <?php if($list->can_check == 1): ?> Yes <?php else: ?> No <?php endif; ?> </td> <td> <?php if($list->can_audit == 1): ?> Yes <?php else: ?> No <?php endif; ?> </td> <td> <?php if($list->can_cpo == 1): ?> Yes <?php else: ?> No <?php endif; ?> </td> <td> <button title="Edit" type="button" class="btn btn-primary btn-sm fa fa-edit" data-target="#editModal<?php echo e($list->roleID); ?>" data-toggle="modal"> </button> </td> </tr> <div id="editModal<?php echo e($list->roleID); ?>" 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 User Ability for <?php echo e($list->rolename); ?> </h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <form class="form-horizontal" action="<?php echo e(url('/update-assign-ability')); ?>" role="form" method="POST"> <?php echo e(csrf_field()); ?> <div class="modal-body"> <input type="hidden" class="col-sm-9 form-control" name="user" value="<?php echo e($list->roleID); ?>"> <div class="form-group mt-2"> <label for="section" class="col-md-3 control-label">Select Role</label> <div class="col-md-9"> <input type="checkbox" name="can_submit_salary" <?php if($list->can_submit_salary == 1) echo "checked"; else echo " "; ?> value="1"> Can Submit salary </div> <div class="col-md-9"> <input type="checkbox" name="can_authorize_salary" <?php if($list->can_authorize_salary == 1) echo "checked"; else echo " "; ?> value="1"> Can Authorize to checking </div> <div class="col-sm-offset-3 col-md-9"> <input type="checkbox" name="can_check" <?php if($list->can_check == 1) echo "checked"; else echo " "; ?> value="1"> Can Check </div> <div class="col-sm-offset-3 col-md-9"> <input type="checkbox" name="can_audit" <?php if($list->can_audit == 1) echo "checked"; else echo " "; ?> value="1"> Can Audit </div> <div class="col-sm-offset-3 col-md-9"> <input type="checkbox" name="can_cpo" <?php if($list->can_cpo == 1) echo "checked"; else echo " "; ?> value="1"> Cpo action </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> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> <div class="hidden-print"><?php echo e($assignedFunctions->links()); ?></div> </div> </div> <!-- /.col --> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <script src="<?php echo e(asset('assets/js/jquery-ui.min.js')); ?>"></script> <!-- autocomplete js--> <script src="<?php echo e(asset('assets/js/jquery.autocomplete.min.js')); ?>"></script> <script src="<?php echo e(asset('assets/js/my-hr.js')); ?>" type="text/javascript"></script> <?php $__env->startSection('styles'); ?> <link rel="stylesheet" type="text/css" href="<?php echo e(asset('assets/css/custom-style.css')); ?>"> <?php $__env->stopSection(); ?> <script type="text/javascript"> $('.select_picker').selectpicker({ style: 'btn-default', size: 4 }); $(function() { $("#autocomplete").autocomplete({ serviceUrl: murl + '/user/search', minLength: 2, onSelect: function(suggestion) { $('#nameID').val(suggestion.data); //showAll(); //alert(suggestion.data); var v = suggestion.data; $.ajax({ type: 'post', url: murl + '/user/display', data: { 'nameID': v, '_token': $('input[name=_token]').val() }, success: function(datas) { // $.each(datas, function(index, obj){ alert(ok); //$("#userRoles").append(tr); //}); } }); } }); }); </script> <script> function editfunc(id,can_submit,can_authorize,can_check,can_audit,can_cpo) { $(document).ready(function(){ $('#id').val(id); $('#can_submit').val(can_submit); // $('#email').val(email); // $('#role').val(roleID); // $('#status').val(status); // $('#division').val(division); // $('#global').val(global); // $('#id').val(id); $("#editModal").modal('show'); }); } </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/MasterRolePermission/assignUserFunction/index.blade.php ENDPATH**/ ?>