ok
Direktori : /home2/selectio/www/fms-worksuite/storage/framework/views/ |
Current File : /home2/selectio/www/fms-worksuite/storage/framework/views/78c446061f4155e290865f8fb98472a7.php |
<?php $__env->startSection('content'); ?> <!-- SETTINGS START --> <div class="w-100 d-flex "> <?php echo $__env->make('sections.setting-sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php if (isset($component)) { $__componentOriginalcb8848b8ae159c08072bf1971fc3ca1f = $component; } ?> <?php $component = App\View\Components\SettingCard::resolve(['method' => 'POST'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('setting-card'); ?> <?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\SettingCard::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php $__env->slot('header', null, []); ?> <div class="s-b-n-header" id="tabs"> <h2 class="mb-0 p-20 f-21 font-weight-normal text-capitalize border-bottom-grey"> <?php echo app('translator')->get($pageTitle); ?></h2> </div> <?php $__env->endSlot(); ?> <div class="col-lg-8 col-md-8 ntfcn-tab-content-left w-100 p-4"> <div class="row"> <div class="col-lg-12"> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['fieldLabel' => __('app.status'),'fieldName' => 'status','fieldId' => 'google_status','fieldValue' => 'active','checked' => ($companyOrGlobalSetting->google_calendar_status === 'active' || $companyOrGlobalSetting->google_calendar_status==1)] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.checkbox'); ?> <?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\Checkbox::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['fieldRequired' => 'true']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> </div> </div> <div class="row google_details mt-3 <?php if($companyOrGlobalSetting->google_calendar_status == 'inactive'): ?> d-none <?php endif; ?>"> <div class="col-lg-12 col-md-12"> <?php if (isset($component)) { $__componentOriginal4e45e801405ab67097982370a6a83cba = $component; } ?> <?php $component = App\View\Components\Forms\Text::resolve(['fieldLabel' => __('modules.googleCalendar.clientId'),'fieldPlaceholder' => __('placeholders.id'),'fieldName' => 'google_client_id','fieldId' => 'google_client_id','fieldValue' => $globalSetting->google_client_id,'fieldRequired' => 'true'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.text'); ?> <?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\Text::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($__componentOriginal4e45e801405ab67097982370a6a83cba)): ?> <?php $component = $__componentOriginal4e45e801405ab67097982370a6a83cba; ?> <?php unset($__componentOriginal4e45e801405ab67097982370a6a83cba); ?> <?php endif; ?> </div> <div class="col-lg-12"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['fieldId' => 'password','fieldLabel' => __('modules.googleCalendar.clientSecret'),'fieldRequired' => 'true'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.label'); ?> <?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\Label::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'mt-3']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7 = $component; } ?> <?php $component = App\View\Components\Forms\InputGroup::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.input-group'); ?> <?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\InputGroup::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <input type="password" name="google_client_secret" id="google_client_secret" class="form-control height-35 f-14" value="<?php echo e($globalSetting->google_client_secret); ?>"> <?php $__env->slot('preappend', null, []); ?> <button type="button" data-toggle="tooltip" data-original-title="<?php echo app('translator')->get('app.viewPassword'); ?>" class="btn btn-outline-secondary border-grey height-35 toggle-password"><i class="fa fa-eye"></i></button> <?php $__env->endSlot(); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7)): ?> <?php $component = $__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7; ?> <?php unset($__componentOriginalcbf9105fd4879d5d6ef9e1f6fe271af7); ?> <?php endif; ?> </div> <div class="col-lg-12 mt-4"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['fieldId' => '','fieldLabel' => __('messages.googleCalendar.AuthorizedRedirectURI'),'popover' => __('messages.googleCalendar.AuthorizedRedirectURIInfoMessage')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.label'); ?> <?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\Label::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['for' => 'mail_from_name']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <p class="text-bold"><span id="google-calendar-link-text"><?php echo e(route('googleAuth')); ?></span> <a href="javascript:;" class="btn-copy btn-secondary f-12 rounded p-1 py-2 ml-1" data-clipboard-target="#google-calendar-link-text"> <i class="fa fa-copy mx-1"></i><?php echo app('translator')->get('app.copy'); ?></a> </p> <p class="text-primary">(<?php echo app('translator')->get('messages.googleCalendar.addGoogleCalendarUrl'); ?>)</p> </div> </div> </div> <div class="col-xl-4 col-lg-12 col-md-12 ntfcn-tab-content-right border-left-grey p-4"> <h4 class="f-16 text-capitalize f-w-500 text-dark-grey"><?php echo app('translator')->get("messages.googleCalendar.notificationTitle"); ?></h4> <div class="mb-3 d-flex"> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['checked' => $module->lead_status == '1','fieldLabel' => __('app.menu.leads'),'fieldName' => 'lead_status','fieldId' => 'lead_status','fieldValue' => $module->lead_status] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.checkbox'); ?> <?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\Checkbox::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($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> </div> <div class="mb-3 d-flex"> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['checked' => $module->leave_status == '1','fieldLabel' => __('app.menu.leaves'),'fieldName' => 'leave_status','fieldId' => 'leave_status','fieldValue' => $module->leave_status] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.checkbox'); ?> <?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\Checkbox::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($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> </div> <div class="mb-3 d-flex"> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['checked' => $module->invoice_status == '1','fieldLabel' => __('app.menu.invoices'),'fieldName' => 'invoice_status','fieldId' => 'invoice_status','fieldValue' => $module->invoice_status] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.checkbox'); ?> <?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\Checkbox::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($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> </div> <div class="mb-3 d-flex"> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['checked' => $module->contract_status == '1','fieldLabel' => __('app.menu.contracts'),'fieldName' => 'contract_status','fieldId' => 'contract_status','fieldValue' => $module->contract_status] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.checkbox'); ?> <?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\Checkbox::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($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> </div> <div class="mb-3 d-flex"> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['checked' => $module->task_status == '1','fieldLabel' => __('app.menu.tasks'),'fieldName' => 'task_status','fieldId' => 'task_status','fieldValue' => $module->task_status] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.checkbox'); ?> <?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\Checkbox::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($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> </div> <div class="mb-3 d-flex"> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['checked' => $module->event_status == '1','fieldLabel' => __('app.menu.Events'),'fieldName' => 'event_status','fieldId' => 'event_status','fieldValue' => $module->event_status] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.checkbox'); ?> <?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\Checkbox::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($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> </div> <div class="mb-3 d-flex"> <?php if (isset($component)) { $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3 = $component; } ?> <?php $component = App\View\Components\Forms\Checkbox::resolve(['checked' => $module->holiday_status == '1','fieldLabel' => __('app.menu.holiday'),'fieldName' => 'holiday_status','fieldId' => 'holiday_status','fieldValue' => $module->holiday_status] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.checkbox'); ?> <?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\Checkbox::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($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3)): ?> <?php $component = $__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3; ?> <?php unset($__componentOriginal9c5d7e5b2e4b8b16cfa941b5e69189f3); ?> <?php endif; ?> </div> </div> <?php $__env->slot('action', null, []); ?> <!-- Buttons Start --> <div class="w-100 border-top-grey"> <?php if (isset($component)) { $__componentOriginal22960d0612890da31753448e47f28003 = $component; } ?> <?php $component = App\View\Components\SettingFormActions::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('setting-form-actions'); ?> <?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\SettingFormActions::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php if (isset($component)) { $__componentOriginalcf8d12533ff890e0d6573daf32b7618d = $component; } ?> <?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(['id' => 'save-form','class' => 'mr-3']); ?><?php echo app('translator')->get('app.save'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalcf8d12533ff890e0d6573daf32b7618d)): ?> <?php $component = $__componentOriginalcf8d12533ff890e0d6573daf32b7618d; ?> <?php unset($__componentOriginalcf8d12533ff890e0d6573daf32b7618d); ?> <?php endif; ?> <?php if(($globalSetting->google_calendar_status == 'active' && !empty($globalSetting->google_client_id) && !empty($globalSetting->google_client_secret)) && $setting && $setting->google_calendar_verification_status == 'non_verified' && empty($setting->token) && empty($setting->name) && empty($setting->google_id)): ?> <?php if (isset($component)) { $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad = $component; } ?> <?php $component = App\View\Components\Forms\ButtonSecondary::resolve([] + (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' => 'mr-3','id' => 'verify-google-calendar']); ?> <?php echo app('translator')->get('app.verify'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad)): ?> <?php $component = $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad; ?> <?php unset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad); ?> <?php endif; ?> <?php endif; ?> <?php if(($globalSetting->google_calendar_status == 'active' && !empty($globalSetting->google_client_id) && !empty($globalSetting->google_client_secret)) && $setting && $setting->google_calendar_verification_status == 'verified' && !empty($setting->token) && !empty($setting->name) && !empty($setting->google_id)): ?> <?php if (isset($component)) { $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad = $component; } ?> <?php $component = App\View\Components\Forms\ButtonSecondary::resolve([] + (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(['id' => 'disable-google-calendar','class' => 'mr-3']); ?> <?php echo app('translator')->get('app.disable'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad)): ?> <?php $component = $__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad; ?> <?php unset($__componentOriginal5e57c6582b8a883148a28bb7ee46d2ad); ?> <?php endif; ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal22960d0612890da31753448e47f28003)): ?> <?php $component = $__componentOriginal22960d0612890da31753448e47f28003; ?> <?php unset($__componentOriginal22960d0612890da31753448e47f28003); ?> <?php endif; ?> </div> <!-- Buttons End --> <?php $__env->endSlot(); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalcb8848b8ae159c08072bf1971fc3ca1f)): ?> <?php $component = $__componentOriginalcb8848b8ae159c08072bf1971fc3ca1f; ?> <?php unset($__componentOriginalcb8848b8ae159c08072bf1971fc3ca1f); ?> <?php endif; ?> </div> <!-- SETTINGS END --> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <script> const clipboard = new ClipboardJS('.btn-copy'); clipboard.on('success', function (e) { Swal.fire({ icon: 'success', text: '<?php echo app('translator')->get("app.webhookUrlCopied"); ?>', toast: true, position: 'top-end', timer: 3000, timerProgressBar: true, showConfirmButton: false, customClass: { confirmButton: 'btn btn-primary', }, showClass: { popup: 'swal2-noanimation', backdrop: 'swal2-noanimation' }, }) }); $('#save-form').click(function () { $.easyAjax({ url: "<?php echo e(route('google-calendar-settings.store')); ?>", container: '#editSettings', blockUI: true, type: "POST", file: true, data: $('#editSettings').serialize(), success: function (response) { if (response.status == 'success') { window.location.reload(); } } }) }); // Show/hide google calendar details $(document).on('change', '#google_status', function () { $('.google_details').toggleClass('d-none'); }); // Show/hide google calendar details $(document).on('change', '.form-check-input', function () { $(this).is(':checked') ? $(this).val('1') : $(this).val('0'); }); $(document).on('click', '#verify-google-calendar', function () { window.location.href = "<?php echo e(route('googleAuth')); ?>"; }); // Show/hide google calendar details $(document).on('click', '#disable-google-calendar', function () { Swal.fire({ title: "<?php echo app('translator')->get('messages.sweetAlertTitle'); ?>", text: "<?php echo app('translator')->get('messages.googleCalendar.confirmRemove'); ?>", icon: 'warning', showCancelButton: true, focusConfirm: false, confirmButtonText: "<?php echo app('translator')->get('messages.googleCalendar.yesRemove'); ?>", 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) { const url = "<?php echo e(route('googleAuth.destroy')); ?>"; const token = "<?php echo e(csrf_token()); ?>"; $.easyAjax({ type: 'POST', url: url, data: { '_token': token, '_method': 'DELETE' }, success: function (response) { if (response.status === "success") { location.reload(); } } }); } }); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home2/selectio/public_html/fms-worksuite/resources/views/google-calendar-settings/index.blade.php ENDPATH**/ ?>