whoami7 - Manager
:
/
home
/
kckglobal
/
public_html
/
portal
/
storage
/
framework
/
views
/
Upload File:
files >> /home/kckglobal/public_html/portal/storage/framework/views/beedc1a9e0b10a034b5e37115084bd9b.php
<?php $editPermission = user()->permission('edit_appreciation'); $deletePermission = user()->permission('delete_appreciation'); ?> <div id="notice-detail-section"> <div class="row"> <div class="col-sm-12"> <div class="card bg-white border-0 b-shadow-4"> <div class="card-header bg-white border-bottom-grey justify-content-between p-20"> <div class="row"> <div class="col-lg-10 col-10"> <h3 class="heading-h1 mb-3"><?php echo app('translator')->get('app.appreciationDetails'); ?></h3> </div> <div class="col-lg-2 col-2 text-right"> <?php if($editPermission == 'all' || ($editPermission == 'added' && $appreciation->added_by == user()->id) || ($editPermission == 'owned' && $appreciation->added_by == user()->id)): ?> <div class="dropdown"> <button class="btn btn-lg f-14 px-2 py-1 text-dark-grey rounded 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"> <?php if($editPermission == 'all' || ($editPermission == 'added' && $appreciation->added_by == user()->id) || $editPermission == 'owned'): ?> <a class="dropdown-item openRightModal" href="<?php echo e(route('appreciations.edit', $appreciation->id)); ?>"><?php echo app('translator')->get('app.edit'); ?></a> <?php endif; ?> <?php if($deletePermission == 'all' || ($deletePermission == 'added' && $appreciation->added_by == user()->id) || $deletePermission == 'owned'): ?> <a class="dropdown-item delete-appre"><?php echo app('translator')->get('app.delete'); ?></a> <?php endif; ?> </div> </div> <?php endif; ?> </div> </div> </div> <div class="card-body"> <div class="col-12 px-0 pb-3 d-lg-flex d-md-flex d-block"> <p class="mb-0 text-lightest f-14 w-30 "><?php echo app('translator')->get('modules.appreciations.appreciationType'); ?></p> <div class="mb-0 text-dark-grey f-14 w-70 text-wrap ql-editor p-0"> <?php if(isset($appreciation->award->awardIcon->icon)): ?> <?php if (isset($component)) { $__componentOriginal114db03223c58461d1d88bb28b6e2026 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal114db03223c58461d1d88bb28b6e2026 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.award-icon','data' => ['award' => $appreciation->award]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('award-icon'); ?> <?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(['award' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($appreciation->award)]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal114db03223c58461d1d88bb28b6e2026)): ?> <?php $attributes = $__attributesOriginal114db03223c58461d1d88bb28b6e2026; ?> <?php unset($__attributesOriginal114db03223c58461d1d88bb28b6e2026); ?> <?php endif; ?> <?php if (isset($__componentOriginal114db03223c58461d1d88bb28b6e2026)): ?> <?php $component = $__componentOriginal114db03223c58461d1d88bb28b6e2026; ?> <?php unset($__componentOriginal114db03223c58461d1d88bb28b6e2026); ?> <?php endif; ?> <?php endif; ?> </div> </div> <?php if (isset($component)) { $__componentOriginalfc012cd47eee5094db538668bc6edefd = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalfc012cd47eee5094db538668bc6edefd = $attributes; } ?> <?php $component = App\View\Components\Cards\DataRow::resolve(['label' => __('app.awardDate'),'value' => $appreciation->award_date->translatedFormat(company()->date_format)] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.data-row'); ?> <?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\DataRow::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($__attributesOriginalfc012cd47eee5094db538668bc6edefd)): ?> <?php $attributes = $__attributesOriginalfc012cd47eee5094db538668bc6edefd; ?> <?php unset($__attributesOriginalfc012cd47eee5094db538668bc6edefd); ?> <?php endif; ?> <?php if (isset($__componentOriginalfc012cd47eee5094db538668bc6edefd)): ?> <?php $component = $__componentOriginalfc012cd47eee5094db538668bc6edefd; ?> <?php unset($__componentOriginalfc012cd47eee5094db538668bc6edefd); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalfc012cd47eee5094db538668bc6edefd = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalfc012cd47eee5094db538668bc6edefd = $attributes; } ?> <?php $component = App\View\Components\Cards\DataRow::resolve(['label' => __('app.summary'),'value' => !empty($appreciation->summary) ? $appreciation->summary : '--','html' => 'true'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.data-row'); ?> <?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\DataRow::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($__attributesOriginalfc012cd47eee5094db538668bc6edefd)): ?> <?php $attributes = $__attributesOriginalfc012cd47eee5094db538668bc6edefd; ?> <?php unset($__attributesOriginalfc012cd47eee5094db538668bc6edefd); ?> <?php endif; ?> <?php if (isset($__componentOriginalfc012cd47eee5094db538668bc6edefd)): ?> <?php $component = $__componentOriginalfc012cd47eee5094db538668bc6edefd; ?> <?php unset($__componentOriginalfc012cd47eee5094db538668bc6edefd); ?> <?php endif; ?> <div class="col-12 px-0 pb-3 d-flex"> <p class="mb-0 text-lightest f-14 w-30 d-inline-block "> <?php echo app('translator')->get('modules.appreciations.awardTo'); ?></p> <?php if (isset($component)) { $__componentOriginal9a71dc76dd25d4db3618f7b2896e958f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal9a71dc76dd25d4db3618f7b2896e958f = $attributes; } ?> <?php $component = App\View\Components\Employee::resolve(['user' => $appreciation->awardTo] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('employee'); ?> <?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\Employee::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($__attributesOriginal9a71dc76dd25d4db3618f7b2896e958f)): ?> <?php $attributes = $__attributesOriginal9a71dc76dd25d4db3618f7b2896e958f; ?> <?php unset($__attributesOriginal9a71dc76dd25d4db3618f7b2896e958f); ?> <?php endif; ?> <?php if (isset($__componentOriginal9a71dc76dd25d4db3618f7b2896e958f)): ?> <?php $component = $__componentOriginal9a71dc76dd25d4db3618f7b2896e958f; ?> <?php unset($__componentOriginal9a71dc76dd25d4db3618f7b2896e958f); ?> <?php endif; ?> </div> <?php if($appreciation->image_url): ?> <div class="col-12 px-0 pb-3 d-flex"> <p class="mb-0 text-lightest f-14 w-30 d-inline-block "> <?php echo app('translator')->get('modules.appreciations.photo'); ?></p> <img src="<?php echo e($appreciation->image_url); ?>" class="logo mw-250 img-thumbnail" /> </div> <?php endif; ?> </div> </div> </div> </div> </div> <script> $('body').on('click', '.delete-appre', function() { 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('appreciations.destroy', $appreciation->id)); ?>"; var token = "<?php echo e(csrf_token()); ?>"; $.easyAjax({ type: 'POST', url: url, data: { '_token': token, '_method': 'DELETE' }, success: function(response) { if (response.status == "success") { window.location.href = response.redirectUrl; } } }); } }); }); </script> <?php /**PATH /home/kckglobal/public_html/portal/resources/views/appreciations/ajax/show.blade.php ENDPATH**/ ?>
Copyright ©2021 || Defacer Indonesia