@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
@if (getLoggedinDoctor())
{{ Form::open(['route' => 'google.json.file.store', 'files' => true ])}}
{{ Form::label('file', __('messages.google_meet.google_json_file') . ':', ['class' => 'form-label required']) }}
{{ Form::button(__('messages.common.save'), ['type' => 'submit','class' => 'btn btn-primary m-0','id' => 'googleJsonFileSave','data-loading-text' => " Processing..."]) }}
{{ Form::close() }}
@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