{#if pageState === 'loading'}
{:else if pageState === 'authorized'}

Admin Dashboard

Manage portfolio images, working hours & user bookings

{#if sectionState.customers === 'expanded'}
{/if}
{#if sectionState.services === 'expanded'}
{ if (!browser) return; try { const r = await apiFetch('/api/admin/services', { headers: { 'Content-Type': 'application/json' } }); if (r.ok) { services = await r.json(); } } catch (err) { console.error('Error refreshing services:', err); } }} />
{/if}
{#if sectionState.scheduling === 'expanded'}
{/if}
{#if sectionState.promotions === 'expanded'}
{/if}
{#if sectionState.settings === 'expanded'}
{/if}
{/if}