@push('styles') @endpush @php $slug1 = request()->segment(4); $slug2 = request()->segment(6); @endphp
{{-- Card Header --}}
{{-- LEFT SIDE : TITLE --}}

{{ $title }}

{{-- RIGHT SIDE : BUTTONS --}} @if($show_multi_nylas == 1) @php $location_path = $selected_location_id ? '?location='.$selected_location_id : ''; @endphp
@if(!empty($nylas_calendar_api) && $nylas_calendar_api->type == 1) Create Booking Scheduler Page @elseif(!empty($soul_calendar_api) && $soul_calendar_api->type == 1) Create Booking Scheduler @endif Embed Scheduler
@endif
{{-- Card Body --}}
{{-- GOOGLE SYNC SECTION --}} @if($googleCalendarApi['res'] == 1 && $googleAuth['res'] == 1)
@if(!empty($googleAuth['authorize_url']))
Sync Your Calendar

Connect your Google Calendar to manage appointments automatically.

@elseif($googleAuth['response'] == 'logged_in')
Your calendar is synced!

Connected: {{ $googleCalendarApi['calendar_email_id'] }}

@endif
@endif
{{-- LOCATION DROPDOWN --}} @if(!empty($allContacts))
@endif @if($show_multi_nylas == 1) @php $location_path = $selected_location_id ? '?location='.$selected_location_id : ''; @endphp {{-- TOP BUTTONS (ALL CLASSES PRESERVED) --}} {{-- EVENTS TABLE --}}
@csrf @foreach($nylas_events as $i => $event) @php $is_delete_applied = strtotime($event->start_time) < now()->timestamp || $event->event_status == 'cancelled'; $user_can_cancel_event = $event->event_status == 'confirmed'; @endphp @endforeach
S.No Name Email Phone Event Name Appointment Date Appointment Time Status Action
@if($is_delete_applied) @endif {{ $i + 1 }} {{ $event->participant_name }} {{ $event->participant_email }} {{ str_replace('
', '', $event->participant_phone) }}
{{ $event->event_title }} {{ \Carbon\Carbon::parse($event->start_time)->format('M jS, Y') }} {{ \Carbon\Carbon::parse($event->start_time)->format('h:iA') }} - {{ \Carbon\Carbon::parse($event->end_time)->format('h:iA') }} {{ ucfirst($event->event_status) }} @if($is_delete_applied) @endif @if($user_can_cancel_event && $appointment_calendar_api['calendar_api'] == 'soul_calendar') Cancel Booking @endif
@endif
@push('scripts')