ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 3.139.239.211 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'); ?> Add New Staff <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="box box-default"> <div class="box-header with-border hidden-print"> <h3 class="box-title"><?php echo $__env->yieldContent('pageTitle'); ?></h3> </div> <?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> </div> <?php else: ?> <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <p><?php echo e($error); ?><strong>Error!</strong></p> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> <?php if(session('msg')): ?> <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('msg')); ?> </div> <?php endif; ?> <form method="post" action="<?php echo e(url('staffContact/saved')); ?>" id="form1"> <?php echo e(csrf_field()); ?> <!--hidden field for updating record--> <div class="box-body"> <div class="row"> <div class="col-md-6"> <label>Name</label> <input type="text" name="name" id="name" class="form-control input-lg" required/> <label>Phone</label> <input type="text" name="phone" id="name" class="form-control input-lg" required/> </div> <br> <button type="submit" name="button" class="btn btn-sm btn-info">Add New Contact</button> </div> </div> </form> <div class="table-responsive col-md-12" style="font-size: 12px; padding:10px;"> <table id="mytable" class="table table-bordered table-striped table-highlight" > <thead> <tr bgcolor="#c7c7c7"> <th >S/N</th> <th >Name</th> <th >Phone</th> <th >Edit</th> <th> Delete</th> </tr> </thead> <body> <?php $serialNum =1; ?> <?php $__empty_1 = true; $__currentLoopData = $staff; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $listStaff): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr class="input-lg"> <td><?php echo e($serialNum ++); ?></td> <td><?php echo e($listStaff->Name); ?></td> <td><?php echo e($listStaff->phone); ?></td> <td><button class="btn-sm btn-info" data-toggle="modal" data-target="#exampleModalCenter<?php echo e($listStaff->id); ?>">Edit Contact</button></td> <td><button class="btn-sm btn-danger"><a style="color:white; cursor: pointer;" href="<?php echo e(url('staffContact/show-staff-delete/'.$listStaff->id)); ?>">Delete</a></button></td> </tr> </body> <!--EDIT Modal --> <div class="modal fade" id="exampleModalCenter<?php echo e($listStaff->id); ?>" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered" role="form"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title" id="exampleModalLongTitle">Edit Contact</h4> <form method="post" action="<?php echo e(url('staffContact/update')); ?>" id="form1"> <?php echo e(csrf_field()); ?> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <input type="hidden" name="StaffRecordID" id="staffID" class="form-control input-lg" value="<?php echo e($listStaff->id); ?>" /> <input type="text" name="name" id="name" class="form-control input-lg" value=" <?php echo e($listStaff->Name); ?>" /> <br> <input type="text" name="phone" id="name" class="form-control input-lg" value=" <?php echo e($listStaff->phone); ?>" /> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> <button type="submit" class="btn btn-primary">Save changes</button> </form> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <td>No result found</td> <?php endif; ?> </table> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('styles'); ?> <?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/staffContact/create.blade.php ENDPATH**/ ?>