Viewing file: af981aa6bf6a11a46f963c1eb6125d83.php (3.54 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title', trans('customer.section_keyword', ['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'); ?> <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_keyword'); ?></h2> <a class="btn btn-info float-right" href="<?php echo e(route('customer.keywords.index')); ?>"><?php echo app('translator')->get('customer.back'); ?></a> </div> <form method="post" role="form" id="KeywordForm" action="<?php echo e(route('customer.keywords.store')); ?>" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <div class="card-body"> <?php echo $__env->make('customer.keywords.form', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> <div class="card-footer"> <button 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 !src=""> "use strict";
$('#KeywordForm').validate({ rules: { word: { required: true, }, phone_number: { required: true, } }, messages: { name:"Name is required" }, 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'); } });
$('.groups').select2({ multiple:false });
$('#customer_numbers').select2({ multiple:false });
$(document).on('change', 'select[name=type]', function(e){ const type=$(this).val();
if(type=='opt_in'){ $('#contactGroup').removeClass('d-none'); }else{ $('#contactGroup').addClass('d-none'); } }); </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/sms.picotech.app/public_html/resources/views/customer/keywords/create.blade.php ENDPATH**/ ?>
|