Viewing file: a408d57e4430cc30427acf4f9ad4c1394a7c2f04.php (5.42 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title',); ?>
<?php echo e(trans('customer.edit_gateway')); ?>
<?php $__env->stopSection(); ?>
<?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-12">
<!-- Custom Tabs -->
<div class="card">
<div class="card-header d-flex p-0">
<h2 class="card-title p-3"><a
href="<?php echo e(route('customer.gateway.index')); ?>"><?php echo e(trans('customer.back')); ?></a></h2>
</div><!-- /.card-header -->
<div class="card-body">
<form method="post" role="form" id="numberForm"
action="<?php echo e(route('customer.gateway.update',[$gateway])); ?>">
<?php echo csrf_field(); ?>
<?php echo method_field('put'); ?>
<?php echo $__env->make('customer.gateway.form', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<button type="submit"
class="btn btn-primary mt-2 float-right"><?php echo app('translator')->get('admin.form.button.submit'); ?></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="">
"use strict";
let number = 0;
$(document).on('click', '.addMore', function (e) {
number++
let html = '';
html = `
<div class="row" id="addedSection_${number}">
<div class="form-group col-4 col-md-4 pt-2">
<input type="text" class="form-control" placeholder="Enter Key" name="new_key[]">
</div>
<div class="form-group col-6 col-md-7 pt-2">
<input type="text" class="form-control" placeholder="Enter Key Value" name="new_value[]">
</div>
<div class="col-md-1 col-2 pt-2"><button type="button" class="btn btn-sm btn-danger deleteRow" data-id="${number}"><i class="fa fa-minus "></i></button></div>
</div>`;
$('#addMoreSection').append(html);
});
$(document).on('click', '.deleteRow', function (e) {
const num = $(this).attr('data-id');
number--
$('#addedSection_' + num).remove()
})
let hNumber = 0;
$(document).on('click', '.addMoreHeaders', function (e) {
hNumber++
let html = '';
html = `
<div class="form-group col-4 col-md-4 pt-2 header_sec_${hNumber}">
<input type="text" class="form-control" placeholder="Enter Key" name="new_header_key[]">
</div>
<div class="form-group col-6 col-md-7 pt-2 header_sec_${hNumber}">
<input type="text" class="form-control" placeholder="Enter Key Value" name="new_header_value[]">
</div>
<div class="col-md-1 col-2 pt-2 header_sec_${hNumber}"><button type="button" class="btn btn-sm btn-danger deleteHeaderRow" data-id="${hNumber}"><i class="fa fa-minus "></i></button></div>`;
$('#addHeaders').append(html);
});
$(document).on('click', '.deleteHeaderRow', function (e) {
const num = $(this).attr('data-id');
hNumber--
$('.header_sec_' + num).remove()
});
$('#offDay').select2({
placeholder: 'Select an offday',
multiple: true
}).val(<?php echo json_encode($offdays, 15, 512) ?>).change();
$('#offDay').trigger('change');
$('.message_limit').on('keyup or paste or change', function (e) {
let message_limit = $(this).val();
$('#message_limit').text(message_limit ? message_limit : '0');
});
$('.minutes').on('keyup or paste or change', function (e) {
let minute_limit = $(this).val()
$('#minutes').text(minute_limit ? minute_limit : '0');
});
$('.change-mode').on('click', function (e) {
$("#gateway-custom-section").toggle();
$("#gateway-prefill-section").toggle();
$('#gateway_prefill_enable').val($("#gateway-custom-section").is(':hidden'));
});
$(document).ready(function () {
$('[data-toggle="tooltip"]').tooltip();
});
</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/picotext.picotech.app/public_html/resources/views/customer/gateway/edit.blade.php ENDPATH**/ ?>
|