{#if pageState === 'loading'}
{:else if pageState === 'authorized'}
Admin Dashboard
Manage portfolio images, working hours & user bookings
(sectionState.customers = sectionState.customers === 'expanded' ? 'collapsed' : 'expanded')} aria-expanded={sectionState.customers === 'expanded'} >
Customers & Bookings
{#if sectionState.customers === 'expanded'}
{/if}
(sectionState.services = sectionState.services === 'expanded' ? 'collapsed' : 'expanded')} aria-expanded={sectionState.services === 'expanded'} >
Services & Products
{#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}
(sectionState.scheduling = sectionState.scheduling === 'expanded' ? 'collapsed' : 'expanded')} aria-expanded={sectionState.scheduling === 'expanded'} >
Scheduling & Hours
{#if sectionState.scheduling === 'expanded'}
{/if}
(sectionState.promotions = sectionState.promotions === 'expanded' ? 'collapsed' : 'expanded')} aria-expanded={sectionState.promotions === 'expanded'} >
Promotions & Finance
{#if sectionState.promotions === 'expanded'}
{/if}
(sectionState.settings = sectionState.settings === 'expanded' ? 'collapsed' : 'expanded')} aria-expanded={sectionState.settings === 'expanded'} >
Business Settings
{#if sectionState.settings === 'expanded'}
{/if}
{/if}