page Deals { apis { listDeals GET /api/deals { response { return data.deals } } } load server deals { return await api.listDeals() } seo { title = "Deals" } view {

Sales pipeline

Focus on the opportunities most likely to move.

New deal
Open opportunities{#if deals.length}
    {#each deals as deal}
  • {deal.title}{deal.contact_name || "Unassigned contact"}{deal.stage}
  • {/each}
{/if}{#if !deals.length}

No open deals

Create a contact and turn the relationship into an opportunity.

{/if}
} }