Viewing file: 1875d2480cd34b5f9a5863b8e1bb093a.php (3.21 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title','Dynamic Template Edit'); ?>
<?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-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.dynamic-template.index')); ?>"><?php echo app('translator')->get('customer.dynamic_template'); ?></a></h2>
</div><!-- /.card-header -->
<div class="card-body">
<form method="post" role="form" id="contactForm"
action="<?php echo e(route('customer.dynamic-template.update',[$template])); ?>">
<?php echo csrf_field(); ?>
<?php echo method_field('put'); ?>
<?php echo $__env->make('customer.dynamic_template.form', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<button type="submit" class="btn btn-primary mt-4"><?php echo app('translator')->get('customer.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 counter=0;
$(document).on('click', '#add_more', function(e){
counter++;
let html='';
html=`<div class="row mt-2" id="field_row_${counter}">
<div class="col-md-11 col-11">
<label for="">Field</label>
<input type="text" name="inputes[]" class="form-control" placeholder="Enter Field Name">
</div>
<div class="col-md-1 col-1 pt-3">
<button class="btn btn-sm btn-danger mt-3 delete_field" data-id="${counter}" type="button">
<i class="fa fa-trash"></i>
</button>
</div>
</div>`;
$('#append_fields').append(html);
});
$(document).on('click', '.delete_field', function(e){
const id =$(this).attr('data-id');
$('#field_row_'+id).remove();
})
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.customer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\Project\Pico-SMS-v-2\picosms\resources\views/customer/dynamic_template/edit.blade.php ENDPATH**/ ?>
|