<Layout::Resource::Tabular
    @resource="fuel-report"
    @title={{t "resource.fuel-reports"}}
    @searchQuery={{this.query}}
    @onSearch={{perform this.fuelReportActions.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="gas-pump"
        title="No fuel reports yet"
        description="Create fuel reports to track vehicle fuel usage, cost, and supporting transaction records."
        filteredTitle="No fuel reports match your filters"
        filteredDescription="Adjust the search or filters to find another fuel report."
        primaryText="New fuel report"
        primaryIcon="plus"
        primaryAction=this.fuelReportActions.transition.create
        secondaryText="Import"
        secondaryIcon="upload"
        secondaryAction=this.fuelReportActions.import
        docsSlug="fleet-ops/resources/fuel-reports/overview"
        docsTitle="Fuel reports guide"
        docsText="Fuel reports guide"
        docsSource="fleet-ops-empty-fuel-reports"
    }}
/>
{{outlet}}
