@if (pipeline) {
{{ 'PIPELINES_PAGE.VIEW_DEALS' | translate }}
} @if (pipeline) {
{{ pipeline.name }}
{{ (pipeline.isActive ? 'PIPELINES_PAGE.ACTIVE' : 'PIPELINES_PAGE.INACTIVE') | translate }}
@if (pipeline.description?.trim()) {

{{ pipeline.description }}

}
{{ 'PIPELINES_PAGE.DEALS' | translate }}
{{ deals ? deals.length : '—' }}
{{ 'PIPELINES_PAGE.HEADER_STAGES' | translate }}
{{ stageRows.length }}
{{ 'SM_TABLE.CLIENTS' | translate }}
{{ deals ? clientCount : '—' }}
{{ 'PIPELINES_PAGE.HIGH_PROBABILITY' | translate }}
{{ deals ? highProbabilityCount : '—' }}
@if (!deals) { }
{{ (deals ? 'PIPELINES_PAGE.DEALS_BY_STAGE' : 'PIPELINES_PAGE.HEADER_STAGES') | translate }}
@if (stageRows.length) {
    @for (stage of stageRows; track stage.id) {
  1. {{ stage.position }} {{ stage.name }} @if (stage.description) { {{ stage.description }} } @if (stage.count !== null) { } {{ stage.count ?? '—' }}
  2. }
} @else {
{{ 'PIPELINES_PAGE.NO_STAGES' | translate }}
}
@if (deals) {
{{ 'PIPELINES_PAGE.RECENT_DEALS' | translate }} @if (deals.length > recentDeals.length) { {{ recentDeals.length }} / {{ deals.length }} }
@if (deals.length) { {{ 'PIPELINES_PAGE.VIEW_DEALS' | translate }} }
@if (recentDeals.length) {
{{ 'SM_TABLE.TITLE' | translate }} {{ 'PIPELINES_PAGE.STAGE' | translate }} {{ 'PIPELINE_DEAL_CREATE_PAGE.PROBABILITY' | translate }} {{ 'SM_TABLE.CREATED' | translate }}
    @for (deal of recentDeals; track deal.id) {
  • @if (canEditDeals) { {{ deal.title }} } @else { {{ deal.title }} } @if (deal.client) { {{ deal.client }} } {{ deal.stage ?? '—' }} {{ deal.levelKey | translate }} @if (deal.createdAt) { {{ deal.createdAt | dateFormat }} } @else { — }
  • }
} @else {
{{ 'PIPELINES_PAGE.NO_DEALS' | translate }}
}
}
@if (deals) {
{{ 'PIPELINE_DEAL_CREATE_PAGE.PROBABILITY' | translate }}
@if (deals.length) {
    @for (row of probabilityRows; track row.level) {
  • {{ row.levelKey | translate }} {{ row.count }} {{ row.share }}%
  • }
} @else {
{{ 'PIPELINES_PAGE.NO_DEALS' | translate }}
}
}
{{ 'PIPELINES_PAGE.DETAILS' | translate }}
{{ 'SM_TABLE.CREATED_BY' | translate }}
@if (pipeline.createdByUser; as creator) { @if (creator.imageUrl) { } @else { } {{ creator.name }} } @else { — }
{{ 'SM_TABLE.CREATED_AT' | translate }}
{{ pipeline.createdAt | dateTimeFormat }}
{{ 'SM_TABLE.LAST_UPDATED' | translate }}
{{ pipeline.updatedAt | dateTimeFormat }}
}