{{#unless this.isHidden}} {{#if this.isEnabled}} {{#if this.showHeader}}
{{#if this.showTitle}} {{/if}} {{#if this.shouldDisplayTrend}}
{{#if this.model.average}} {{number this.model.currentAverage}}{{#if this.model.percent }}%{{/if}} {{else}} {{number this.model.currentTotal noTitle="true"}}{{#if this.model.percent }}%{{/if}} {{/if}} {{#if this.model.trendIcon}} {{d-icon this.model.trendIcon class="icon"}} {{/if}}
{{/if}}
{{/if}}
{{#if this.showError}} {{#if this.showTimeoutError}}
{{d-icon "exclamation-triangle"}} {{i18n "admin.dashboard.timeout_error"}}
{{/if}} {{#if this.showExceptionError}}
{{d-icon "exclamation-triangle"}} {{i18n "admin.dashboard.exception_error"}}
{{/if}} {{#if this.showNotFoundError}}
{{d-icon "exclamation-triangle"}} {{i18n "admin.dashboard.not_found_error"}}
{{/if}} {{else}} {{#if this.hasData}} {{#if this.currentMode}} {{component this.modeComponent model=this.model options=this.options }} {{#if this.model.relatedReport}} {{/if}} {{/if}} {{else}} {{#if this.rateLimitationString}}
{{d-icon "thermometer-three-quarters"}} {{this.rateLimitationString}}
{{else}}
{{d-icon "chart-pie"}} {{#if this.model.reportUrl}} {{#if this.model.title}} {{this.model.title}} — {{/if}} {{i18n "admin.dashboard.reports.no_data"}} {{else}} {{i18n "admin.dashboard.reports.no_data"}} {{/if}}
{{/if}} {{/if}} {{/if}}
{{#if this.showFilteringUI}}
{{#if this.showModes}}
{{#each this.displayedModes as |displayedMode|}} {{/each}}
{{/if}} {{#if this.isChartMode}} {{#if this.model.average}} {{i18n "admin.dashboard.reports.average_chart_label"}} {{/if}}
{{#each this.chartGroupings as |chartGrouping|}} {{/each}}
{{/if}} {{#if this.showDatesOptions}}
{{i18n "admin.dashboard.reports.dates"}}
{{/if}} {{#each this.model.available_filters as |filter|}}
{{i18n (concat "admin.dashboard.reports.filters." filter.id ".label" ) }}
{{component (concat "report-filters/" filter.type) model=this.model filter=filter applyFilter=(action "applyFilter") }}
{{/each}}
{{#if this.showRefresh}}
{{/if}}
{{/if}}
{{else}}
{{html-safe this.disabledLabel}}
{{/if}} {{/unless}}