Viewing file: b511e0acee3b0a3ae78ae4037ef5fadf2a9070ac.php (4.19 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title','Groups'); ?>
<?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_group'); ?></h2> <a class="btn btn-info float-right" href="<?php echo e(route('customer.from-group.index')); ?>"><?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.from-group.store')); ?>" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <div class="card-body"> <?php echo $__env->make('customer.from_group.form', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> <!-- /.card-body -->
<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";
$('#groupForm').validate({ rules: { name: { required: true, }, status: { 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'); } });
$('.select2').select2({ multiple:true });
$(document).on('change', '#senderType', function (e){ const type=$(this).val(); if(!type){ toastr.success('Webhook successfully copied','Copied!', {timeOut: 2200}); return; }
$.ajax({ type:'GET', url:'<?php echo e(route('customer.get.senders')); ?>', data:{ type:type },
success: function(res){ if(res.status=='success' && res.data.length > 0){ let html=''; $.each(res.data, function (index, value){ html+=`<option value="${value.number}">${value.number}</option>`; });
$('#from_number').html(html); } } }) })
</script> <?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.customer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/pcolfjqt/picotext.picotech.app/resources/views/customer/from_group/create.blade.php ENDPATH**/ ?>
|