{#if data.records.length > 0}
Name
Primary contact
Email
Primary address
Actions
{#each data.records as record (record.id)}
{formatValue(record.name)}
{formatValue(record.primaryContactName)}
{formatValue(record.primaryContactEmail)}
{formatValue(record.primaryAddressLine1)}
{#snippet child({ props })}
{/snippet}
goto(resolve('/dashboard/clients/[id]', { id: record.id }))} >View
openEdit(record)}>Edit
openArchive(record)} >Archive
{/each}
{:else}
No clients have been created yet.
{/if}