whoami7 - Manager
:
/
home
/
kckglobal
/
public_html
/
portal
/
storage
/
framework
/
views
/
Upload File:
files >> /home/kckglobal/public_html/portal/storage/framework/views/25be61c7b3f1ad9e42ed9425e1bce714.php
<?php $__env->startPush('styles'); ?> <link rel="stylesheet" href="<?php echo e(asset('vendor/full-calendar/main.min.css')); ?>"> <link rel="stylesheet" href="<?php echo e(asset('vendor/css/bootstrap-colorpicker.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([]); ?> <!-- STATUS START --> <div class="select-box d-flex py-2 pr-2 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.status'); ?></p> <div class="select-status"> <select class="form-control select-picker" name="status" data-container="body" id="status"> <option value="not finished"><?php echo app('translator')->get('recruit::modules.interviewSchedule.hideFinishedMeetings'); ?> </option> <option value="all"><?php echo app('translator')->get('app.all'); ?></option> <option value="rejected"><?php echo app('translator')->get('app.rejected'); ?></option> <option value="hired"><?php echo app('translator')->get('recruit::app.menu.hired'); ?></option> <option value="pending"><?php echo app('translator')->get('app.pending'); ?></option> <option value="canceled"><?php echo app('translator')->get('app.canceled'); ?></option> </select> </div> </div> <!-- STATUS END --> <!-- SEARCH BY TASK START --> <div class="task-search d-flex py-1 px-lg-3 px-0 border-right-grey align-items-center"> <form class="w-100 mr-1 mr-lg-0 mr-md-1 ml-md-1 ml-0 ml-lg-0"> <div class="input-group bg-grey rounded"> <div class="input-group-prepend"> <span class="input-group-text border-0 bg-additional-grey"> <i class="fa fa-search f-13 text-dark-grey"></i> </span> </div> <input type="text" class="form-control f-14 p-1 border-additional-grey" id="search-text-field" placeholder="<?php echo app('translator')->get('app.startTyping'); ?>"> </div> </form> </div> <!-- SEARCH BY TASK END --> <!-- RESET START --> <div class="select-box d-flex py-2 px-lg-3 px-md-3 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 $addInterviewPermission = user()->permission('add_interview_schedule'); $editInterviewSchedulePermission = user()->permission('edit_interview_schedule'); $deleteInterviewSchedulePermission = user()->permission('delete_interview_schedule'); ?> <?php $__env->startSection('content'); ?> <!-- CONTENT WRAPPER START --> <div class="content-wrapper"> <!-- Add Task Export Buttons Start --> <div class="d-flex"> <div id="table-actions" class="flex-grow-1 align-items-center mb-2 mb-lg-0 mb-md-0"> <?php if($addInterviewPermission == 'all' || $addInterviewPermission == 'added'|| $addInterviewPermission == 'owned' || $addInterviewPermission == 'both'): ?> <?php if (isset($component)) { $__componentOriginaldbb84df4c3a5cbdd95fb35d18ba6410f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaldbb84df4c3a5cbdd95fb35d18ba6410f = $attributes; } ?> <?php $component = App\View\Components\Forms\LinkPrimary::resolve(['link' => route('interview-schedule.create'),'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 mb-3 openRightModal float-left','data-redirect-url' => ''.e(url()->full()).'']); ?> <?php echo app('translator')->get('app.add'); ?> <?php echo app('translator')->get('recruit::app.menu.interviewSchedule'); ?> <?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; ?> <?php endif; ?> </div> <div class="btn-group mb-3" role="group"> <a href="<?php echo e(route('interview-schedule.table_view')); ?>" class="btn btn-secondary f-14" data-toggle="tooltip" data-original-title="<?php echo app('translator')->get('recruit::app.menu.tableView'); ?>"><i class="side-icon bi bi-list-ul"></i></a> <a href="<?php echo e(route('interview-schedule.index')); ?>" class="btn btn-secondary f-14 btn-active" data-toggle="tooltip" data-original-title="<?php echo app('translator')->get('recruit::app.menu.calendarView'); ?>"><i class="ide-icon bi bi-calendar"></i></a> </div> </div> <!-- leave table Box Start --> <div class="row"> <div class="col-md-8"> <!-- CALENDAR VIEW START --> <div class="e-d-tasks-projects-events"> <div class="row"> <div class="col-md-12"> <?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> </div> </div> <!-- CALENDAR VIEW END --> </div> <!-- PROJECT RIGHT START --> <div class="col-md-4"> <div class="bg-white"> <!-- ACTIVITY HEADING START --> <div class="p-activity-heading d-flex align-items-center justify-content-between b-shadow-4 p-20"> <p class="mb-0 f-18 f-w-500"><?php echo app('translator')->get('recruit::app.menu.interviewSchedule'); ?></p> </div> <!-- ACTIVITY HEADING END --> <!-- ACTIVITY DETAIL START --> <div class="p-activity-detail cal-info b-shadow-4" data-menu-vertical="1" data-menu-scroll="1" data-menu-dropdown-timeout="500" id="projectActivityDetail"> <div class="card border-0 b-shadow-4 p-20 rounded-0"> <?php $__empty_1 = true; $__currentLoopData = $upComingSchedules; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $event): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <div class="card-horizontal"> <div class="card-header m-0 p-0 bg-white rounded"> <?php if (isset($component)) { $__componentOriginalf5a72a6c92f224d4750fab85bf5244ff = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalf5a72a6c92f224d4750fab85bf5244ff = $attributes; } ?> <?php $component = App\View\Components\DateBadge::resolve(['month' => $event->schedule_date->format('M'),'date' => $event->schedule_date->timezone($company->timezone)->format('d')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('date-badge'); ?> <?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\DateBadge::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($__attributesOriginalf5a72a6c92f224d4750fab85bf5244ff)): ?> <?php $attributes = $__attributesOriginalf5a72a6c92f224d4750fab85bf5244ff; ?> <?php unset($__attributesOriginalf5a72a6c92f224d4750fab85bf5244ff); ?> <?php endif; ?> <?php if (isset($__componentOriginalf5a72a6c92f224d4750fab85bf5244ff)): ?> <?php $component = $__componentOriginalf5a72a6c92f224d4750fab85bf5244ff; ?> <?php unset($__componentOriginalf5a72a6c92f224d4750fab85bf5244ff); ?> <?php endif; ?> </div> <div class="card-body border-0 p-0 ml-3"> <a class="text-darkest-grey openRightModal" href="<?php echo e(route('interview-schedule.show', $event->id)); ?>"> <h4 class="card-title f-14 font-weight-normal text-capitalize"> <?php echo e(($event->jobApplication->full_name)); ?> </h4></a> <p class="card-text f-12 text-dark-grey mb-2"> <?php echo e($event->schedule_date->setTimeZone(company()->timezone)->format($company->date_format. ' , ' . $company->time_format)); ?> </p> <p class="card-text f-12 text-dark-grey"> <?php echo e(($event->jobApplication->job->title)); ?> </p> <?php $secEmp = []; foreach($event->employees as $usrdt){ $secEmp[] = $usrdt->id; } $employeeStatus = $event->employeesData->filter(function ($value, $key) use ($loggedEmployee) { return $value->user_id == $loggedEmployee->id; })->first(); ?> <?php if(in_array($loggedEmployee->id, $secEmp)): ?> <?php if($employeeStatus->user_accept_status == 'accept'): ?> <label class="badge badge-success float-right"><?php echo app('translator')->get('recruit::modules.interviewSchedule.accepted'); ?></label> <?php elseif($employeeStatus->user_accept_status == 'refuse'): ?> <label class="badge badge-danger float-right"><?php echo app('translator')->get('recruit::modules.interviewSchedule.refused'); ?></label> <?php else: ?> <span class="float-right"> <?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(['onclick' => 'employeeResponse('.e($employeeStatus->id).', \'accept\')','class' => 'mr-2']); ?> <?php echo app('translator')->get('app.accept'); ?> <?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; ?> <?php if (isset($component)) { $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal5e57c6582b8a883148a28bb7ee46d2ad = $attributes; } ?> <?php $component = App\View\Components\Forms\ButtonSecondary::resolve(['icon' => 'fa fa-times'] + (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(['onclick' => 'employeeResponse('.e($employeeStatus->id).', \'refuse\')']); ?> <?php echo app('translator')->get('recruit::modules.interviewSchedule.reject'); ?> <?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; ?> </span> <?php endif; ?> <?php endif; ?> </div> <div class="text-right"> <?php if($editInterviewSchedulePermission == 'all' || ($editInterviewSchedulePermission == 'added' && $event->added_by == user()->id) || ($editInterviewSchedulePermission == 'owned' && in_array($loggedEmployee->id, $secEmp)) || ($editInterviewSchedulePermission == 'both' && (in_array($loggedEmployee->id, $secEmp) || $event->added_by == user()->id)) || ($deleteInterviewSchedulePermission == 'all' || ($deleteInterviewSchedulePermission == 'added' && $event->added_by == user()->id) || ($deleteInterviewSchedulePermission == 'owned' && in_array($loggedEmployee->id, $secEmp)) || ($deleteInterviewSchedulePermission == 'both' && (in_array($loggedEmployee->id, $secEmp) || $event->added_by == user()->id)))): ?> <div class="dropdown"> <button class="btn btn-lg f-14 px-2 py-1 text-dark-grey text-capitalize 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($editInterviewSchedulePermission == 'all' || ($editInterviewSchedulePermission == 'added' && $event->added_by == user()->id) || ($editInterviewSchedulePermission == 'owned' && in_array($loggedEmployee->id, $secEmp)) || ($editInterviewSchedulePermission == 'both' && (in_array($loggedEmployee->id, $secEmp) || $event->added_by == user()->id))): ?> <a class="dropdown-item openRightModal" href="<?php echo e(route('interview-schedule.edit', $event->id)); ?>"><?php echo app('translator')->get('app.edit'); ?></a> <?php endif; ?> <?php if($event->status == 'pending'): ?> <?php if($editInterviewSchedulePermission == 'all' || ($editInterviewSchedulePermission == 'added' && $event->added_by == user()->id) || ($editInterviewSchedulePermission == 'owned' && in_array($loggedEmployee->id, $secEmp)) || ($editInterviewSchedulePermission == 'both' && (in_array($loggedEmployee->id, $secEmp) || $event->added_by == user()->id))): ?> <a class="dropdown-item reschedule-interview" data-user-id="<?php echo e($event->id); ?>"><?php echo app('translator')->get('recruit::modules.interviewSchedule.reSchedule'); ?></a> <?php endif; ?> <?php endif; ?> <?php if($deleteInterviewSchedulePermission == 'all' || ($deleteInterviewSchedulePermission == 'added' && $event->added_by == user()->id) || ($deleteInterviewSchedulePermission == 'owned' && in_array($loggedEmployee->id, $secEmp)) || ($deleteInterviewSchedulePermission == 'both' && (in_array($loggedEmployee->id, $secEmp) || $event->added_by == user()->id))): ?> <a class="dropdown-item delete-table-row" data-schedule-id="<?php echo e($event->id); ?>" data-parent-id="<?php echo e($event->parent_id); ?>"><?php echo app('translator')->get('app.delete'); ?></a> <?php endif; ?> </div> </div> <?php endif; ?> </div> </div> <hr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <h4 class="card-title f-14 font-weight-normal"> <?php echo app('translator')->get('recruit::modules.message.noInterview'); ?></h4> <p class="card-text f-12 text-dark-grey"></p> <?php endif; ?> </div> </div><!-- card end --> </div><!-- card end --> </div> <!-- ACTIVITY DETAIL END --> </div> </div> <!-- PROJECT RIGHT END --> </div> <!-- CONTENT WRAPPER END --> <?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> $('#status, #employee, #client, #search-text-field').on('change keyup', function () { if ($('#status').val() != "not finished") { $('#reset-filters').removeClass('d-none'); } else if ($('#clientID').val() != "all") { $('#reset-filters').removeClass('d-none'); } else if ($('#employee').val() != "all") { $('#reset-filters').removeClass('d-none'); } else if ($('#search-text-field').val() != "") { $('#reset-filters').removeClass('d-none'); } else { $('#reset-filters').addClass('d-none'); } loadData(); }); $('body').on('click', '#reset-filters', function () { $('#filter-form')[0].reset(); $('.filter-box #status').val('not finished'); $('.filter-box .select-picker').selectpicker("refresh"); $('#reset-filters').addClass('d-none'); loadData(); }); $('body').on('click', '#reset-filters-2', function () { $('#filter-form')[0].reset(); $('.filter-box #status').val('not finished'); $('.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); ?>', headerToolbar: { left: 'prev,next today', center: 'title', right: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek' }, navLinks: true, // can click day/week names to navigate views selectable: false, selectMirror: true, select: function (arg) { addEventModal(arg.start, arg.end, arg.allDay); calendar.unselect() }, eventClick: function (arg) { getEventDetail(arg.event.id); }, editable: false, dayMaxEvents: true, // allow "more" link when too many events events: { url: "<?php echo e(route('interview-schedule.index')); ?>", extraParams: function () { var searchText = $('#search-text-field').val(); var clientId = $('#client').val(); var employeeId = $('#employee').val(); var status = $('#status').val(); return { searchText: searchText, status: status, clientId: clientId, employeeId: employeeId }; } }, eventDidMount: function (info) { $(info.el).css('background-color', info.event.extendedProps.bg_color); $(info.el).css('color', info.event.extendedProps.color); }, eventTimeFormat: { hour: company.time_format == 'H:i' ? '2-digit' : 'numeric', minute: '2-digit', meridiem: company.time_format == 'H:i' ? false : true } }); calendar.render(); function loadData() { calendar.refetchEvents(); calendar.destroy(); calendar.render(); } // show event detail in sidebar var getEventDetail = function (id) { openTaskDetail(); var url = "<?php echo e(route('interview-schedule.show', ':id')); ?>"; 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>' ); } } }); } function employeeResponse(id, type) { Swal.fire({ title: "<?php echo app('translator')->get('messages.sweetAlertTitle'); ?>", icon: 'warning', showCancelButton: true, focusConfirm: false, confirmButtonText: "<?php echo app('translator')->get('messages.confirm'); ?>", 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('interview-schedule.response',[':id',':type'])); ?>"; url = url.replace(':id', id); url = url.replace(':type', type); var token = "<?php echo e(csrf_token()); ?>"; $.easyAjax({ url: url, blockUI: true, type: 'GET', success: function (response) { if (response.status == 'success') { window.location.reload(); } } }); } }); }; $('body').on('click', '.delete-table-row', function () { var id = $(this).data('schedule-id'); var parentId = $(this).data('parent-id'); if (parentId == '') { Swal.fire({ title: "<?php echo app('translator')->get('messages.sweetAlertTitle'); ?>", text: "<?php echo app('translator')->get('recruit::messages.relatedInterviewdelete'); ?>", 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('interview-schedule.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.href = response.redirectUrl; } } }); } }); } else { 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('interview-schedule.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.href = response.redirectUrl; } } }); } }); } }); $('body').on('click', '.reschedule-interview', function () { var id = $(this).data('user-id'); const url = "<?php echo e(route('interview-schedule.reschedule')); ?>?id=" + id; $(MODAL_LG + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_LG, url); }); </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/Modules/Recruit/Resources/views/interview-schedule/index.blade.php ENDPATH**/ ?>
Copyright ©2021 || Defacer Indonesia