@extends('layouts.app') @section('title') {{ __('messages.google_meet.connect_calendar') }} @endsection @section('css') @endsection @section('content')
@include('flash::message')
@if(!$data['googleCalendarIntegrationExists'])
@if(getLoggedinDoctor()) {{ __('messages.google_meet.connect_calendar') }} @endif
@else
{{ __('messages.google_meet.select_google_calendar') }}.
{{ Form::open(['id' => 'googleCalendarForm']) }}
@foreach($data['googleCalendarLists'] as $key => $googleCalendarList)
{{ Form::checkbox('google_calendar[]', $googleCalendarList->id, \App\Models\EventGoogleCalendar::where('google_calendar_list_id',$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.google_meet.sync_google_calendar') }} {{ __('messages.google_meet.disconnect_google_calendar') }}
{{ Form::close() }}
@endif
@endsection