Słoneczko — grafik rezerwacji
{MONTH_NAMES[schedule.month]} {schedule.year}
{#if schedule.monthStats && schedule.yearStats}
{MONTH_NAMES[schedule.month]}: {Math.round(schedule.monthStats.nights_total)} dób · {formatMoney(schedule.monthStats.revenue_total)} zł (potwierdzone: {formatMoney(schedule.monthStats.revenue_confirmed)} zł) Rok {schedule.year}: {Math.round(schedule.yearStats.nights_total)} dób · {formatMoney(schedule.yearStats.revenue_total)} zł (potwierdzone: {formatMoney(schedule.yearStats.revenue_confirmed)} zł)
{/if} {#if moveError}

{moveError}

{/if} {#if schedule.error}

{schedule.error}

{:else if !schedule.loading && schedule.cabins.length === 0}

Nie ma jeszcze żadnych domków. Dodaj je, aby zacząć planować rezerwacje.

{:else} newReservation(cabinId, date)} onReservationClick={editReservation} onReservationMove={moveReservation} /> {/if}
{#if dialogParams} (dialogParams = null)} onsaved={() => { dialogParams = null; void schedule.reload(); }} oninvoice={(reservation) => { dialogParams = null; invoiceParams = { reservation }; void schedule.reload(); }} /> {/if} {#if invoiceParams} (invoiceParams = null)} onsaved={(id) => { invoiceParams = null; void openPreview(id); }} /> {/if} {#if preview} (preview = null)} /> {/if} {#if cabinsOpen} (cabinsOpen = false)} onchanged={() => void schedule.reload()} /> {/if}