Slots | CMS

Slots

Bookable time slots for your services. Times are in {data.timezone}.

{#if form?.message}{/if} {#if bulkDone}
{bulkMessage(bulkDone)}
{/if} {#if !items.length}
Add a bookable service under Services & products first.
{/if} {#if data.slotsError}{/if}

{monthLabel}

{#each WEEKDAYS as weekday (weekday.day)}
{weekday.label}
{/each}
{#each gridKeys as key (key)} {@const daySlotList = slotsByDay.get(key) ?? []} {@const isToday = key === data.today}
{#each daySlotList.slice(0, MAX_CHIPS) as slot (slot.id)} {@const state = slotState(slot)} {/each} {#if daySlotList.length > MAX_CHIPS} {/if}
{/each}
{#each Object.entries(SLOT_STATE_LABELS) as [state, label] (state)} {label} {/each} — a booking (or basket) at one time blocks every other service overlapping it, including get-ready time.
All slots in {monthLabel} ({monthSlots.length})
{#each monthSlots as slot (slot.id)} {@const state = slotState(slot)} {:else} {/each}
ServiceDatePlacesStatus
{slot.itemName} {formatDateTime(slot.start, data.timezone)} {slot.booked + slot.held}/{slot.capacity} {SLOT_STATE_LABELS[state]}
No slots this month — use “Generate slots” to fill it.
{#if daySlots.length}
    {#each daySlots as slot (slot.id)} {@const state = slotState(slot)}
  • {formatTime(slot.start, data.timezone)}{slot.end ? `–${formatTime(slot.end, data.timezone)}` : ''} {slot.itemName}{slot.capacity > 1 ? ` · ${slot.booked + slot.held}/${slot.capacity} places` : ''} {#if state === 'blocked'}{blockedReason(slot)}{/if} {#if slot.notes}{slot.notes}{/if} {SLOT_STATE_LABELS[state]}
  • {/each}
{:else}

No slots on this day{serviceFilter ? ' for this service' : ''}.

{/if}
{#if editorError}{/if} {#if taken}
{[draft.booked && `${draft.booked} booked`, draft.held && `${draft.held} in a customer’s basket`].filter(Boolean).join(', ')} — only the places and notes can be changed.
{/if}