Viewing file: 0498d69dd4d8c1e2148575a5c709a338c9b1215c.php (3.84 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title','Edit Staff'); ?>
<?php $__env->startSection('extra-css'); ?> <?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-12 mx-auto col-sm-10 mt-3"> <!-- Custom Tabs --> <div class="card"> <div class="card-header p-0"> <div class="row"> <h2 class="card-title pl-3"><a href="<?php echo e(route('customer.staff.index')); ?>"><?php echo app('translator')->get('Staffs'); ?></a></h2> </div> </div><!-- /.card-header --> <div class="card-body"> <form method="post" role="form" id="customerForm" action="<?php echo e(route('customer.staff.update',[$customer])); ?>"> <?php echo csrf_field(); ?> <?php echo method_field('put'); ?> <?php echo $__env->make('customer.staff.form', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<button type="submit" class="btn btn-primary"><?php echo app('translator')->get('admin.form.button.submit'); ?></button> </form> </div><!-- /.card-body --> </div> <!-- ./card -->
</div> <!-- /.card --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content --> <?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-scripts'); ?> <script src="<?php echo e(asset('plugins/jquery-validation/jquery.validate.min.js')); ?>"></script> <script !src=""> "use strict"; let $validate; $validate = $('#customerForm').validate({ rules: { email: { required: true, email: true, }, first_name: { required: true }, last_name: { required: true }, }, messages: { email: { required: "Please enter a email address", email: "Please enter a vaild email address" }, password: { required: "Please provide a password", minlength: "Your password must be at least 5 characters long" }, first_name: {required: "Please provide first name"}, last_name: {required: "Please provide last name"} }, errorElement: 'span', errorPlacement: function (error, element) { error.addClass('invalid-feedback'); element.closest('.form-group').append(error); }, highlight: function (element, errorClass, validClass) { $(element).addClass('is-invalid'); }, unhighlight: function (element, errorClass, validClass) { $(element).removeClass('is-invalid'); } }); </script> <?php if(!isset($customer)): ?> <script !src=""> "use strict"; $validate.rules('add', { password: { required: true, minlength: 5 }, }) </script> <?php endif; ?> <?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.customer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/gateway.picotech.app/public_html/resources/views/customer/staff/edit.blade.php ENDPATH**/ ?>
|