Labor

{#if currentLabor}
{formatCurrency(currentLabor.amount)} Current

As of {formatDate(currentLabor.startDate) || '—'}

{:else}

No current labor rate set.

{/if} {#if historicalLabors.length > 0} {#if showHistory}
{#each historicalLabors as labor (labor.id)}
{formatCurrency(labor.amount)} ({formatDate(labor.startDate) || '—'} - {formatDate(labor.endDate) || 'Present'})
onEdit(labor)} onDelete={() => onDelete(labor.id)} />
{/each}
{/if} {/if}