@extends('layouts.public') @section('title', $calendar->name) @section('content') @php($tz = $appointment->timezone ?: $calendar->timezone)
@if (session('booked'))

You're booked

A confirmation is on its way to {{ $appointment->contact?->email }}.

@elseif (session('success'))
{{ session('success') }}
@endif @error('start')
{{ $message }}
@enderror

{{ $calendar->name }}

When
{{ $appointment->starts_at->timezone($tz)->format('l, d F Y') }}
{{ $appointment->starts_at->timezone($tz)->format('h:i A') }} – {{ $appointment->ends_at->timezone($tz)->format('h:i A') }} ({{ $tz }})
@if ($appointment->user)
With
{{ $appointment->user->name }}
@endif
Where
@if ($appointment->meeting_url && $appointment->status !== 'cancelled')Join the meeting@else{{ \App\Models\Calendar::LOCATIONS[$calendar->location_type] }}{{ $calendar->location_type === 'in_person' && $calendar->location_details ? ': '.$calendar->location_details : '' }}@endif
Status
{{ \App\Models\Appointment::STATUSES[$appointment->status] ?? $appointment->status }}
@if ($appointment->status !== 'cancelled' && $appointment->starts_at->isFuture())
@csrf
@include('calendar.public._picker', ['slotsUrl' => route('booking.manage.slots', $appointment->uuid)])
@csrf
@endif
@endsection @push('scripts') @endpush