{{#when filter schema.active '===' '0'}}

{{#if relation.suggestion}} {{relation.suggestion}} {{/if}} {{number total}} {{_ 'Inactive'}} {{schema.plural}} {{#if q.0}} {{_ 'matching'}} {{q.0}} {{/if}}

{{else}}

{{#if relation.suggestion}} {{relation.suggestion}} {{/if}} {{number total}} {{schema.plural}} {{#if q.0}} {{_ 'matching'}} {{q.0}} {{/if}}

{{/when}} {{#if rows.length}}

{{_ 'Filters'}}

{{#if schema.filterable.length}} {{> search_form}} {{else}} {{#if filterable_relations.length}} {{> search_form}} {{/if}} {{/if}}
{{#when filter.active '===' '0'}} {{/when}}
{{> search_actions}}
{{> search_head}} {{#each rows}} {{#each ../schema.relations}} {{#when many '==' 1}} {{/when}} {{/each}} {{#format 'list' ../schema.name this}} {{#each formats}} {{#in 'number,price,formula' config.list.format}} {{else}} {{/in}} {{/each}} {{/format}} {{/each}}
{{> search_row_actions}} {{scope this ../schema.primary}} {{suggest this ../this}} {{#in ../../../schema.filterable name}} {{{value}}} {{else}} {{{value}}} {{/in}} {{#in ../../../schema.filterable name}} {{{value}}} {{else}} {{{value}}} {{/in}}
{{else}} {{> search_actions}}
{{_ 'No Results Found.'}}
{{/if}}