Viewing file: 8d91750d9ec2f1c05d23a5a0565648fc.php (3.54 KB) -rwxrwxrwx Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title', trans('customer.dlt_template_section',['index'=>' Create'])); ?>
<?php $__env->startSection('extra-css'); ?> <link rel="stylesheet" href="<?php echo e(asset('plugins/select2/css/select2.min.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"> <div class="card"> <div class="card-header"> <h2 class="card-title"><?php echo app('translator')->get('customer.new_dlt_template'); ?></h2> <a class="btn btn-info float-right" href="<?php echo e(route('customer.dlt.template')); ?>"><?php echo app('translator')->get('customer.back'); ?></a> </div> <!-- /.card-header --> <!-- form start --> <form method="post" role="form" id="groupForm" action="<?php echo e(route('customer.dlt.template.store')); ?>" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <div class="card-body"> <?php echo $__env->make('customer.dlt_template.form', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> <!-- /.card-body --> <div class="card-footer"> <button id="disabled" type="submit" class="btn btn-primary"><?php echo app('translator')->get('customer.submit'); ?></button> </div> </form> </div>
</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="<?php echo e(asset('plugins/select2/js/select2.full.min.js')); ?>"></script> <script> $(document).ready(function () { $('#name').on('input', function () { var name = $(this).val();
if (name.length > 0) { $.ajax({ url: '<?php echo e(route("customer.check.dlt.template.name")); ?>', type: 'GET', data: {name: name}, success: function (response) { if (response.exists) { $('#name-exists').show(); $('#disabled').prop('disabled', true); } else { $('#name-exists').hide(); $('#disabled').prop('disabled', false); } } }); } else { $('#name-exists').hide(); $('#disabled').prop('disabled', false); } }); }); $('.select2').select2(); </script> <?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.customer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/test.sms.picotech.app/public_html/resources/views/customer/dlt_template/create.blade.php ENDPATH**/ ?>
|