@if (isLoading) {
} @if (!isLoading) {

{{ 'labels.heading.Current Account Details' | translate }}

@if (!currentAccountData.status.rejected && !currentAccountData.status.submittedAndPendingApproval) {
{{ 'labels.inputs.External Id' | translate }} @if (currentAccountData.externalId) { } @else { {{ 'labels.inputs.Not Provided' | translate }} }
{{ 'labels.inputs.Activated On' | translate }} {{ currentAccountData.timeline.activatedOnDate ? (currentAccountData.timeline.activatedOnDate | dateFormat) : 'Not Activated' }}
{{ 'labels.inputs.Field Officer' | translate }} {{ currentAccountData.fieldOfficerName ? currentAccountData.fieldOfficerName : 'Unassigned' }}
{{ 'labels.inputs.Currency' | translate }} {{ currentAccountData.currency.name }} [{{ currentAccountData.currency.code }}]
{{ 'labels.inputs.Nominal Interest Rate' | translate }} @if (currentAccountData.nominalAnnualInterestRate) { {{ currentAccountData.nominalAnnualInterestRate | formatNumber }} % } @else { 0 % }
} @else {
{{ 'labels.inputs.Field Officer' | translate }} {{ currentAccountData.fieldOfficerName ? currentAccountData.fieldOfficerName : 'Unassigned' }}
{{ 'labels.inputs.Balance' | translate }} {{ currentAccountData.summary.accountBalance | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
}
@if (!currentAccountData.status.rejected && !currentAccountData.status.submittedAndPendingApproval) {

{{ 'labels.heading.Performance History' | translate }}

@if (currentAccountData.summary.totalDeposits) {
{{ 'labels.inputs.Total Deposits' | translate }} {{ currentAccountData.summary.totalDeposits | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
} @if (currentAccountData.summary.totalInterestEarned >= 0) {
{{ 'labels.inputs.Total Interest Earned' | translate }} {{ currentAccountData.summary.totalInterestEarned | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
} @if (!currentAccountData.summary.totalDeposits && !(currentAccountData.summary.totalInterestEarned >= 0)) {
No activity yet.
}
}
@if (isActive) {

{{ 'labels.heading.Account Summary' | translate }}

@if (currentAccountData.summary.totalWithdrawals) {
{{ 'labels.inputs.Total Withdrawls' | translate }} {{ currentAccountData.summary.totalWithdrawals | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
} @if (currentAccountData.summary.totalWithdrawalFees) {
{{ 'labels.inputs.Withdrawals Fees' | translate }} {{ currentAccountData.summary.totalWithdrawalFees | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
} @if (currentAccountData.summary.totalAnnualFees) {
{{ 'labels.inputs.Annual Fees' | translate }} {{ currentAccountData.summary.totalAnnualFees | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
} @if (currentAccountData.summary.totalInterestEarned >= 0) {
{{ 'labels.inputs.Interest Earned' | translate }} {{ currentAccountData.summary.totalInterestEarned | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
} @if (currentAccountData.summary.totalInterestPosted) {
{{ 'labels.inputs.Interest Posted' | translate }} {{ currentAccountData.summary.totalInterestPosted | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
} @if (currentAccountData.summary.interestNotPosted >= 0) {
{{ 'labels.inputs.Interest Earned Not Posted' | translate }} {{ currentAccountData.summary.interestNotPosted | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
} @if (currentAccountData.summary.totalOverdraftInterestDerived) {
{{ 'labels.inputs.Interest On Overdraft' | translate }} {{ currentAccountData.summary.totalOverdraftInterestDerived | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
} @if (currentAccountData.summary.interestNotPosted < 0) {
{{ 'labels.inputs.Overdraft Interest Not Posted' | translate }} {{ currentAccountData.summary.interestNotPosted | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
} @if (currentAccountData.nominalAnnualInterestRate) {
{{ 'labels.inputs.Nominal Interest Rate' | translate }} {{ currentAccountData.nominalAnnualInterestRate | formatNumber }} %
}
{{ 'labels.inputs.Interest Compounding Period' | translate }} {{ currentAccountData.interestCompoundingPeriodType.value | translateKey: 'catalogs' }}
{{ 'labels.inputs.Interest Posting Period' | translate }} {{ currentAccountData.interestPostingPeriodType.value | translateKey: 'catalogs' }}
{{ 'labels.inputs.Interest Calculated Using' | translate }} {{ currentAccountData.interestCalculationType.value | translateKey: 'catalogs' }}
{{ 'labels.inputs.Days in Year' | translate }} {{ currentAccountData.interestCalculationDaysInYearType.value | translateKey: 'catalogs' }}
@if (currentAccountData.withdrawalFee) {
{{ 'labels.inputs.Withdrawal Fee' | translate }} {{ currentAccountData.withdrawalFee.amount | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
} @if (currentAccountData.lastActiveTransactionDate) {
{{ 'labels.inputs.Last Active Transaction Date' | translate }} {{ currentAccountData.lastActiveTransactionDate | dateFormat }}
} @if (!(currentAccountData.subStatus.id === 0)) {
{{ 'labels.inputs.Substatus' | translate }} {{ currentAccountData.subStatus.value }}
} @if (currentAccountData.daysToInactive) {
{{ 'labels.inputs.Days to Inactive' | translate }} {{ currentAccountData.daysToInactive }}
} @if (currentAccountData.daysToDormancy) {
{{ 'labels.inputs.Days to Dormancy' | translate }} {{ currentAccountData.daysToDormancy }}
} @if (currentAccountData.daysToEscheat) {
{{ 'labels.inputs.Days to Escheat' | translate }} {{ currentAccountData.daysToEscheat }}
} @if (currentAccountData.annualFee) {
{{ 'labels.inputs.Annual Fee' | translate }} {{ currentAccountData.annualFee.amount | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
} @if (currentAccountData.allowOverdraft) {
{{ 'labels.inputs.Overdraft Limit' | translate }} {{ currentAccountData.overdraftLimit | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
} @if (currentAccountData.allowOverdraft) {
{{ 'labels.inputs.Minimum Overdraft Required for Interest Calculation' | translate }} {{ currentAccountData.minOverdraftForInterestCalculation | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
} @if (currentAccountData.minBalanceForInterestCalculation) {
{{ 'labels.inputs.Min Balance Required for Interest Calculation' | translate }} {{ currentAccountData.minBalanceForInterestCalculation | formatNumber }}
} @if (currentAccountData.minRequiredBalance) {
{{ 'labels.inputs.Minimum Required Balance' | translate }} {{ currentAccountData.minRequiredBalance | formatNumber }}
} @if (currentAccountData.enforceMinRequiredBalance) {
{{ 'labels.inputs.Enforce Minimum Required Balance' | translate }} {{ currentAccountData.enforceMinRequiredBalance | yesNo }}
} @if (currentAccountData.summary.lastInterestCalculationDate) {
{{ 'labels.inputs.Interest Recalculation Date' | translate }} {{ currentAccountData.summary.lastInterestCalculationDate | dateFormat }}
} @if (currentAccountData.onHoldFunds) { } @if (currentAccountData.withHoldTax) {
{{ 'labels.inputs.Withhold Tax Group' | translate }} {{ currentAccountData.taxGroup.name }}
}
} @else {

{{ 'labels.heading.Account Summary' | translate }}

{{ 'labels.inputs.External Id' | translate }} @if (currentAccountData.externalId) { } @else { {{ 'labels.inputs.Not Provided' | translate }} }
{{ 'labels.inputs.Activated On' | translate }} {{ currentAccountData.timeline.activatedOnDate ? (currentAccountData.timeline.activatedOnDate | dateFormat) : 'Not Activated' }}
{{ 'labels.inputs.Currency' | translate }} {{ currentAccountData.currency.name }} [{{ currentAccountData.currency.code }}]
}
}