%PDF- %PDF-
Direktori : /home/silvzytp/calling_code/storage/framework/views/ |
Current File : //home/silvzytp/calling_code/storage/framework/views/f94c65cc3a55cf4823ee765229c83ef41c5925b3.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(isset($callingStatus) ? route(routeName().'.sub-status.update', $callingStatus->id) : route(routeName().'.sub-status.store')); ?>" method="POST"> <?php echo csrf_field(); ?> <?php if(isset($callingStatus)): ?> <?php echo method_field('PUT'); ?> <?php endif; ?> <?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']); ?> <option value="">-- Select Status --</option> <?php $__currentLoopData = $status; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($value->id); ?>" <?php if(isset($callingStatus)): ?> <?php echo e($value->id == $callingStatus->status_id ? 'selected' : ''); ?> <?php endif; ?>><?php echo e($value->name); ?></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; ?> <?php if(isset($callingStatus)): ?> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.inputbox','data' => ['labelName' => 'Sub Status','name' => 'name','required' => 'required','value' => ''.e($callingStatus->name ?? old('name')).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form.inputbox'); ?> <?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(['labelName' => 'Sub Status','name' => 'name','required' => 'required','value' => ''.e($callingStatus->name ?? old('name')).'']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <?php else: ?> <table id="status_table" class="table table-borderless mt-3"> <tbody> <tr> <td class="px-0"> <input type="text" name="sub_status[1][name]" id="sub_status_1_name" class="form-control" placeholder="Enter Sub Status..." required> </td> <td class="px-0 text-right"> <button type="button" class="btn btn-primary add_status" id="add_status"><i class="fas fa-plus"></i></button> </td> </tr> </tbody> </table> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.selectbox','data' => ['name' => 'is_published','labelName' => 'Is Published','error' => 'is_published','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' => 'is_published','labelName' => 'Is Published','error' => 'is_published','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 if(isset($callingStatus)): ?> <?php echo e(STATUS[$key] == $callingStatus->status ? 'selected' : ''); ?> <?php endif; ?>><?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="sub_status[`+row+`][name]" id="sub_status_`+row+`_name" class="form-control" placeholder="Enter Sub Status..." required> </td> <td class="px-0 text-right"> <button type="button" class="btn btn-danger add_status remove_status"><i class="fas fa-minus"></i></button> </td> </tr>`; $('#status_table tbody').append(html); } $(document).on('click', '#add_status', function () { count++; dynamicAppendField(count); }); $(document).on('click', '.remove_status', 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/calling_code/resources/views/backend/pages/sub-status/form.blade.php ENDPATH**/ ?>