Labor
+ Add
{#if currentLabor}
{formatCurrency(currentLabor.amount)}
Current
onEdit(currentLabor)} class="rounded p-1 text-blue-600 hover:bg-blue-100 dark:text-blue-400 dark:hover:bg-blue-900/40" aria-label="Edit labor" >
onDelete(currentLabor.id)} class="rounded p-1 text-blue-600 hover:bg-red-50 hover:text-red-500 dark:text-blue-400 dark:hover:bg-red-900/20" aria-label="Delete labor" >
As of {formatDate(currentLabor.startDate) || '—'}
{:else}
No current labor rate set.
{/if} {#if historicalLabors.length > 0}
History ({historicalLabors.length})
{#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}