whoami7 - Manager
:
/
home
/
kckglobal
/
public_html
/
portal
/
storage
/
framework
/
views
/
Upload File:
files >> /home/kckglobal/public_html/portal/storage/framework/views/49d25fbed5bce35c5fa4519f6634c7ad.php
<?php $addCheckInPermission = user()->permission('add_check_in'); $viewObjectivePermission = user()->permission('view_objective'); $editObjectivePermission = user()->permission('edit_objective'); $deleteObjectivePermission = user()->permission('delete_objective'); $addKeyResultsPermission = user()->permission('add_key_result'); $viewKeyResultsPermission = user()->permission('view_key_result'); $editKeyResultsPermission = user()->permission('edit_key_result'); $deleteKeyResultsPermission = user()->permission('delete_key_result'); ?> <style> .accordion-toggle td { padding: 15px; } </style> <?php if (isset($component)) { $__componentOriginal7d9f6e0b9001f5841f72577781b2d17f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal7d9f6e0b9001f5841f72577781b2d17f = $attributes; } ?> <?php $component = App\View\Components\Table::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('table'); ?> <?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\Table::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => ' my-3 rounded']); ?> <?php $__env->slot('thead', null, []); ?> <tr> <th width="5%"></th> <th class="text-left" width="20%"><?php echo app('translator')->get('performance::app.objective'); ?></th> <th class="text-left"><?php echo app('translator')->get('performance::app.owner'); ?></th> <th class="text-left"><?php echo app('translator')->get('app.team'); ?></th> <th class="text-left"><?php echo app('translator')->get('app.startDate'); ?></th> <th class="text-left"><?php echo app('translator')->get('app.endDate'); ?></th> <th class="text-left"><?php echo app('translator')->get('performance::app.progressNstatus'); ?></th> <th class="text-right pr-3" width="5%"><?php echo app('translator')->get('app.action'); ?></th> </tr> <?php $__env->endSlot(); ?> <?php $__currentLoopData = $objectives; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $obj => $objective): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr class="accordion-toggle"> <td width="5%"> <button class="btn btn-default btn-xs toggle-btn" data-target="#objective-<?php echo e($obj); ?>" data-toggle="tooltip" data-original-title=<?php echo app('translator')->get('app.expand'); ?>> <i class="fa fa-plus"></i> </button> </td> <td class="text-left pl-2" width="20%"> <a href="<?php echo e(route('objectives.show', $objective->id)); ?>" class="text-darkest-grey font-weight-semibold f-13"> <?php echo e(Illuminate\Support\Str::limit($objective->title, 50, '...')); ?><br> </a> <?php if($objective->goalType && $objective->goalType->type): ?> <span class="badge badge-info"> <?php echo e(__('performance::app.' . $objective->goalType->type)); ?> </span> <?php else: ?> <?php echo e('--'); ?> <?php endif; ?> </td> <td> <div class="position-relative"> <?php $__currentLoopData = $objective->owners; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $owner): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($key < 4): ?> <div class="taskEmployeeImg rounded-circle <?php echo e($key > 0 ? 'position-absolute' : ''); ?>" style="left: <?php echo e($key * 13); ?>px"> <a href="<?php echo e(route('employees.show', $owner->id)); ?>"> <img data-toggle="tooltip" height="25" width="25" data-original-title="<?php echo e($owner->name); ?>" src="<?php echo e($owner->image_url); ?>"> </a> </div> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php if($objective->owners->count() > 4): ?> <div class="text-center taskEmployeeImg more-user-count rounded-circle bg-amt-grey position-absolute" style="left: 52px"> <a href="<?php echo e(route('objectives.show', $objective->id)); ?>" class="text-dark f-10">+<?php echo e($objective->owners->count() - 4); ?></a> </div> <?php endif; ?> </div> </td> <?php if(!is_null($objective->department_id)): ?> <td class="text-left pl-2"><?php echo e($objective->department ? $objective->department->team_name : '--'); ?></td> <?php else: ?> <td class="text-left">--</td> <?php endif; ?> <td class="text-left pl-2"> <?php echo e(\Carbon\Carbon::parse($objective->start_date)->translatedFormat(company()->date_format)); ?> </td> <td class="text-left pl-2"> <?php echo e(\Carbon\Carbon::parse($objective->end_date)->translatedFormat(company()->date_format)); ?> </td> <td class="text-left pl-2" style="width: 300px;"> <?php if($objective->status): ?> <div class="d-flex justify-content-between align-items-center"> <span class="font-weight-bold text-<?php echo e($objective->status->color == 'primary' ? 'blue' : $objective->status->color); ?>"> <?php echo e($objective->status->objective_progress); ?>% </span> <?php if($objective->status->status): ?> <span class="badge badge-<?php echo e($objective->status->color); ?>"> <?php echo e(__('performance::app.' . $objective->status->status)); ?> </span> <?php else: ?> <?php echo e('--'); ?> <?php endif; ?> </div> <div class="progress mt-1" style="height: 6px;"> <div class="progress-bar f-12 bg-<?php echo e($objective->status->color == 'primary' ? 'primary-color-bar' : $objective->status->color); ?>" role="progressbar" style="width: <?php echo e($objective->status->objective_progress); ?>%;" aria-valuenow="<?php echo e($objective->status->objective_progress); ?>" aria-valuemin="0" aria-valuemax="100"> </div> </div> <div class="text-left mt-1"> <small class="text-muted"><?php echo app('translator')->get('app.last'); ?> <?php echo app('translator')->get('app.updatedOn'); ?> <?php echo e(\Carbon\Carbon::parse($objective->status->updated_at)->format('d-m-Y')); ?> </small> </div> <?php else: ?> -- <?php endif; ?> </td> <td class="text-right pr-3" width="5%"> <div class="task_view mr-2"> <div class="dropdown"> <a class="task_view_more d-flex align-items-center justify-content-center dropdown-toggle" type="link" id="dropdownMenuLink-<?php echo e($obj); ?>" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="icon-options-vertical icons"></i> </a> <div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuLink-<?php echo e($obj); ?>" tabindex="0"> <a class="dropdown-item" href="<?php echo e(route('objectives.show', $objective->id)); ?>"><i class="fa fa-eye mr-2"></i> <?php echo app('translator')->get('app.view'); ?></a> <?php if($objective->has_access): ?> <a class="dropdown-item openRightModal" href="<?php echo e(route('objectives.edit', $objective->id)); ?>"><i class="fa fa-edit mr-2"></i> <?php echo app('translator')->get('app.edit'); ?></a> <a class="dropdown-item delete-objective" href="javascript:;" data-objective-id="<?php echo e($objective->id); ?>"> <i class="fa fa-trash mr-2"></i> <?php echo app('translator')->get('app.delete'); ?> </a> <a class="dropdown-item openRightModal" href="<?php echo e(route('key-results.create', ['objectiveId' => $objective->id, 'currentUrl' => url()->current()])); ?>"> <i class="fa fa-plus mr-2"></i> <?php echo app('translator')->get('app.add'); ?> <?php echo app('translator')->get('performance::app.keyResult'); ?> </a> <?php endif; ?> </div> </div> </div> </td> </tr> <tr class="d-none"> <td colspan="8" class="hiddenRow pl-4 pt-4 pl-4 pr-4"> <div class="accordian-body collapse" id="objective-<?php echo e($obj); ?>"> <?php $__empty_1 = true; $__currentLoopData = $objective->keyResults; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $keyResult): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <div class="card mb-3 border rounded"> <div class="card-body p-0"> <div class="d-flex justify-content-between align-items-center p-3"> <!-- Title and Badge Section --> <div class="d-flex align-items-center w-25"> <div class="f-15 text-darkest-grey"> <span class="badge badge-secondary mr-2"><?php echo e($key + 1); ?></span> <?php echo e($keyResult->title); ?> </div> </div> <!-- Metrics Badge --> <div class="w-15"> <?php if($keyResult->metrics): ?> <span class="badge badge-warning px-2 py-1"> <?php echo e($keyResult->metrics->name); ?> </span> <?php else: ?> <span class="text-lightest">--</span> <?php endif; ?> </div> <!-- Values Section --> <div class="d-flex justify-content-between w-30"> <div class="text-center px-3"> <p class="mb-0 f-12 text-lightest"><?php echo app('translator')->get('performance::app.initialValue'); ?></p> <p class="mb-0 f-14 text-dark-grey"> <?php echo e($keyResult->original_current_value !== null ? number_format((float) $keyResult->original_current_value, 2) : '--'); ?> </p> </div> <div class="text-center px-3"> <p class="mb-0 f-12 text-lightest"><?php echo app('translator')->get('performance::app.currentValue'); ?></p> <p class="mb-0 f-14 text-dark-grey"> <?php echo e($keyResult->current_value !== null ? number_format((float) $keyResult->current_value, 2) : '--'); ?> </p> </div> <div class="text-center px-3"> <p class="mb-0 f-12 text-lightest"><?php echo app('translator')->get('performance::app.targetValue'); ?></p> <p class="mb-0 f-14 text-dark-grey"> <?php echo e($keyResult->target_value !== null ? number_format((float) $keyResult->target_value, 2) : '--'); ?> </p> </div> </div> <!-- Progress Bar Section --> <div class="w-20 px-3"> <div class="d-flex align-items-center mb-1"> <div class="progress flex-grow-1 rounded" style="height: 6px;"> <div class="progress-bar bg-primary" role="progressbar" style="width: <?php echo e($keyResult->key_percentage); ?>%;" aria-valuenow="<?php echo e($keyResult->key_percentage); ?>" aria-valuemin="0" aria-valuemax="100"> </div> </div> <span class="ml-2 f-14 font-weight-bold text-dark-grey"> <?php echo e($keyResult->key_percentage); ?>% </span> </div> </div> <!-- Action Buttons --> <div class="w-10 text-right pr-3"> <div class="dropdown"> <button class="btn btn-lg p-1" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-ellipsis-h text-dark-grey"></i> </button> <div class="dropdown-menu dropdown-menu-right border-grey"> <a class="dropdown-item openRightModal" href="<?php echo e(route('key-results.show', $keyResult->id)); ?>"> <i class="fa fa-eye mr-2"></i> <?php echo app('translator')->get('app.view'); ?> </a> <?php if($objective->has_access): ?> <a class="dropdown-item openRightModal" href="<?php echo e(route('key-results.edit', $keyResult->id)); ?>?currentUrl=<?php echo e(url()->current()); ?>"> <i class="fa fa-edit mr-2"></i> <?php echo app('translator')->get('app.edit'); ?> </a> <a class="dropdown-item delete-key-results" href="javascript:;" data-key-results-id="<?php echo e($keyResult->id); ?>"> <i class="fa fa-trash mr-2"></i> <?php echo app('translator')->get('app.delete'); ?> </a> <a class="dropdown-item add-check-in" href="javascript:;" data-key-id="<?php echo e($keyResult->id); ?>"> <i class="fa fa-plus mr-2"></i> <?php echo app('translator')->get('performance::app.checkIn'); ?> </a> <?php endif; ?> </div> </div> </div> </div> <!-- Last Updated Info --> <div class="border-top p-3 d-flex justify-content-between"> <div class="f-12 text-dark-grey"> <i class="fa fa-calendar-alt mr-1"></i> <?php echo app('translator')->get('app.last'); ?> <?php echo app('translator')->get('app.updatedOn'); ?> <?php echo e(\Carbon\Carbon::parse($keyResult->updated_at)->format('d M, Y')); ?> </div> <?php if($keyResult->check_in_date): ?> <div class="f-12 text-dark-grey"> <i class="fa fa-clock mr-1"></i> <?php echo app('translator')->get('performance::app.lastCheckIn'); ?>: <?php echo e(\Carbon\Carbon::parse($keyResult->check_in_date)->format('d M, Y')); ?> </div> <?php endif; ?> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <div class="card border rounded"> <div class="card-body p-3"> <?php if (isset($component)) { $__componentOriginal269164c77d9d34462c34359c03da6a68 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal269164c77d9d34462c34359c03da6a68 = $attributes; } ?> <?php $component = App\View\Components\Cards\NoRecord::resolve(['icon' => 'list','message' => __('performance::messages.keyResultsNotFound')] + (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> </div> <?php endif; ?> </div> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal7d9f6e0b9001f5841f72577781b2d17f)): ?> <?php $attributes = $__attributesOriginal7d9f6e0b9001f5841f72577781b2d17f; ?> <?php unset($__attributesOriginal7d9f6e0b9001f5841f72577781b2d17f); ?> <?php endif; ?> <?php if (isset($__componentOriginal7d9f6e0b9001f5841f72577781b2d17f)): ?> <?php $component = $__componentOriginal7d9f6e0b9001f5841f72577781b2d17f; ?> <?php unset($__componentOriginal7d9f6e0b9001f5841f72577781b2d17f); ?> <?php endif; ?> <?php if(count($objectives) <= 0): ?> <?php if (isset($component)) { $__componentOriginal269164c77d9d34462c34359c03da6a68 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal269164c77d9d34462c34359c03da6a68 = $attributes; } ?> <?php $component = App\View\Components\Cards\NoRecord::resolve(['icon' => 'redo','message' => __('performance::messages.objectiveNotFound')] + (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; ?> <?php endif; ?> <script> $(document).ready(function () { $('.toggle-btn').on('click', function () { var targetId = $(this).data('target'); var keyDetailsRow = $(this).closest('tr').next('tr'); var targetRow = $(targetId); keyDetailsRow.toggleClass('d-none'); targetRow.collapse('toggle'); var icon = $(this).find('svg'); var button = $(this); // Toggle the current button's icon if (icon.hasClass('fa-plus')) { icon.removeClass('fa-plus').addClass('fa-minus'); button.attr('data-original-title', '<?php echo app('translator')->get("app.collapse"); ?>'); } else { icon.removeClass('fa-minus').addClass('fa-plus'); button.attr('data-original-title', '<?php echo app('translator')->get("app.expand"); ?>'); } // Collapse other rows and reset their icons $('.accordian-body').not(targetRow).collapse('hide'); $('.toggle-btn svg').not(icon).removeClass('fa-minus').addClass('fa-plus'); $('.toggle-btn').not($(this)).closest('tr').next('tr').addClass('d-none'); // Re-enable tooltips after changing the title $('[data-toggle="tooltip"]').tooltip('dispose').tooltip(); }); // Handle collapse events to update icons when triggered externally $('.accordian-body').on('shown.bs.collapse', function () { var button = $('[data-target="#' + this.id + '"]').find('svg'); button.removeClass('fa-plus').addClass('fa-minus'); }); $('.accordian-body').on('hidden.bs.collapse', function () { var button = $('[data-target="#' + this.id + '"]').find('svg'); button.removeClass('fa-minus').addClass('fa-plus'); }); $(document).on('show.bs.dropdown', '.table-responsive', function() { $('.table-responsive').css( "overflow", "inherit" ); }); $('.add-check-in').click(function () { let keyId = $(this).data('key-id'); var url = "<?php echo e(route('check-ins.create')); ?>?keyResultId=" + keyId; $(MODAL_LG + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_LG, url); }); // $('.bg-primary-color-bar').css('background-color', '#3498db !important'); // $('.text-primary-color').css('color', '#3498db !important'); }); </script> <?php /**PATH /home/kckglobal/public_html/portal/Modules/Performance/Resources/views/objectives/ajax/objectives.blade.php ENDPATH**/ ?>
Copyright ©2021 || Defacer Indonesia