%PDF- %PDF-
Direktori : /home/silvzytp/crm-dub-code/storage/framework/views/ |
Current File : //home/silvzytp/crm-dub-code/storage/framework/views/ab606621e8b3b10a7510ce4de2f33066b98fec10.php |
<?php $__env->startSection('title', $siteTitle); ?> <?php $__env->startPush('styles'); ?> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-12 col-sm-6 mx-auto"> <div class="card"> <div class="card-header"> <h4 class="mb-0 card-title"><?php echo e($siteTitle); ?></h4> </div> <div class="card-body"> <form action="<?php echo e(route(routeName().'.campaigns.store')); ?>" method="POST"> <?php echo csrf_field(); ?> <table id="campaign_table" class="table table-borderless mt-3"> <tbody> <tr> <td class="px-0"> <input type="text" name="campaign[1][name]" id="campaign_1_name" class="form-control" placeholder="Enter campaign..." required> </td> <td class="px-0 text-right"> <button type="button" class="btn btn-primary add_campaign" id="add_campaign"><i class="fas fa-plus"></i></button> </td> </tr> </tbody> </table> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.selectbox','data' => ['name' => 'status','labelName' => 'Status','error' => 'status','required' => 'required']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.selectbox'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'status','labelName' => 'Status','error' => 'status','required' => 'required']); ?> <?php $__currentLoopData = STATUS; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($key); ?>"><?php echo e($value); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <div class="text-right"> <button type="submit" class="btn btn-sm btn-success">Submit</button> </div> </form> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <script> // Dynamic permission field add remove var count = 1; function dynamicAppendField(row){ var html = ` <tr> <td class="px-0"> <input type="text" name="campaign[`+row+`][name]" id="campaign_`+row+`_name" class="form-control" placeholder="Enter campaign..." required> </td> <td class="px-0 text-right"> <button type="button" class="btn btn-danger remove_campaign remove_status"><i class="fas fa-minus"></i></button> </td> </tr>`; $('#campaign_table tbody').append(html); } $(document).on('click', '#add_campaign', function () { count++; dynamicAppendField(count); }); $(document).on('click', '.remove_campaign', function () { count--; $(this).closest('tr').remove(); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/silvzytp/crm-dub-code/resources/views/backend/modules/campaign/create.blade.php ENDPATH**/ ?>