Viewing file: 35429297c43ecb36584f9f7beece6d8f.php (21.01 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<div class="row"> <div class="col-md-6"> <form class="form-horizontal" action="<?php echo e(route('admin.pricingplan.update')); ?>" method="POST" enctype="multipart/form-data"> <?php echo method_field('PUT'); ?> <?php echo csrf_field(); ?> <div class="card"> <div class="card-body"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal89b295b0763c93abe0143426334eb5d6 = $attributes; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['name' => 'pricing_plan_background'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.label'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Forms\Label::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $attributes = $__attributesOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__attributesOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <input type="file" class="form-control dropify" data-default-file="<?php echo e($cms->pricing_plan_background); ?>" name="pricing_plan_background" autocomplete="image" data-allowed-file-extensions="jpg png jpeg" accept="image/png, image/jpg, image/jpeg"> </div> </div> </div> </div> <div class="row mb-3"> <div class="col-12 text-center"> <button type="submit" class="btn btn-success"> <i class="fas fa-sync"></i> <?php echo e(__('update_pricing_plan_settings')); ?>
</button> </div> </div> </div> </form> </div> <div class="col-md-6"> <form class="form-horizontal" action="<?php echo e(route('admin.pricingplanimage.update')); ?>" method="POST" enctype="multipart/form-data"> <?php echo method_field('PUT'); ?> <?php echo csrf_field(); ?> <div class="card"> <div class="card-body"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal89b295b0763c93abe0143426334eb5d6 = $attributes; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['name' => 'pricing_plan_image'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.label'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Forms\Label::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $attributes = $__attributesOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__attributesOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <input type="file" class="form-control dropify" data-default-file="<?php echo e($cms->pricing_plan_image); ?>" name="pricing_plan_image" autocomplete="image" data-allowed-file-extensions="jpg png jpeg" accept="image/png, image/jpg, image/jpeg"> </div> </div> </div> </div> <div class="row mb-3"> <div class="col-12 text-center"> <button type="submit" class="btn btn-success"> <i class="fas fa-sync"></i> <?php echo e(__('update_pricing_plan_image_settings')); ?>
</button> </div> </div> </div> </form> </div> </div> <?php $editData = null; if (session()->has('editData')) { $editData = session('editData'); } ?> <div class="row"> <div class="col-md-8"> <!-- Show Price Plan Service list --> <div class="row"> <div class="col-md-12"> <div class="card mb-4"> <div class="card-header"> <h3 class="card-title text-dark" style="line-height: 36px;"> <?php echo e(__('pricing_plan_service_list')); ?></h3> </div> <div class="card-body table-responsive mb-2"> <table class="table table-bordered text-center mb-3"> <thead class="text-dark"> <tr> <th width="1%"><?php echo e(__('no')); ?></th> <th width="15%"><?php echo e(__('icon')); ?></th> <th width="20%"><?php echo e(__('pricing_plan_service_title')); ?></th> <th width="25%"><?php echo e(__('pricing_plan_service_description')); ?></th> <th width="15%"><?php echo e(__('action')); ?></th> </tr> </thead> <tbody id="sortablePricing"> <?php $__empty_1 = true; $__currentLoopData = $pricePlanServices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $PricePlanService): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr data-id="<?php echo e($PricePlanService->id); ?>"> <td> <div class="handle btn mt-0 text-left cursor-move"> <?php if (isset($component)) { $__componentOriginal1923d45318ee2377d8fddad6fe007ae2 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal1923d45318ee2377d8fddad6fe007ae2 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.svg.drag-icon','data' => ['fill' => 'black']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('svg.drag-icon'); ?> <?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(['fill' => 'black']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal1923d45318ee2377d8fddad6fe007ae2)): ?> <?php $attributes = $__attributesOriginal1923d45318ee2377d8fddad6fe007ae2; ?> <?php unset($__attributesOriginal1923d45318ee2377d8fddad6fe007ae2); ?> <?php endif; ?> <?php if (isset($__componentOriginal1923d45318ee2377d8fddad6fe007ae2)): ?> <?php $component = $__componentOriginal1923d45318ee2377d8fddad6fe007ae2; ?> <?php unset($__componentOriginal1923d45318ee2377d8fddad6fe007ae2); ?> <?php endif; ?> </div> </td> <td class="text-center"> <img src="<?php echo e(asset($PricePlanService->service_icon)); ?>" alt="" width="60px" height="60px"> </td> <td class="text-center"> <?php echo e($PricePlanService->title); ?>
</td> <td class="text-center"> <?php echo e($PricePlanService->description); ?>
</td> <td class="text-center"> <a title="<?php echo e(__('edit')); ?>" href="<?php echo e(route('admin.pricingplanservice.edit', $PricePlanService->id)); ?>" class="btn bg-info mr-1"> <i class="fas fa-edit"></i> </a> <form action="<?php echo e(route('admin.pricingplanservice.delete', $PricePlanService->id)); ?>" method="POST" class="d-inline"> <?php echo method_field('DELETE'); ?> <?php echo csrf_field(); ?> <button title="<?php echo e(__('delete')); ?>" onclick="return confirm('<?php echo e(__('are_you_sure')); ?>?');" class="btn bg-danger"> <i class="fas fa-trash text-light"></i> </button> </form> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <tr> <td colspan="5" class="text-center"><?php echo e(__('nothing_found')); ?>.</td> </tr> <?php endif; ?> </tbody> </table> </div> </div> </div> </div> </div> <div class="col-md-4">
<?php if(isset($editData)): ?> <form class="form-horizontal" action="<?php echo e(route('admin.pricingplanservice.update', $editData->id)); ?>" method="POST" enctype="multipart/form-data"> <?php echo method_field('PUT'); ?> <?php echo csrf_field(); ?> <div class="card"> <div class="card-header"><?php echo e(__('edit_pricing_plan_service')); ?></div> <?php else: ?> <form class="form-horizontal" action="<?php echo e(route('admin.pricingplanservice.store')); ?>" method="POST" enctype="multipart/form-data"> <?php echo method_field('POST'); ?> <?php echo csrf_field(); ?> <div class="card"> <div class="card-header"><?php echo e(__('add_pricing_plan_service')); ?></div> <?php endif; ?> <div class="card-body"> <div class="form-group"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal89b295b0763c93abe0143426334eb5d6 = $attributes; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['name' => 'pricing_plan_service_title','required' => true] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.label'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Forms\Label::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $attributes = $__attributesOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__attributesOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <input type="text" name="pricing_plan_service_title" class="form-control" value="<?php echo e(isset($editData) ? $editData->title : null); ?>"> </div> <div class="form-group"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal89b295b0763c93abe0143426334eb5d6 = $attributes; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['name' => 'pricing_plan_service_description','required' => true] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.label'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Forms\Label::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $attributes = $__attributesOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__attributesOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <textarea name="pricing_plan_service_description" class="form-control" cols="10" rows="8"><?php echo e(isset($editData) ? $editData->description : null); ?></textarea> </div> <div class="form-group"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal89b295b0763c93abe0143426334eb5d6 = $attributes; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['name' => 'pricing_plan_service_icon'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.label'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Forms\Label::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $attributes = $__attributesOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__attributesOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <input type="file" class="form-control dropify" data-default-file="" name="pricing_plan_service_icon" autocomplete="image" data-allowed-file-extensions="jpg png jpeg" accept="image/png, image/jpg, image/jpeg"> </div> </div> <div class="row mb-3"> <div class="col-12 text-center"> <button type="submit" class="btn btn-success"> <i class="fas fa-sync"></i> <?php echo e(isset($editData) ? __('update') : __('add_pricing_plan_service_settings')); ?>
</button> </div> </div> </div> </form> </div> </div>
<?php $__env->startPush('script'); ?> <script type="text/javascript" src="//code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <script type="text/javascript"> // sortablePricing $(function() { $("#sortablePricing").sortable({ items: 'tr', cursor: 'move', opacity: 0.4, scroll: false, dropOnEmpty: false, update: function() { sendTaskOrderToServer('#sortablePricing tr'); }, classes: { "ui-sortable": "highlight" }, }); $("#sortablePricing").disableSelection();
function sendTaskOrderToServer(selector) { var order = []; $(selector).each(function(index, element) { order.push({ id: $(this).attr('data-id'), position: index + 1 }); });
$.ajax({ type: "POST", dataType: "json", url: "<?php echo e(route('admin.pricePlan.sorting')); ?>", data: { order: order, _token: '<?php echo e(csrf_token()); ?>' }, success: function(response) { toastr.success(response.message, 'Success'); } }); } }); </script> <?php $__env->stopPush(); ?> <?php /**PATH E:\add listing 8-9-25\addListing\resources\views/components/backend/setting/cms/pricing-plan.blade.php ENDPATH**/ ?>
|