whoami7 - Manager
:
/
home
/
kckglobal
/
public_html
/
portal
/
storage
/
framework
/
views
/
Upload File:
files >> /home/kckglobal/public_html/portal/storage/framework/views/7634f0678688d51e59285abdc0879479.php
<div class="modal-header"> <h5 class="modal-title" id="modelHeading"><?php echo app('translator')->get('modules.projects.editMilestone'); ?></h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> </div> <?php if (isset($component)) { $__componentOriginal18ad2e0d264f9740dc73fff715357c28 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal18ad2e0d264f9740dc73fff715357c28 = $attributes; } ?> <?php $component = App\View\Components\Form::resolve(['method' => 'PUT'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form'); ?> <?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\Form::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'addProjectMilestoneForm']); ?> <div class="modal-body"> <input type="hidden" name="project_id" value="<?php echo e($milestone->project_id); ?>"> <input type="hidden" name="currency_id" value="<?php echo e($milestone->currency_id ?? company()->currency_id); ?>"> <div class="row"> <div class="col-md-4"> <?php if (isset($component)) { $__componentOriginal4e45e801405ab67097982370a6a83cba = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal4e45e801405ab67097982370a6a83cba = $attributes; } ?> <?php $component = App\View\Components\Forms\Text::resolve(['fieldId' => 'milestone_title','fieldLabel' => __('modules.projects.milestoneTitle'),'fieldValue' => $milestone->milestone_title,'fieldName' => 'milestone_title','fieldRequired' => 'true','fieldPlaceholder' => __('placeholders.milestone')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.text'); ?> <?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\Text::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($__attributesOriginal4e45e801405ab67097982370a6a83cba)): ?> <?php $attributes = $__attributesOriginal4e45e801405ab67097982370a6a83cba; ?> <?php unset($__attributesOriginal4e45e801405ab67097982370a6a83cba); ?> <?php endif; ?> <?php if (isset($__componentOriginal4e45e801405ab67097982370a6a83cba)): ?> <?php $component = $__componentOriginal4e45e801405ab67097982370a6a83cba; ?> <?php unset($__componentOriginal4e45e801405ab67097982370a6a83cba); ?> <?php endif; ?> </div> <div class="col-md-4"> <?php if (isset($component)) { $__componentOriginal1fded940a0a5d34bf1b88a1f45916593 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal1fded940a0a5d34bf1b88a1f45916593 = $attributes; } ?> <?php $component = App\View\Components\Forms\Number::resolve(['fieldId' => 'cost','fieldLabel' => __('modules.projects.milestoneCost'),'fieldName' => 'cost','fieldValue' => $milestone->cost,'fieldPlaceholder' => __('placeholders.price')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.number'); ?> <?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\Number::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($__attributesOriginal1fded940a0a5d34bf1b88a1f45916593)): ?> <?php $attributes = $__attributesOriginal1fded940a0a5d34bf1b88a1f45916593; ?> <?php unset($__attributesOriginal1fded940a0a5d34bf1b88a1f45916593); ?> <?php endif; ?> <?php if (isset($__componentOriginal1fded940a0a5d34bf1b88a1f45916593)): ?> <?php $component = $__componentOriginal1fded940a0a5d34bf1b88a1f45916593; ?> <?php unset($__componentOriginal1fded940a0a5d34bf1b88a1f45916593); ?> <?php endif; ?> </div> <div class="col-md-4"> <?php if (isset($component)) { $__componentOriginal67cd5dc9866c6185ad92d933c387fa86 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal67cd5dc9866c6185ad92d933c387fa86 = $attributes; } ?> <?php $component = App\View\Components\Forms\Select::resolve(['fieldId' => 'status','fieldLabel' => __('app.status'),'fieldName' => 'status'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.select'); ?> <?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\Select::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <option <?php if($milestone->status == 'incomplete'): ?> selected <?php endif; ?> value="incomplete"><?php echo app('translator')->get('app.incomplete'); ?></option> <option <?php if($milestone->status == 'complete'): ?> selected <?php endif; ?> value="complete"><?php echo app('translator')->get('app.complete'); ?></option> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal67cd5dc9866c6185ad92d933c387fa86)): ?> <?php $attributes = $__attributesOriginal67cd5dc9866c6185ad92d933c387fa86; ?> <?php unset($__attributesOriginal67cd5dc9866c6185ad92d933c387fa86); ?> <?php endif; ?> <?php if (isset($__componentOriginal67cd5dc9866c6185ad92d933c387fa86)): ?> <?php $component = $__componentOriginal67cd5dc9866c6185ad92d933c387fa86; ?> <?php unset($__componentOriginal67cd5dc9866c6185ad92d933c387fa86); ?> <?php endif; ?> </div> <div class="col-md-12"> <?php if (isset($component)) { $__componentOriginal2f60389a9e230471cd863683376c182f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal2f60389a9e230471cd863683376c182f = $attributes; } ?> <?php $component = App\View\Components\Forms\Textarea::resolve(['fieldLabel' => __('modules.projects.milestoneSummary'),'fieldName' => 'summary','fieldRequired' => 'true','fieldId' => 'summary','fieldValue' => $milestone->summary,'fieldPlaceholder' => __('placeholders.milestoneSummary')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.textarea'); ?> <?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\Textarea::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'mr-0 mr-lg-2 mr-md-2']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal2f60389a9e230471cd863683376c182f)): ?> <?php $attributes = $__attributesOriginal2f60389a9e230471cd863683376c182f; ?> <?php unset($__attributesOriginal2f60389a9e230471cd863683376c182f); ?> <?php endif; ?> <?php if (isset($__componentOriginal2f60389a9e230471cd863683376c182f)): ?> <?php $component = $__componentOriginal2f60389a9e230471cd863683376c182f; ?> <?php unset($__componentOriginal2f60389a9e230471cd863683376c182f); ?> <?php endif; ?> </div> <div class="col-md-6"> <?php if (isset($component)) { $__componentOriginalf704f069031d81dfb7cf95f6709a6a66 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalf704f069031d81dfb7cf95f6709a6a66 = $attributes; } ?> <?php $component = App\View\Components\Forms\Datepicker::resolve(['fieldId' => 'start_date','fieldLabel' => __('modules.projects.startDate'),'fieldName' => 'start_date','fieldValue' => $milestone->start_date==null ? $milestone->start_date : $milestone->start_date->format(company()->date_format),'fieldPlaceholder' => __('placeholders.date')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.datepicker'); ?> <?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\Datepicker::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($__attributesOriginalf704f069031d81dfb7cf95f6709a6a66)): ?> <?php $attributes = $__attributesOriginalf704f069031d81dfb7cf95f6709a6a66; ?> <?php unset($__attributesOriginalf704f069031d81dfb7cf95f6709a6a66); ?> <?php endif; ?> <?php if (isset($__componentOriginalf704f069031d81dfb7cf95f6709a6a66)): ?> <?php $component = $__componentOriginalf704f069031d81dfb7cf95f6709a6a66; ?> <?php unset($__componentOriginalf704f069031d81dfb7cf95f6709a6a66); ?> <?php endif; ?> </div> <div class="col-md-6"> <?php if (isset($component)) { $__componentOriginalf704f069031d81dfb7cf95f6709a6a66 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalf704f069031d81dfb7cf95f6709a6a66 = $attributes; } ?> <?php $component = App\View\Components\Forms\Datepicker::resolve(['fieldId' => 'end_date','fieldValue' => $milestone->end_date==null ? $milestone->end_date : $milestone->end_date->format(company()->date_format),'fieldLabel' => __('modules.timeLogs.endDate'),'fieldName' => 'end_date','fieldPlaceholder' => __('placeholders.date')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.datepicker'); ?> <?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\Datepicker::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($__attributesOriginalf704f069031d81dfb7cf95f6709a6a66)): ?> <?php $attributes = $__attributesOriginalf704f069031d81dfb7cf95f6709a6a66; ?> <?php unset($__attributesOriginalf704f069031d81dfb7cf95f6709a6a66); ?> <?php endif; ?> <?php if (isset($__componentOriginalf704f069031d81dfb7cf95f6709a6a66)): ?> <?php $component = $__componentOriginalf704f069031d81dfb7cf95f6709a6a66; ?> <?php unset($__componentOriginalf704f069031d81dfb7cf95f6709a6a66); ?> <?php endif; ?> </div> </div> </div> <div class="modal-footer"> <?php if (isset($component)) { $__componentOriginalc35c79ed7e812580313ad04118477974 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalc35c79ed7e812580313ad04118477974 = $attributes; } ?> <?php $component = App\View\Components\Forms\ButtonCancel::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.button-cancel'); ?> <?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\ButtonCancel::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['data-dismiss' => 'modal','class' => 'border-0 mr-3']); ?><?php echo app('translator')->get('app.close'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalc35c79ed7e812580313ad04118477974)): ?> <?php $attributes = $__attributesOriginalc35c79ed7e812580313ad04118477974; ?> <?php unset($__attributesOriginalc35c79ed7e812580313ad04118477974); ?> <?php endif; ?> <?php if (isset($__componentOriginalc35c79ed7e812580313ad04118477974)): ?> <?php $component = $__componentOriginalc35c79ed7e812580313ad04118477974; ?> <?php unset($__componentOriginalc35c79ed7e812580313ad04118477974); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalcf8d12533ff890e0d6573daf32b7618d = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalcf8d12533ff890e0d6573daf32b7618d = $attributes; } ?> <?php $component = App\View\Components\Forms\ButtonPrimary::resolve(['icon' => 'check'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.button-primary'); ?> <?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\ButtonPrimary::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'save-project-milestone']); ?><?php echo app('translator')->get('app.save'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalcf8d12533ff890e0d6573daf32b7618d)): ?> <?php $attributes = $__attributesOriginalcf8d12533ff890e0d6573daf32b7618d; ?> <?php unset($__attributesOriginalcf8d12533ff890e0d6573daf32b7618d); ?> <?php endif; ?> <?php if (isset($__componentOriginalcf8d12533ff890e0d6573daf32b7618d)): ?> <?php $component = $__componentOriginalcf8d12533ff890e0d6573daf32b7618d; ?> <?php unset($__componentOriginalcf8d12533ff890e0d6573daf32b7618d); ?> <?php endif; ?> </div> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal18ad2e0d264f9740dc73fff715357c28)): ?> <?php $attributes = $__attributesOriginal18ad2e0d264f9740dc73fff715357c28; ?> <?php unset($__attributesOriginal18ad2e0d264f9740dc73fff715357c28); ?> <?php endif; ?> <?php if (isset($__componentOriginal18ad2e0d264f9740dc73fff715357c28)): ?> <?php $component = $__componentOriginal18ad2e0d264f9740dc73fff715357c28; ?> <?php unset($__componentOriginal18ad2e0d264f9740dc73fff715357c28); ?> <?php endif; ?> <script> $(document).ready(function() { $("#addProjectMilestoneForm .select-picker").selectpicker(); const dp1 = datepicker('#start_date', { position: 'bl', dateSelected: <?php if($milestone->start_date): ?> new Date("<?php echo e(str_replace('-', '/', $milestone->start_date)); ?>") <?php else: ?> null <?php endif; ?>, onSelect: (instance, date) => { if (typeof dp2.dateSelected !== 'undefined' && dp2.dateSelected.getTime() < date .getTime()) { dp2.setDate(date, true) } if (typeof dp2.dateSelected === 'undefined') { dp2.setDate(date, true) } dp2.setMin(date); }, ...datepickerConfig }); const dp2 = datepicker('#end_date', { position: 'bl', dateSelected: <?php if($milestone->end_date): ?> new Date("<?php echo e(str_replace('-', '/', $milestone->end_date)); ?>") <?php else: ?> null <?php endif; ?>, onSelect: (instance, date) => { dp1.setMax(date); }, ...datepickerConfig }); }); $('#save-project-milestone').click(function() { var url = "<?php echo e(route('milestones.update', $milestone->id)); ?>"; $.easyAjax({ url: url, container: '#addProjectMilestoneForm', type: "POST", blockUI: true, disableButton: true, buttonSelector: '#save-project-milestone', data: $('#addProjectMilestoneForm').serialize(), success: function(response) { if (response.status == 'success') { window.location.reload(); } } }) }); </script> <?php /**PATH /home/kckglobal/public_html/portal/resources/views/projects/milestone/edit.blade.php ENDPATH**/ ?>
Copyright ©2021 || Defacer Indonesia