%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/silvzytp/crm-dub-code/storage/framework/views/
Upload File :
Create Path :
Current File : //home/silvzytp/crm-dub-code/storage/framework/views/a843c392c4fdbb82f0e0e71d8e232f0d630fab16.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().'.locations.store')); ?>" method="POST">
                        <?php echo csrf_field(); ?>

                        <table id="location_table" class="table table-borderless mt-3">
                            <tbody>
                                <tr>
                                    <td class="px-0">
                                        <input type="text" name="location[1][name]" id="location_1_name" class="form-control" placeholder="Enter location..." required>
                                    </td>
                                    <td class="px-0 text-right">
                                        <button type="button" class="btn btn-primary add_location" id="add_location"><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="location[`+row+`][name]" id="location_`+row+`_name" class="form-control" placeholder="Enter location..." required>
                    </td>
                    <td class="px-0 text-right">
                        <button type="button" class="btn btn-danger remove_location remove_status"><i class="fas fa-minus"></i></button>
                    </td>
                </tr>`;

            $('#location_table tbody').append(html);
        }

        $(document).on('click', '#add_location', function () {
            count++;
            dynamicAppendField(count);
        });

        $(document).on('click', '.remove_location', 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/location/create.blade.php ENDPATH**/ ?>

Zerion Mini Shell 1.0