@extends('layouts.app') @section('title') {{ __('messages.setting.connect_google_calendar') }} @endsection @section('content')
@include('flash::message')
@if(getLogInUser()->hasRole('user')) @if(!isset($data['checkTimeZone']->timezone))
Note: You must need to set your timezone before integrating Google Calendar.
@endif @endif
@if(!$data['googleCalendarIntegrationExists']) @else
{{ __('messages.setting.select_your_calendars_from_google_calendar_in_which_you_want_to_create_the_appointments') }}.
{{ Form::open(['id' => 'googleCalendarForm']) }}
@foreach($data['googleCalendarLists'] as $key => $googleCalendarList)
{{ Form::checkbox('google_calendar[]', $googleCalendarList->id, \App\Models\EventGoogleCalendar::whereGoogleCalendarListId($googleCalendarList->id)->exists(), ['class' => 'form-check-input me-5 google-calendar','id' => 'checkedId'.($key+1) ]) }}
@endforeach
{{ Form::submit(__('messages.common.save'),['class' => 'btn btn-primary me-2 mb-md-0 mb-2','id'=>'googleCalendarSubmitBtn']) }} {{ __('messages.setting.sync_your_google_calendar') }} {{ __('messages.setting.disconnect_your_google_calendar') }}
{{ Form::close() }}
@endif
@endsection