<Layout::Resource::Tabular
    @resource="contact"
    @title={{t "resource.customers"}}
    @searchQuery={{this.query}}
    @onSearch={{perform this.customerActions.controllerSearchTask this}}
    @data={{@model}}
    @columns={{this.columns}}
    @page={{this.page}}
    @onPageChange={{fn (mut this.page)}}
    @setupTable={{fn (mut this.table)}}
    @actionButtons={{this.actionButtons}}
    @bulkActions={{this.bulkActions}}
    @controller={{this}}
    @emptyStateComponent={{component
        "table/empty-state"
        icon="user-group"
        title="Add your first customer"
        description="Customers give orders an owner, contact details, and account context for service history."
        filteredTitle="No customers match your filters"
        filteredDescription="Adjust the search or filters to find another customer."
        primaryText="New customer"
        primaryIcon="plus"
        primaryAction=this.customerActions.transition.create
        secondaryText="Import"
        secondaryIcon="upload"
        secondaryAction=this.customerActions.import
    }}
    @withoutHeader={{true}}
/>
{{outlet}}
