Viewing file: 935f3b254d62f9756084f28ecec5ae2485281360.php (4.1 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title','Edit Group'); ?>
<?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"> <!-- Custom Tabs --> <div class="card mt-3">
<div class="card-header d-flex p-0"> <h2 class="card-title p-3"><a href="<?php echo e(route('customer.groups.index')); ?>"><?php echo app('translator')->get('customer.groups'); ?></a></h2>
</div><!-- /.card-header --> <div class="card-body"> <form method="post" role="form" id="groupForm" action="<?php echo e(route('customer.from-group.update',[$group])); ?>"> <?php echo csrf_field(); ?> <?php echo method_field('put'); ?> <?php echo $__env->make('customer.from_group.form', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<button type="submit" class="btn btn-primary"><?php echo app('translator')->get('customer.update'); ?></button> </form> <!-- /.tab-content --> </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="<?php echo e(asset('plugins/select2/js/select2.full.min.js')); ?>"></script>
<script !src=""> "use strict"; $('#groupForm').validate({ rules: { name: { required: true } }, messages: { name: {required: "Please provide 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'); } }); $('.select2').select2({ multiple:true }).val(<?php echo json_encode($from_group_numbers, 15, 512) ?>).change();
$(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/edit.blade.php ENDPATH**/ ?>
|