{$t('dashboard.title')}

{$t('dashboard.low_stock_list')}

{#if lowStock.length === 0}

{$t('common.none')}

{:else} {#each lowStock as p} {/each}
{$t('parts.name')} {$t('parts.quantity_on_hand')} {$t('parts.reorder_level')}
{localized(p, 'name', lang)} {p.quantity_on_hand} {p.reorder_level}
{/if}

{$t('dashboard.recent_movements')}

{#if movements.length === 0}

{$t('movements.no_movements')}

{:else} {#each movements as m} {/each}
{$t('movements.created_at')} {$t('movements.type')} {$t('parts.name')} {$t('movements.quantity')}
{m.created_at} {$t('movements.type_' + m.movement_type)} {localized(m, 'name', lang)} {m.quantity}
{/if}