diff --git a/app-admin/src/routes/items/+page.svelte b/app-admin/src/routes/items/+page.svelte index b2ea11a..6d7ea39 100644 --- a/app-admin/src/routes/items/+page.svelte +++ b/app-admin/src/routes/items/+page.svelte @@ -137,7 +137,74 @@ {#if form?.message}
{@render details(item)}
+ {/if} + {@render notes(problem, waiting)} +| Name | Type | Price | Stock | Duration | Status | ||||
|---|---|---|---|---|---|---|---|---|---|
|
- {#if item.imageUrl}
-
|
- {item.type === 'item_with_time' ? 'Service' : item.type === 'bundle' ? 'Bundle' : 'Product'} | -{item.durations.length > 1 ? `from ${money.format(item.price)}` : money.format(item.price)} | +{@render typeBadge(item)} | +{@render price(item)} | {item.type === 'item' ? (item.stock ?? '∞') : '—'} | +{@render details(item)} | - {#if item.type === 'item_with_time'} - {durationList(item)}{item.bufferMinutes ? ` + ${item.bufferMinutes} min get-ready` : ''}{(item.capacity ?? 1) > 1 ? ` · ${item.capacity} places` : ''} - {:else if item.type === 'bundle'} - {bundleList(item)} · {item.validMonths ? `valid ${item.validMonths} months` : 'no expiry'} - {:else}—{/if} - | -- {#if problem} - Not on sale - {problem} - {:else} - {item.active ? 'Active' : 'Inactive'} - {/if} - {#if waiting} - {waiting === 1 ? '1 code has' : `${waiting} codes have`} sessions of this left to book — they can’t while it’s inactive. - {/if} + {@render status(item, problem)} + {@render notes(problem, waiting)} |