@extends('layouts.public') @section('title', $calendar->name) @section('content')
{{ $calendar->users->pluck('name')->implode(', ') ?: $account->name }}

{{ $calendar->name }}

{{ $calendar->duration_minutes }} minutes
{{ \App\Models\Calendar::LOCATIONS[$calendar->location_type] }}{{ $calendar->location_type === 'in_person' && $calendar->location_details ? ': '.$calendar->location_details : '' }}
@if ($calendar->description)
{{ $calendar->description }}
@endif
@include('calendar.public._picker', ['slotsUrl' => route('booking.slots', $calendar->uuid)])
@csrf
{{ old('start') ? 'Your chosen time' : '' }}
@error('start')
{{ $message }}
@enderror
@foreach ((array) $calendar->questions as $i => $q)
@if (($q['type'] ?? 'text') === 'textarea') @else @endif @error("answers.$i")
{{ $message }}
@enderror
@endforeach
@endsection @push('scripts') @endpush