whoami7 - Manager
:
/
home
/
kckglobal
/
public_html
/
portal
/
storage
/
framework
/
views
/
Upload File:
files >> /home/kckglobal/public_html/portal/storage/framework/views/14c10aaaee7d3e9226d22490dfbed219.php
<!-- TAB CONTENT START --> <div class="tab-pane fade show active mt-5" role="tabpanel" aria-labelledby="nav-email-tab"> <?php if(!in_array('payroll', user_modules())): ?> <div class="alert alert-info" type="info"><i class="fa fa-info-circle mr-2"></i> <?php echo app('translator')->get('modules.incrementPromotion.incrementAlert'); ?></div> <?php endif; ?> <?php if($manageIncrementPermission != 'none'): ?> <div class="d-flex justify-content-between action-bar mb-3"> <?php if (isset($component)) { $__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaldbb84df4c3a5cbdd95fb35d18ba6410f = $attributes; } ?> <?php $component = App\View\Components\Forms\LinkPrimary::resolve(['link' => 'javascript:;','icon' => 'plus'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.link-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\LinkPrimary::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'mr-3 float-left add-promotion']); ?> <?php echo app('translator')->get('modules.incrementPromotion.addPromotion'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaldbb84df4c3a5cbdd95fb35d18ba6410f)): ?> <?php $attributes = $__attributesOriginaldbb84df4c3a5cbdd95fb35d18ba6410f; ?> <?php unset($__attributesOriginaldbb84df4c3a5cbdd95fb35d18ba6410f); ?> <?php endif; ?> <?php if (isset($__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f)): ?> <?php $component = $__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f; ?> <?php unset($__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f); ?> <?php endif; ?> </div> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalbc9540fa671f26a0f8028a5a8d8f93e9 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalbc9540fa671f26a0f8028a5a8d8f93e9 = $attributes; } ?> <?php $component = App\View\Components\Cards\Data::resolve(['title' => __('modules.incrementPromotion.incrementPromotions'),'padding' => 'false','otherClasses' => 'h-200 p-activity-detail cal-information'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.data'); ?> <?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\Cards\Data::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'mb-4']); ?> <!-- Timeline --> <div class="list-group lg-alt lg-even-black"> <?php $__empty_1 = true; $__currentLoopData = $careerProgress; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $progress): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <div class="list-group-item d-flex align-items-start"> <div class="mr-3"> <span class="badge badge-dark"><?php echo e($loop->iteration); ?></span> </div> <div class="media-body"> <div class="row"> <div class="col-md-10 mb-2"> <span class="font-weight-bold text-dark"><?php echo e(\Carbon\Carbon::parse($progress['date'])->translatedFormat($company->date_format)); ?></span> <span class="text-muted"> <?php $date = \Carbon\Carbon::parse($progress['data']->date); ?> <?php if($progress['type'] === 'promotion' && isset($progress['data']->date)): ?> <?php if($date->isToday()): ?> (<?php echo app('translator')->get('modules.incrementPromotion.promotion'); ?> <?php echo app('translator')->get('app.fromToday'); ?>) <?php else: ?> (<?php echo app('translator')->get('modules.incrementPromotion.promotion'); ?> <?php echo e($date->diffForHumans()); ?>) <?php endif; ?> <?php elseif($progress['type'] === 'increment' && isset($progress['data']->date) && module_enabled('Payroll') && in_array('payroll', user_modules())): ?> <?php if($date->isToday()): ?> (<?php echo app('translator')->get('modules.incrementPromotion.increment'); ?> <?php echo app('translator')->get('app.fromToday'); ?>) <?php else: ?> (<?php echo app('translator')->get('modules.incrementPromotion.increment'); ?> <?php echo e($date->diffForHumans()); ?>) <?php endif; ?> <?php endif; ?> </span> </div> <?php if($progress['type'] === 'promotion' && $manageIncrementPermission == 'all'): ?> <div class="col-md-2 text-right"> <div class="dropdown"> <button class="btn f-14 px-0 py-0 text-dark-grey dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-ellipsis-h"></i> </button> <div class="dropdown-menu dropdown-menu-right border-grey rounded b-shadow-4 p-0" aria-labelledby="dropdownMenuLink" tabindex="0"> <a class="dropdown-item update-promotion" href="javascript:;" data-promotion-id="<?php echo e($progress['data']->id); ?>"> <i class="fa fa-edit mr-1"></i> <?php echo app('translator')->get('app.edit'); ?> </a> <a class="dropdown-item delete-promotion" href="javascript:;" data-promotion-id="<?php echo e($progress['data']->id); ?>"> <i class="fa fa-trash mr-1"></i> <?php echo app('translator')->get('app.delete'); ?> </a> </div> </div> </div> <?php endif; ?> </div> <?php if($progress['type'] === 'increment' && module_enabled('Payroll') && in_array('payroll', user_modules())): ?> <div class="mb-2"> <span class="badge badge-success"><?php echo app('translator')->get('modules.incrementPromotion.increment'); ?></span> </div> <ul class="list-unstyled mb-0"> <li><?php echo app('translator')->get('modules.incrementPromotion.salary'); ?>: <?php echo e(currency_format($progress['netSalary'], $currency, true)); ?> (<?php echo e($progress['percentage']); ?>% <?php echo app('translator')->get('modules.incrementPromotion.increment'); ?>)</li> </ul> <?php elseif($progress['type'] === 'promotion'): ?> <div class="mb-2"> <span class="badge badge-warning"><?php echo app('translator')->get('modules.incrementPromotion.promotion'); ?></span> </div> <ul class="list-unstyled mb-0"> <li class="mt-2"> <span class="text-primary"><?php echo e($progress['data']->previousDesignation->name); ?></span> <i class="fa fa-arrow-right text-success mx-2"></i> <span class="text-success"><?php echo e($progress['data']->currentDesignation->name); ?></span> (<?php echo app('translator')->get('app.designation'); ?>) </li> <li class="mt-2"> <?php if($progress['data']->previous_department_id != $progress['data']->current_department_id): ?> <span class="text-primary"><?php echo e($progress['data']->previousDepartment->team_name); ?></span> <i class="fa fa-arrow-right text-success mx-2"></i> <span class="text-success"><?php echo e($progress['data']->currentDepartment->team_name); ?></span> (<?php echo app('translator')->get('app.department'); ?>) <?php else: ?> (<?php echo app('translator')->get('app.inSameDepartment'); ?>) <?php endif; ?> </li> </ul> <?php endif; ?> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <div class="list-group-item align-items-center"> <?php if (isset($component)) { $__componentOriginal269164c77d9d34462c34359c03da6a68 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal269164c77d9d34462c34359c03da6a68 = $attributes; } ?> <?php $component = App\View\Components\Cards\NoRecord::resolve(['icon' => 'map-marker-alt','message' => __('messages.noRecordFound')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.no-record'); ?> <?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\Cards\NoRecord::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($__attributesOriginal269164c77d9d34462c34359c03da6a68)): ?> <?php $attributes = $__attributesOriginal269164c77d9d34462c34359c03da6a68; ?> <?php unset($__attributesOriginal269164c77d9d34462c34359c03da6a68); ?> <?php endif; ?> <?php if (isset($__componentOriginal269164c77d9d34462c34359c03da6a68)): ?> <?php $component = $__componentOriginal269164c77d9d34462c34359c03da6a68; ?> <?php unset($__componentOriginal269164c77d9d34462c34359c03da6a68); ?> <?php endif; ?> </div> <?php endif; ?> </div> <!-- End Timeline --> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalbc9540fa671f26a0f8028a5a8d8f93e9)): ?> <?php $attributes = $__attributesOriginalbc9540fa671f26a0f8028a5a8d8f93e9; ?> <?php unset($__attributesOriginalbc9540fa671f26a0f8028a5a8d8f93e9); ?> <?php endif; ?> <?php if (isset($__componentOriginalbc9540fa671f26a0f8028a5a8d8f93e9)): ?> <?php $component = $__componentOriginalbc9540fa671f26a0f8028a5a8d8f93e9; ?> <?php unset($__componentOriginalbc9540fa671f26a0f8028a5a8d8f93e9); ?> <?php endif; ?> </div> <!-- TAB CONTENT END --> <script> // Add new emergency contact modal $('body').on('click', '.add-promotion', function () { var url = "<?php echo e(route('promotions.create')); ?>?user_id=" + "<?php echo e($employee->id); ?>"; $(MODAL_LG + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_LG, url); }); $('body').on('click', '.update-promotion', function () { let id = $(this).data('promotion-id'); var url = "<?php echo e(route('promotions.edit', [':id'])); ?>"; url = url.replace(':id', id); $(MODAL_LG + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_LG, url); }); $('body').on('click', '.delete-promotion', function () { let id = $(this).data('promotion-id'); Swal.fire({ title: "<?php echo app('translator')->get('messages.sweetAlertTitle'); ?>", text: "<?php echo app('translator')->get('messages.recoverRecord'); ?>", icon: 'warning', showCancelButton: true, focusConfirm: false, confirmButtonText: "<?php echo app('translator')->get('messages.confirmDelete'); ?>", cancelButtonText: "<?php echo app('translator')->get('app.cancel'); ?>", customClass: { confirmButton: 'btn btn-primary mr-3', cancelButton: 'btn btn-secondary' }, showClass: { popup: 'swal2-noanimation', backdrop: 'swal2-noanimation' }, buttonsStyling: false }).then((result) => { if (result.isConfirmed) { var url = "<?php echo e(route('promotions.destroy', ':id')); ?>"; url = url.replace(':id', id); var token = "<?php echo e(csrf_token()); ?>"; $.easyAjax({ type: 'POST', url: url, blockUI: true, data: { '_token': token, '_method': 'DELETE' }, success: function (response) { if (response.status == "success") { window.location.reload(); } } }); } }); }); </script> <?php /**PATH /home/kckglobal/public_html/portal/resources/views/employees/ajax/increment-promotions.blade.php ENDPATH**/ ?>
Copyright ©2021 || Defacer Indonesia