%PDF- %PDF-
Direktori : /home/silvzytp/dsr_code/storage/framework/views/ |
Current File : /home/silvzytp/dsr_code/storage/framework/views/f9e26917325a7ae37acdc8465c1de45e4395c0cf.php |
<?php $__env->startSection('title', $siteTitle); ?> <?php $__env->startSection('action'); ?> <button type="button" class="btn btn-sm btn-success submit-form-btn"> <?php if(isset($target)): ?> Update <?php else: ?> Submit <?php endif; ?> </button> <?php $__env->stopSection(); ?> <?php $__env->startPush('styles'); ?> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-12"> <form action="<?php echo e(isset($target) ? route('app.targets.update', $target->id) : route('app.targets.store')); ?>" method="POST" id="form"> <?php echo csrf_field(); ?> <?php if(isset($target)): ?> <?php echo method_field('PUT'); ?> <?php endif; ?> <div class="row"> <div class="col-md-12"> <div class="ibox"> <div class="ibox-body"> <div class="row"> <div class="col-md-4"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.inputbox','data' => ['name' => 'date','class' => 'date','labelName' => 'Date','value' => ''.e(isset($target) ? date_formats($target->date,'m/d/Y') : old('date')).'','error' => 'date']] + (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(['name' => 'date','class' => 'date','labelName' => 'Date','value' => ''.e(isset($target) ? date_formats($target->date,'m/d/Y') : old('date')).'','error' => 'date']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> </div> <div class="col-md-8"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form.inputbox','data' => ['type' => 'number','name' => 'sale_target','labelName' => 'Sale Target','value' => ''.e($target->s_target ?? 0).'','error' => 'sale_target']] + (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(['type' => 'number','name' => 'sale_target','labelName' => 'Sale Target','value' => ''.e($target->s_target ?? 0).'','error' => 'sale_target']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> </div> </div> <div class="text-right"> <button class="btn btn-sm btn-success" type="submit"> <?php if(isset($target)): ?> Update <?php else: ?> Submit <?php endif; ?> </button> </div> </div> </div> </div> </div> </form> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <script> $(document).on('keyup keypress', 'input[name="sale_achieved"]', function(){ let sale_achieved = $('input[name="sale_target"]').val() || 0; let sale_target = $(this).val() || 0; let total_sale = (parseFloat(sale_achieved) - parseFloat(sale_target)); $('input[name="sale_deficit"]').val(total_sale); }); $(document).on('keyup keypress', 'input[name="revenue_achieved"]', function(){ let revenue_achieved = $('input[name="revenue_target"]').val() || 0; let revenue_target = $(this).val() || 0; let total_revenue = (parseFloat(revenue_achieved) - parseFloat(revenue_target)); $('input[name="revenue_deficit"]').val(total_revenue); }); $('input.date').datepicker({ todayBtn: "linked", keyboardNavigation: false, forceParse: false, calendarWeeks: true, autoclose: true }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/silvzytp/dsr_code/resources/views/backend/member/manager/pages/target/form.blade.php ENDPATH**/ ?>