whoami7 - Manager
:
/
home
/
kckglobal
/
public_html
/
portal
/
storage
/
framework
/
views
/
Upload File:
files >> /home/kckglobal/public_html/portal/storage/framework/views/05fb9bff8b0e2e4e0cf1cb2c4b836f89.php
<?php $__env->startPush('styles'); ?> <link rel="stylesheet" href="<?php echo e(asset('vendor/full-calendar/main.min.css')); ?>"> <?php $__env->stopPush(); ?> <?php $__env->startSection('filter-section'); ?> <?php if (isset($component)) { $__componentOriginald1a72e1108842d163a80559e15f530b4 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginald1a72e1108842d163a80559e15f530b4 = $attributes; } ?> <?php $component = App\View\Components\Filters\FilterBox::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('filters.filter-box'); ?> <?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\Filters\FilterBox::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <!-- TYPES START --> <div class="select-box d-flex py-2 px-lg-2 px-md-2 px-0 border-right-grey border-right-grey-sm-0"> <p class="mb-0 pr-2 f-14 text-dark-grey d-flex align-items-center"><?php echo app('translator')->get('app.type'); ?></p> <div class="select-status"> <select class="form-control select-picker" name="type" id="type"> <option value="all"><?php echo app('translator')->get('app.all'); ?></option> <?php $__currentLoopData = $types; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $type): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($key); ?>"><?php echo e($type); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> <!-- TYPES END --> <!-- RESET START --> <div class="select-box d-flex py-1 px-lg-2 px-md-2 px-0"> <?php if (isset($component)) { $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal5e57c6582b8a883148a28bb7ee46d2ad = $attributes; } ?> <?php $component = App\View\Components\Forms\ButtonSecondary::resolve(['icon' => 'times-circle'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.button-secondary'); ?> <?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\ButtonSecondary::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'btn-xs d-none','id' => 'reset-filters']); ?> <?php echo app('translator')->get('app.clearFilters'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal5e57c6582b8a883148a28bb7ee46d2ad)): ?> <?php $attributes = $__attributesOriginal5e57c6582b8a883148a28bb7ee46d2ad; ?> <?php unset($__attributesOriginal5e57c6582b8a883148a28bb7ee46d2ad); ?> <?php endif; ?> <?php if (isset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad)): ?> <?php $component = $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad; ?> <?php unset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad); ?> <?php endif; ?> </div> <!-- RESET END --> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginald1a72e1108842d163a80559e15f530b4)): ?> <?php $attributes = $__attributesOriginald1a72e1108842d163a80559e15f530b4; ?> <?php unset($__attributesOriginald1a72e1108842d163a80559e15f530b4); ?> <?php endif; ?> <?php if (isset($__componentOriginald1a72e1108842d163a80559e15f530b4)): ?> <?php $component = $__componentOriginald1a72e1108842d163a80559e15f530b4; ?> <?php unset($__componentOriginald1a72e1108842d163a80559e15f530b4); ?> <?php endif; ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="content-wrapper"> <?php if (isset($component)) { $__componentOriginalbc9540fa671f26a0f8028a5a8d8f93e9 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalbc9540fa671f26a0f8028a5a8d8f93e9 = $attributes; } ?> <?php $component = App\View\Components\Cards\Data::resolve([] + (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([]); ?> <div id="calendar"></div> <?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> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <script src="<?php echo e(asset('vendor/full-calendar/main.min.js')); ?>"></script> <script src="<?php echo e(asset('vendor/full-calendar/locales-all.min.js')); ?>"></script> <script> $('#type').on('change keyup', function() { if ($('#type').val() != "all") { $('#reset-filters').removeClass('d-none'); loadData(); } else { $('#reset-filters').addClass('d-none'); loadData(); } }); $('#reset-filters').click(function() { $('#filter-form')[0].reset(); $('.filter-box .select-picker').selectpicker("refresh"); $('#reset-filters').addClass('d-none'); loadData(); }); var initialLocaleCode = '<?php echo e(user()->locale); ?>'; var calendarEl = document.getElementById('calendar'); var calendar = new FullCalendar.Calendar(calendarEl, { locale: initialLocaleCode, timeZone: '<?php echo e(company()->timezone); ?>', firstDay: parseInt("<?php echo e(attendance_setting()?->week_start_from); ?>"), headerToolbar: { left: 'prev,next today', center: 'title', right: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek' }, navLinks: true, selectable: false, selectMirror: true, select: function(arg) { addEventModal(arg.start, arg.end, arg.allDay); calendar.unselect() }, eventClick: function(arg) { getEventDetail(arg.event.id,arg.event.extendedProps.event_type); }, editable: false, dayMaxEvents: true, events: { url: "<?php echo e(route('my-calendar.index')); ?>", extraParams: function() { var type = $('#type').val(); return { type: type, }; } }, eventDidMount: function(info) { $(info.el).css('background-color', info.event.extendedProps.bg_color); $(info.el).css('color', info.event.extendedProps.color); $(info.el).find('td.fc-list-event-title').prepend('<i class="fa '+info.event.extendedProps.icon+'"></i> '); // tooltip for leaves if(info.event.extendedProps.event_type == 'leave'){ $(info.el).find('td.fc-list-event-title > a').css('cursor','default'); // list view cursor for leave $(info.el).css('cursor','default') $(info.el).tooltip({ title: info.event.extendedProps.name, container: 'body', delay: { "show": 50, "hide": 50 } }); } }, eventTimeFormat: { hour: company.time_format == 'H:i' ? '2-digit' : 'numeric', minute: '2-digit', hour12: company.time_format == 'H:i' ? false : true, meridiem: company.time_format == 'H:i' ? false : true } }); if (calendarEl != null) { calendar.render(); } function loadData() { calendar.refetchEvents(); calendar.destroy(); calendar.render(); } // Task Detail show in sidebar var getEventDetail = function(id,type) { if(type == 'ticket') { var url = "<?php echo e(route('tickets.show', ':id')); ?>"; url = url.replace(':id', id); window.location = url; return true; } openTaskDetail(); switch (type) { case 'task': var url = "<?php echo e(route('tasks.show', ':id')); ?>"; break; case 'event': var url = "<?php echo e(route('events.show', ':id')); ?>"; break; case 'holiday': var url = "<?php echo e(route('holidays.show', ':id')); ?>"; break; case 'leave': var url = "<?php echo e(route('leaves.show', ':id')); ?>"; break; case 'follow_up': var url = "<?php echo e(route('deals.show', ':id')); ?>"; break; default: return 0; break; } url = url.replace(':id', id); $.easyAjax({ url: url, blockUI: true, container: RIGHT_MODAL, historyPush: true, success: function(response) { if (response.status == "success") { $(RIGHT_MODAL_CONTENT).html(response.html); $(RIGHT_MODAL_TITLE).html(response.title); } }, error: function(request, status, error) { if (request.status == 403) { $(RIGHT_MODAL_CONTENT).html( '<div class="align-content-between d-flex justify-content-center mt-105 f-21">403 | Permission Denied</div>' ); } else if (request.status == 404) { $(RIGHT_MODAL_CONTENT).html( '<div class="align-content-between d-flex justify-content-center mt-105 f-21">404 | Not Found</div>' ); } else if (request.status == 500) { $(RIGHT_MODAL_CONTENT).html( '<div class="align-content-between d-flex justify-content-center mt-105 f-21">500 | Something Went Wrong</div>' ); } } }); }; // calendar filter var hideDropdown = false; $('#event-btn').click(function(){ if(hideDropdown == true) { $('#cal-drop').hide(); hideDropdown = false; } else { $('#cal-drop').toggle(); hideDropdown = true; } }); $(document).mouseup(e => { const $menu = $('.calendar-action'); if (!$menu.is(e.target) && $menu.has(e.target).length === 0) { hideDropdown = false; $('#cal-drop').hide(); } }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/kckglobal/public_html/portal/resources/views/my-calendar/index.blade.php ENDPATH**/ ?>
Copyright ©2021 || Defacer Indonesia