Skip to content

Firefly III: a personal finances manager

New views

Sander Dorigo461dd9035695
diff --git a/resources/views/accounts/reconcile/index.twig b/resources/views/accounts/reconcile/index.twig
index 2dab645ef2..573b2e7dd1 100644
--- a/resources/views/accounts/reconcile/index.twig
+++ b/resources/views/accounts/reconcile/index.twig
@@ -110,7 +110,7 @@
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'transactions'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.transactions') }}</h3>
</div>
<div class="card-body">
<div id="transactions_holder">
diff --git a/resources/views/accounts/reconcile/overview.twig b/resources/views/accounts/reconcile/overview.twig
index bc2f0b4b75..c44de15ab8 100644
--- a/resources/views/accounts/reconcile/overview.twig
+++ b/resources/views/accounts/reconcile/overview.twig
@@ -53,17 +53,17 @@
<p>
{% if diffCompare > 0 %}
{{ 'reconcile_has_more'|_ }}
- {% endif %}
+ @endif
{% if diffCompare < 0 %}
{{ 'reconcile_has_less'|_ }}
- {% endif %}
+ @endif
</p>
{% if diffCompare == 0 %}
<p>
{{ 'reconcile_is_equal'|_ }}
</p>
<input type="hidden" name="reconcile" value="nothing">
- {% endif %}
+ @endif
{% if diffCompare != 0 %}
<div class="form-group">
<div class="col-lg-12">
@@ -73,10 +73,10 @@
<input type="radio" name="reconcile" value="create">
{% if diffCompare > 0 %}
{{ trans('firefly.create_neg_reconcile_transaction', {amount: formatAmountByAccount(account, (difference*-1))})|raw }}
- {% endif %}
+ @endif
{% if diffCompare < 0 %}
{{ trans('firefly.create_pos_reconcile_transaction', {amount: formatAmountByAccount(account, (difference*-1))})|raw }}
- {% endif %}
+ @endif
</label>
</div>
</div>
@@ -95,7 +95,7 @@
<p>
{{ 'reconcile_go_back'|_ }}
</p>
- {% endif %}
+ @endif
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">{{ 'close'|_ }}</button>
diff --git a/resources/views/accounts/reconcile/show.twig b/resources/views/accounts/reconcile/show.twig
index 654672db35..df39741014 100644
--- a/resources/views/accounts/reconcile/show.twig
+++ b/resources/views/accounts/reconcile/show.twig
@@ -84,19 +84,19 @@
<h4 class="inline"><a class="badge text-bg-success" href="{{ route('tags.show',tag) }}">
{% if tag.tag_mode == 'nothing' %}
<span class="bi bi-tag"></span>
- {% endif %}
+ @endif
{% if tag.tag_mode == 'balancingAct' %}
<span class="bi bi-arrow-repeat"></span>
- {% endif %}
+ @endif
{% if tag.tag_mode == 'advancePayment' %}
<span class="bi bi-sort-numeric-down"></span>
- {% endif %}
+ @endif
{{ tag.tag }}</a>
</h4>
{% endfor %}
</td>
</tr>
- {% endif %}
+ @endif
</tbody>
</table>
</div>
diff --git a/resources/views/accounts/reconcile/transactions.twig b/resources/views/accounts/reconcile/transactions.twig
index 994500cc77..d44564745b 100644
--- a/resources/views/accounts/reconcile/transactions.twig
+++ b/resources/views/accounts/reconcile/transactions.twig
@@ -36,7 +36,7 @@
</td>
</tr>
{% set startSet = true %}
- {% endif %}
+ @endif
{# end marker #}
{% if journal.date <= end and endSet == false %}
@@ -57,7 +57,7 @@
</td>
</tr>
{% set endSet = true %}
- {% endif %}
+ @endif
<tr data-date="{{ journal.date.format('Y-m-d') }}" data-id="{{ journal.transaction_journal_id }}">
<td class="hidden-xs">
<div class="btn-group btn-group-sm">
@@ -73,22 +73,22 @@
<td class="hidden-xs">
{% if journal.transaction_type_type == 'Withdrawal' %}
<span class="bi bi-arrow-left" title="{{ trans('firefly.Withdrawal') }}"></span>
- {% endif %}
+ @endif
{% if journal.transaction_type_type == 'Deposit' %}
<span class="bi bi-arrow-right" title="{{ trans('firefly.Deposit') }}"></span>
- {% endif %}
+ @endif
{% if journal.transaction_type_type == 'Transfer' %}
<span class="bi bi-arrow-left-right" title="{{ trans('firefly.Transfer') }}"></span>
- {% endif %}
+ @endif
{% if journal.transaction_type_type == 'Reconciliation' %}
<span class="bi bi-calculator" title="{{ trans('firefly.reconciliation_transaction') }}"></span>
- {% endif %}
+ @endif
{% if journal.transaction_type_type == 'Opening balance' %}
<span class="bi bi-star" title="{{ trans('firefly.Opening balance') }}"></span>
- {% endif %}
+ @endif
</td>
<!-- description -->
@@ -96,16 +96,16 @@
<a href="{{ route('transactions.show', [journal.transaction_group_id]) }}" title="{{ journal.description }}">
{% if journal.group_title %}
<span class="text-muted"><span class="bi bi-share-fill" aria-hidden="true"></span></span> {{ journal.group_title }}:
- {% endif %}
+ @endif
{{ journal.description }}</a>
</td>
<td class="text-right">
<span class="mr-1">
- {{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }}
+ {{ format_amount_by_symbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }}
{% if null != journal.foreign_amount %}
- ({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
+ @endif
</span>
</td>
@@ -113,26 +113,26 @@
{% if journal.date >= start and journal.date <= end %}
{% if journal.reconciled %}
<span class="bi bi-check" aria-hidden="true"></span>
- <input type="hidden" name="cleared[]" data-younger="{% if journal.date < start %}true{% else %}false{% endif %}"
- data-inrange="{% if journal.date >= start and journal.date <= end %}true{% else %}false"{% endif %}"
+ <input type="hidden" name="cleared[]" data-younger="{% if journal.date < start %}true@elsefalse@endif"
+ data-inrange="{% if journal.date >= start and journal.date <= end %}true@elsefalse"@endif"
class="cleared" data-id="{{ journal.transaction_journal_id }}" value="{{ journal.amount }}">
- {% else %}
+ @else
<input type="checkbox" name="reconciled[]"
- data-younger="{% if journal.date < start %}true{% else %}false{% endif %}"
- data-inrange="{% if journal.date >= start and journal.date <= end %}true{% else %}false"{% endif %}"
- {% if currency.id == journal.currency_id %}value="{{ journal.amount }}"{% endif %}
- {% if currency.id == journal.foreign_currency_id %}value="{{ journal.foreign_amount }}"{% endif %}
+ data-younger="{% if journal.date < start %}true@elsefalse@endif"
+ data-inrange="{% if journal.date >= start and journal.date <= end %}true@elsefalse"@endif"
+ {% if currency.id == journal.currency_id %}value="{{ journal.amount }}"@endif
+ {% if currency.id == journal.foreign_currency_id %}value="{{ journal.foreign_amount }}"@endif
data-id="{{ journal.transaction_journal_id }}" disabled class="reconcile_checkbox">
- {% endif %}
- {% else %}
+ @endif
+ @else
<!-- if not in range, just show reconciliation status -->
{% if journal.reconciled %}
<span class="bi bi-check" aria-hidden="true"></span>
- {% else %}
+ @else
<!--TODO include icon -->
- {% endif %}
+ @endif
- {% endif %}
+ @endif
</td>
@@ -175,6 +175,6 @@
</td>
</tr>
{% set startSet = true %}
- {% endif %}
+ @endif
</tbody>
</table>
diff --git a/resources/views/accounts/show.twig b/resources/views/accounts/show.blade.php
similarity index 58%
rename from resources/views/accounts/show.twig
rename to resources/views/accounts/show.blade.php
index dc303b2c5c..d4c5bde1a8 100644
--- a/resources/views/accounts/show.twig
+++ b/resources/views/accounts/show.blade.php
@@ -2,35 +2,39 @@
@section('content')
<div class="row">
- <div class="{% if attachments.count() == 0 %}col-lg-12 col-md-12 col-sm-12 col-xs-12{% else %}col-lg-8 col-md-6 col-sm-12 col-xs-12{% endif %}">
+ <div class="@if(0 === $attachments->count())col-lg-12 col-md-12 col-sm-12 col-xs-12@else col-lg-8 col-md-6 col-sm-12 col-xs-12@endif">
<div class="card">
<div class="card-header">
<h3 class="card-title">
- {% if balances.balance %}
+ @if($balances['balance'])
<span title="balance">
- {{ trans('firefly.chart_account_in_period', {
- balance: formatAmountBySymbol(balances.balance, currency.symbol, currency.decimal_places, true),
- name: account.name|escape, start: start.isoFormat(monthAndDayFormat), end: end.isoFormat(monthAndDayFormat) })|raw }}
+ {{ trans('firefly.chart_account_in_period', [
+ 'balance' => format_amount_by_symbol($balances['balance'], $currency->symbol, $currency->decimal_places, true),
+ 'name' => e($account->name),
+ 'start' => $start->isoFormat($monthAndDayFormat),
+ 'end' => $end->isoFormat($monthAndDayFormat)]) }}
</span>
- {% elseif balances.pc_balance %}
+ @elseif($balances['pc_balance'])
<span title="pc_balance">
- {{ trans('firefly.chart_account_in_period', {
- balance: formatAmountBySymbol(balances.pc_balance, primaryCurrency.symbol, primaryCurrency.decimal_places, true),
- name: account.name|escape, start: start.isoFormat(monthAndDayFormat), end: end.isoFormat(monthAndDayFormat) })|raw }}
+ {{ trans('firefly.chart_account_in_period', [
+ 'balance' => format_amount_by_symbol($balances['pc_balance'], $primaryCurrency->symbol, $primaryCurrency->decimal_places, true),
+ 'name' => e($account->name),
+ 'start' => $start->isoFormat($monthAndDayFormat),
+ 'end' => $end->isoFormat($monthAndDayFormat)]) }}
</span>
- {% endif %}
+ @endif
</h3>
<div class="box-tools pull-right">
<div class="btn-group">
<button class="btn btn-box-tool dropdown-toggle" data-toggle="dropdown"><span
class="bi bi-list"></span></button>
<ul class="dropdown-menu" role="menu">
- <li><a href="{{ route('accounts.edit', account.id) }}"><span
+ <li><a href="{{ route('accounts.edit', [$account->id]) }}"><span
class="bi bi-pencil"></span> {{ __('firefly.edit') }}</a></li>
- <li><a href="{{ route('accounts.delete', account.id) }}"><span
+ <li><a href="{{ route('accounts.delete', [$account->id]) }}"><span
class="bi bi-trash"></span> {{ __('firefly.delete') }}</a></li>
<li>
- <a href="{{ route('accounts.reconcile',account.id) }}"><span class="bi bi-check"></span> {{ 'reconcile_this_account'|_ }}</a>
+ <a href="{{ route('accounts.reconcile', [$account->id]) }}"><span class="bi bi-check"></span> {{ __('firefly.reconcile_this_account') }}</a>
</li>
</ul>
</div>
@@ -43,12 +47,12 @@
</div>
</div>
</div>
- {% if attachments.count() > 0 %}
+ @if($attachments->count() > 0)
<div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
<div class="card">
<div class="card-header">
<h3 class="card-title">
- {{ 'attachments'|_ }}
+ {{ __('firefly.attachments') }}
</h3>
</div>
<div class="box-body no-padding">
@@ -56,9 +60,9 @@
</div>
</div>
</div>
- {% endif %}
+ @endif
</div>
- {% if not showAll and isLiability %}
+ @if(!$showAll && $isLiability)
<div class="row">
<div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
<div class="card">
@@ -71,13 +75,13 @@
</div>
</div>
</div>
- {% endif %}
- {% if not showAll and not isLiability %}
+ @endif
+ @if(!$showAll && !$isLiability)
<div class="row">
<div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'expenses_by_category'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.expenses_by_category' }}</h3>
</div>
<div class="card-body">
<div class="center-chart">
@@ -89,7 +93,7 @@
<div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'expenses_by_budget'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.expenses_by_budget') }}</h3>
</div>
<div class="card-body">
<div class="center-chart">
@@ -101,7 +105,7 @@
<div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'income_by_category'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.income_by_category') }}</h3>
</div>
<div class="card-body">
<div class="center-chart">
@@ -111,115 +115,117 @@
</div>
</div>
</div>
- {% endif %}
+ @endif
<div class="row">
- {% if(location) %}
+ @if($location)
<div class="col-lg-6">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'location'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.location') }}</h3>
</div>
<div class="card-body">
<div id="location_map" class="map-size"></div>
</div>
</div>
</div>
- {% endif %}
- {% if account.notes.count() == 1 %}
+ @endif
+ @if(1 === $account->notes->count())
<div class="col-lg-6">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'notes'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.notes') }}</h3>
</div>
<div class="card-body">
- {{ account.notes.first().text|markdown }}
+ {{ parse_markdown($account->notes->first()->text) }}
</div>
</div>
</div>
- {% endif %}
+ @endif
</div>
<div class="row">
- <div class="{% if periods|length > 0 %}col-lg-10 col-md-8 col-sm-12{% else %}col-lg-12 col-md-12 col-sm-12{% endif %}">
+ <div class="@if(count($periods) > 0)col-lg-10 col-md-8 col-sm-12 @else col-lg-12 col-md-12 col-sm-12@endif">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'transactions'|_ }}
- {% if balances.balance %}
- ({{ formatAmountBySymbol(balances.balance, currency.symbol, currency.decimal_places, true)|raw }})
- {% elseif balances.pc_balance %}
- ({{ formatAmountBySymbol(balances.pc_balance, primaryCurrency.symbol, primaryCurrency.decimal_places, true)|raw }})
- {% endif %}
+ <h3 class="card-title">{{ __('firefly.transactions') }}
+ @if($balances['balance'])
+ ({{ format_amount_by_symbol($balances['balance'], $currency->symbol, $currency->decimal_places, true) }})
+ @elseif($balances['pc_balance'])
+ ({{ format_amount_by_symbol($balances['pc_balance'], $primaryCurrency->symbol, $primaryCurrency->decimal_places, true) }} )
+ @endif
</h3>
</div>
<div class="card-body">
- {% if account.accountType.type == 'Asset account' %}
- {% set showReconcile = true %}
- {% else %}
- {% set showReconcile = false %}
- {% endif %}
-
+ @php
+ $showReconcile = false;
+ @endphp
+ @if('Asset account' === $account->accountType->type)
+ @php
+ $showReconcile = true;
+ @endphp
+ @endif
{% include 'list.groups' %}
<p>
<span class="bi bi-calendar"></span>
- {% if periods|length > 0 %}
- <a href="{{ route('accounts.show.all', [account.id]) }}">
- {{ 'show_all_no_filter'|_ }}
+ @if(count($periods) > 0)
+ <a href="{{ route('accounts.show.all', [$account->id]) }}">
+ {{ __('firefly.show_all_no_filter') }}
</a>
- {% else %}
- <a href="{{ route('accounts.show', [account.id]) }}">
- {{ 'show_the_current_period_and_overview'|_ }}
+ @else
+ <a href="{{ route('accounts.show', [$account->id]) }}">
+ {{ __('firefly.show_the_current_period_and_overview') }}
</a>
- {% endif %}
+ @endif
</p>
</div>
</div>
</div>
- {% if periods|length > 0 %}
+ @if(count($periods) > 0)
<div class="col-lg-2 col-md-4 col-sm-12 col-xs-12">
{% include 'list.periods' %}
</div>
- {% endif %}
+ @endif
</div>
@endsection
@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
// location stuff
- {% if location %}
- var latitude = {{ location.latitude|default("52.3167") }};
- var longitude = {{ location.longitude|default("5.5500") }};
- var zoomLevel = {{ location.zoom_level|default("6") }};
- {% endif %}
+ @if($location)
+ var latitude = {{ $location['latitude'] ?? '52.3167' }};
+ var longitude = {{ $location['longitude'] ?? '5.5500' }};
+ var zoomLevel = {{ $location['zoom_level'] ?? '6' }};
+ @endif
var showAll = true;
- currencySymbol = "{{ currency.symbol }}";
- var accountID = {{ account.id }};
- var chartUrl = '{{ chartUrl }}';
- {% if not showAll %}
- showAll = false;
- // url's for charts:
+ currencySymbol = "{{ $currency->symbol }}";
+ var accountID = {{ $account->id }};
+ var chartUrl = '{{ $chartUrl }}';
+ if(!$showAll)
+ showAll = false;
+ // url's for charts:
- var incomeCategoryUrl = '{{ route('chart.account.income-category', [account.id, start.format('Ymd'), end.format('Ymd')]) }}';
- var expenseCategoryUrl = '{{ route('chart.account.expense-category', [account.id, start.format('Ymd'), end.format('Ymd')]) }}';
- var expenseBudgetUrl = '{{ route('chart.account.expense-budget', [account.id, start.format('Ymd'), end.format('Ymd')]) }}';
- var drawVerticalLine = '';
- var lineColor = 'red';
- var lineTextColor = '#000';
- if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
- lineColor = '#a00';
- lineTextColor = '#bec5cb';
- }
- {# render vertical line with text "today" #}
- {% if start.lte(today) and end.gte(today) %}
- drawVerticalLine = '{{ today.isoFormat(monthAndDayFormat) }}';
- {% endif %}
- {% endif %}
+ var incomeCategoryUrl = '{{ route('chart.account.income-category', [$account->id, $start->format('Ymd'), $end->format('Ymd')]) }}';
+ var expenseCategoryUrl = '{{ route('chart.account.expense-category', [$account->id, $start->format('Ymd'), $end->format('Ymd')]) }}';
+ var expenseBudgetUrl = '{{ route('chart.account.expense-budget', [$account->id, $start->format('Ymd'), $end->format('Ymd')]) }}';
+ var drawVerticalLine = '';
+ var lineColor = 'red';
+ var lineTextColor = '#000';
+ if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
+ lineColor = '#a00';
+ lineTextColor = '#bec5cb';
+ }
+ {{-- render vertical line with text "today" --}}
+ @if($start->lte($today) && $end->gte($today))
+ drawVerticalLine = '{{ $today->isoFormat($monthAndDayFormat) }}';
+ @endif
+ @endif
</script>
- {% if location %}
+ @if($location)
<script src="v1/lib/leaflet/leaflet.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
- {% endif %}
+ @endif
<script type="text/javascript" src="v1/js/lib/Chart.bundle.min.js?v={{ $FF_BUILD_TIME }}"
nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/lib/chartjs-plugin-annotation.min.js?v={{ $FF_BUILD_TIME }}"
@@ -236,7 +242,7 @@
@endsection
@section('styles')
- {% if location %}
+ @if($location)
<link rel="stylesheet" href="v1/lib/leaflet/leaflet.css?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}">
- {% endif %}
+ @endif
@endsection
diff --git a/resources/views/attachments/delete.twig b/resources/views/attachments/delete.twig
index 7e411163f2..acd4e20689 100644
--- a/resources/views/attachments/delete.twig
+++ b/resources/views/attachments/delete.twig
@@ -25,7 +25,7 @@
</div>
<div class="card-footer">
<input type="submit" name="submit" value="{{ trans('form.deletePermanently') }}" class="btn pull-right btn-danger"/>
- <a href="{{ URL.previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
+ <a href="{{ URL::previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
</div>
</div>
</div>
diff --git a/resources/views/attachments/index.twig b/resources/views/attachments/index.twig
index 6c8e182fe1..e6a1c81003 100644
--- a/resources/views/attachments/index.twig
+++ b/resources/views/attachments/index.twig
@@ -47,16 +47,16 @@
<a href="{{ route('transactions.show', [att.attachable_id]) }}">
{{ att.attachable.description }}
</a>
- {% else %}
+ @else
{{ att.attachable_type }}
- {% endif %}
+ @endif
</td>
- <td data-value="{% if att.file_exists %}1{% else %}0{% endif %}">
+ <td data-value="{% if att.file_exists %}1@else0@endif">
{% if att.file_exists %}
<span class="bi bi-check text-success"></span>
- {% else %}
+ @else
<span class="bi bi-exclamation-triangle text-danger"></span>
- {% endif %}
+ @endif
</td>
</tr>
{% endfor %}
diff --git a/resources/views/bills/delete.twig b/resources/views/bills/delete.twig
index 2d82ea7a14..ce8c8026fa 100644
--- a/resources/views/bills/delete.twig
+++ b/resources/views/bills/delete.twig
@@ -26,12 +26,12 @@
<p>
{% if bill.transactionjournals.count() > 0 %}
{{ Lang.choice('form.bill_keep_transactions', bill.transactionjournals.count(),{count: bill.transactionjournals.count()}) }}
- {% endif %}
+ @endif
</p>
</div>
<div class="card-footer">
<input type="submit" name="submit" value="{{ trans('form.deletePermanently') }}" class="btn btn-danger pull-right"/>
- <a href="{{ URL.previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
+ <a href="{{ URL::previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
</div>
</div>
</div>
diff --git a/resources/views/bills/edit.twig b/resources/views/bills/edit.twig
index 6e3844b52f..89473c1f32 100644
--- a/resources/views/bills/edit.twig
+++ b/resources/views/bills/edit.twig
@@ -20,9 +20,9 @@
<div class="card-body">
{% if rules.count() > 0 %}
{{ ExpandedForm::text('name', bill.name, {helpText: trans_choice('firefly.bill_edit_rules', rules.count())}) }}
- {% else %}
+ @else
{{ ExpandedForm::text('name', bill.name) }}
- {% endif %}
+ @endif
{{ CurrencyForm::currencyList('transaction_currency_id') }}
{{ ExpandedForm::amountNoCurrency('amount_min', bill.amount_min) }}
{{ ExpandedForm::amountNoCurrency('amount_max', bill.amount_max) }}
diff --git a/resources/views/bills/show.twig b/resources/views/bills/show.twig
index af7cf08a6a..80ecf49a2b 100644
--- a/resources/views/bills/show.twig
+++ b/resources/views/bills/show.twig
@@ -31,10 +31,10 @@
{% set highAmount = formatAmountByCurrency(object.data.currency,object.data.amount_max) %}
{% if(0 != object.data.pc_amount_min) %}
{% set lowAmount = lowAmount ~ ' (' ~ formatAmountByCode(object.data.pc_amount_min, primaryCurrency.code) ~ ')' %}
- {% endif %}
+ @endif
{% if(0 != object.data.pc_amount_max) %}
{% set highAmount = highAmount ~ ' (' ~ formatAmountByCode(object.data.pc_amount_max, primaryCurrency.code) ~ ')' %}
- {% endif %}
+ @endif
{{ trans('firefly.match_between_amounts', {low: lowAmount, high: highAmount })|raw }}
{{ 'repeats'|_ }}
{{ trans('firefly.repeat_freq_' ~object.data.repeat_freq) }}.
@@ -46,9 +46,9 @@
<td>
{% if object.data.active %}
<span class="bi bi-check" title="{{ 'active'|_ }}"></span> {{ 'yes'|_ }}
- {% else %}
+ @else
<span class="bi bi-x" title="{{ 'inactive'|_ }}"></span> {{ 'no'|_ }}
- {% endif %}
+ @endif
</td>
</tr>
<tr>
@@ -57,20 +57,20 @@
{% if object.data.pay_dates|length > 0 %}
{{ formatDate(object.data.pay_dates[0], monthAndDayFormat) }}
- {% else %}
+ @else
{{ 'unknown'|_ }}
- {% endif %}
+ @endif
</td>
</tr>
<tr>
<td>{{ trans('firefly.average_bill_amount_year', {year: year}) }}</td>
<td>
{% for avg in yearAverage %}
- {{ formatAmountBySymbol(avg.avg, avg.currency_symbol, avg.currency_decimal_places, true) }}
+ {{ format_amount_by_symbol(avg.avg, avg.currency_symbol, avg.currency_decimal_places, true) }}
{% if convertToPrimary and 0 != avg.pc_avg %}
- ({{ formatAmountBySymbol(avg.pc_avg,
+ ({{ format_amount_by_symbol(avg.pc_avg,
primaryCurrency.symbol, primaryCurrency.decimal_places, true) }})
- {% endif %}
+ @endif
<br>
{% endfor %}
@@ -80,11 +80,11 @@
<td>{{ 'average_bill_amount_overall'|_ }}</td>
<td>
{% for avg in overallAverage %}
- {{ formatAmountBySymbol(avg.avg, avg.currency_symbol, avg.currency_decimal_places, true) }}
+ {{ format_amount_by_symbol(avg.avg, avg.currency_symbol, avg.currency_decimal_places, true) }}
{% if convertToPrimary and 0 != avg.pc_avg %}
- ({{ formatAmountBySymbol(avg.pc_avg,
+ ({{ format_amount_by_symbol(avg.pc_avg,
primaryCurrency.symbol, primaryCurrency.decimal_places, true) }})
- {% endif %}
+ @endif
<br>
{% endfor %}
</td>
@@ -109,11 +109,11 @@
<ul>
{% for rule in rules %}
<li><a href="{{ route('rules.edit', [rule.id]) }}">{{ rule.title }}</a>
- {% if not rule.active %}({{ 'list_inactive_rule'|_|lower }}){% endif %}
+ {% if not rule.active %}({{ 'list_inactive_rule'|_|lower }})@endif
</li>
{% endfor %}
</ul>
- {% endif %}
+ @endif
</div>
<div class="card-footer">
<form action="{{ route('subscriptions.rescan',object.data.id) }}" method="post">
@@ -133,13 +133,13 @@
{% if object.data.notes %}
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'notes'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.notes') }}</h3>
</div>
<div class="card-body">
{{ object.data.notes|default('')|markdown }}
</div>
</div>
- {% endif %}
+ @endif
{% if attachments.count() > 0 %}
@@ -151,7 +151,7 @@
{% include 'list.attachments' %}
</div>
</div>
- {% endif %}
+ @endif
</div>
</div>
diff --git a/resources/views/budgets/budget-limits/create.twig b/resources/views/budgets/budget-limits/create.twig
index d7c8503aa5..8375931510 100644
--- a/resources/views/budgets/budget-limits/create.twig
+++ b/resources/views/budgets/budget-limits/create.twig
@@ -26,7 +26,7 @@
<input step="any" class="form-control" id="amount" value="" autocomplete="off" name="amount" type="number"/>
</div>
<div class="form-group">
- <textarea name="notes" class="form-control" rows="3" placeholder="{{ 'notes'|_ }}"></textarea>
+ <textarea name="notes" class="form-control" rows="3" placeholder="{{ __('firefly.notes') }}"></textarea>
<span class="help-block">{{ trans('firefly.field_supports_markdown')|raw }}</span>
</div>
</div>
diff --git a/resources/views/budgets/budget-limits/edit.twig b/resources/views/budgets/budget-limits/edit.twig
index 538567e762..f422e5b1f9 100644
--- a/resources/views/budgets/budget-limits/edit.twig
+++ b/resources/views/budgets/budget-limits/edit.twig
@@ -14,7 +14,7 @@
<input type="hidden" name="redirect" value="true"/>
<input type="hidden" name="amount" value="{{ budgetLimit.amount }}"/>
<div class="form-group">
- <textarea name="notes" class="form-control" rows="3" placeholder="{{ 'notes'|_ }}">{{ notes }}</textarea>
+ <textarea name="notes" class="form-control" rows="3" placeholder="{{ __('firefly.notes') }}">{{ notes }}</textarea>
<span class="help-block">{{ trans('firefly.field_supports_markdown')|raw }}</span>
</div>
</div>
diff --git a/resources/views/budgets/delete.twig b/resources/views/budgets/delete.twig
index ddba252b55..a9ba8864c5 100644
--- a/resources/views/budgets/delete.twig
+++ b/resources/views/budgets/delete.twig
@@ -27,13 +27,13 @@
<p>
{% if budget.transactionjournals.count() > 0 %}
{{ Lang.choice('form.budget_keep_transactions', budget.transactionjournals.count(), {count: budget.transactionjournals.count() }) }}
- {% endif %}
+ @endif
</p>
</div>
<div class="card-footer">
<input type="submit" name="submit" value="{{ trans('form.deletePermanently') }}" class="btn btn-danger pull-right"/>
- <a href="{{ URL.previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
+ <a href="{{ URL::previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
</div>
diff --git a/resources/views/budgets/no-budget.twig b/resources/views/budgets/no-budget.twig
index d493774b56..385ecd08ee 100644
--- a/resources/views/budgets/no-budget.twig
+++ b/resources/views/budgets/no-budget.twig
@@ -7,55 +7,55 @@
@section('content')
{# upper show-all instruction #}
- {% if periods|length > 0 %}
+ @if(count($periods) > 0)
<div class="row">
<div class="col-lg-offset-9 col-lg-3 col-md-offset-9 col-md-3 col-sm-12 col-xs-12">
<p class="small text-center"><a href="{{ route('budgets.no-budget',['all']) }}">{{ 'showEverything'|_ }}</a></p>
</div>
</div>
- {% endif %}
+ @endif
<div class="row">
- <div class="{% if periods|length > 0 %}col-lg-9 col-md-9 col-sm-12{% else %}col-lg-12 col-md-12 col-sm-12{% endif %}">
+ <div class="@if(count($periods) > 0)col-lg-9 col-md-9 col-sm-12@elsecol-lg-12 col-md-12 col-sm-12@endif">
<div class="card">
<div class="card-header">
<h3 class="card-title">{{ subTitle }}</h3>
</div>
<div class="box-body ">
- {% if periods|length > 0 %}
+ @if(count($periods) > 0)
{% include 'list.groups' %}
<p>
<span class="bi bi-calendar"></span>
- <a href="{{ route('budgets.no-budget-all') }}">{{ 'show_all_no_filter'|_ }}</a>
+ <a href="{{ route('budgets.no-budget-all') }}">{{ __('firefly.show_all_no_filter') }}</a>
</p>
- {% else %}
+ @else
{% include 'list.groups' %}
<p>
<span class="bi bi-calendar"></span>
- <a href="{{ route('budgets.no-budget') }}">{{ 'show_the_current_period_and_overview'|_ }}</a>
+ <a href="{{ route('budgets.no-budget') }}">{{ __('firefly.show_the_current_period_and_overview') }}</a>
</p>
- {% endif %}
+ @endif
</div>
</div>
</div>
- {% if periods|length > 0 %}
+ @if(count($periods) > 0)
<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12">
{% include 'list.periods' %}
</div>
- {% endif %}
+ @endif
</div>
{# lower show-all instruction #}
- {% if periods|length > 0 %}
+ @if(count($periods) > 0)
<div class="row">
<div class="col-lg-offset-9 col-lg-3 col-md-offset-9 col-md-3 col-sm-12 col-xs-12">
<p class="small text-center"><a href="{{ route('budgets.no-budget-all') }}">{{ 'showEverything'|_ }}</a></p>
</div>
</div>
- {% endif %}
+ @endif
@endsection
@section('scripts')
diff --git a/resources/views/budgets/partials/amount-left.twig b/resources/views/budgets/partials/amount-left.twig
index c1b691a92f..89b7102ce7 100644
--- a/resources/views/budgets/partials/amount-left.twig
+++ b/resources/views/budgets/partials/amount-left.twig
@@ -2,22 +2,22 @@
{% for budgetLimit in budget.budgeted %}
<span class="left_span" data-currency="{{ budgetLimit.currency_id }}" data-limit="{{ budgetLimit.id }}" data-value="{{ budgetLimit.left }}" class="amount_left">
{# the amount left #}
- <span title="{{ 'left_in_budget_limit_overview'|_ }}">{{ formatAmountBySymbol(budgetLimit.left, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }}</span>
+ <span title="{{ 'left_in_budget_limit_overview'|_ }}">{{ format_amount_by_symbol(budgetLimit.left, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }}</span>
{# if the budget limit is in the past, this is not interesting. #}
{# if there is nothing left, this is not interesting. #}
{% if not budgetLimit.in_past and -1 == bccomp('0',budgetLimit.left) %}
{% if 0 == budgetLimit.active_days_left %}
- <span title="{{ trans('firefly.left_in_budget_limit_per_day', {days: 0}) }}">({{ formatAmountBySymbol(budgetLimit.left, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})
- {% else %}
- <span title="{{ trans('firefly.left_in_budget_limit_per_day', {days: budgetLimit.active_days_left}) }}">({{ formatAmountBySymbol(budgetLimit.left / budgetLimit.active_days_left, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})</span>
- {% endif %}
- {% endif %}
+ <span title="{{ trans('firefly.left_in_budget_limit_per_day', {days: 0}) }}">({{ format_amount_by_symbol(budgetLimit.left, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})
+ @else
+ <span title="{{ trans('firefly.left_in_budget_limit_per_day', {days: budgetLimit.active_days_left}) }}">({{ format_amount_by_symbol(budgetLimit.left / budgetLimit.active_days_left, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})</span>
+ @endif
+ @endif
{# if there is nothing left, just format 0.00 #}
{% if not budgetLimit.in_past and -1 != bccomp('0',budgetLimit.left) %}
- <span title="{{ 'nothing_left_in_budget'|_ }}">({{ formatAmountBySymbol('0', budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})</span>
- {% endif %}
+ <span title="{{ 'nothing_left_in_budget'|_ }}">({{ format_amount_by_symbol('0', budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})</span>
+ @endif
</span><br />
{% endfor %}
@@ -35,62 +35,62 @@
<span class="left_span" data-currency="{{ spentInfo.currency_id }}" data-limit="{{ budgetLimit.id }}"
data-value="{{ spentInfo.spent + budgetLimit.amount }}" class="amount_left">
<!--the amount left is automatically calculated. -->
- {{ formatAmountBySymbol(spentInfo.spent + budgetLimit.amount, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }}
+ {{ format_amount_by_symbol(spentInfo.spent + budgetLimit.amount, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }}
{% if spentInfo.spent + budgetLimit.amount > 0 %}
{% if 0 == activeDaysLeft %}
- ({{ formatAmountBySymbol(spentInfo.spent + budgetLimit.amount, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }})
- {% else %}
- ({{ formatAmountBySymbol((spentInfo.spent + budgetLimit.amount) / activeDaysLeft, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }})
- {% endif %}
- {% else %}
- ({{ formatAmountBySymbol(0, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(spentInfo.spent + budgetLimit.amount, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }})
+ @else
+ ({{ format_amount_by_symbol((spentInfo.spent + budgetLimit.amount) / activeDaysLeft, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }})
+ @endif
+ @else
+ ({{ format_amount_by_symbol(0, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }})
+ @endif
</span>
<br/>
- {% endif %}
+ @endif
{% if spentInfo.currency_id == budgetLimit.currency_id and not budgetLimit.in_range and 0.0 == budgetLimit.total_days %}
<span class="left_span" data-currency="{{ spentInfo.currency_id }}" data-limit="{{ budgetLimit.id }}"
data-value="{{ spentInfo.spent + budgetLimit.amount }}" class="amount_left">
- {{ formatAmountBySymbol(spentInfo.spent + budgetLimit.amount, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }}
+ {{ format_amount_by_symbol(spentInfo.spent + budgetLimit.amount, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }}
</span>
<span class="text-muted">({{ 'unknown'|_ }})</span>
- {% endif %}
+ @endif
{% if spentInfo.currency_id == budgetLimit.currency_id and not budgetLimit.in_range and 0.0 != budgetLimit.total_days %}
<span class="left_span" data-currency="{{ spentInfo.currency_id }}" data-limit="{{ budgetLimit.id }}"
data-value="{{ spentInfo.spent + budgetLimit.amount }}" class="amount_left">
- {{ formatAmountBySymbol(spentInfo.spent + budgetLimit.amount, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }}
+ {{ format_amount_by_symbol(spentInfo.spent + budgetLimit.amount, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }}
</span>
- ({{ formatAmountBySymbol((spentInfo.spent + budgetLimit.amount) / budgetLimit.total_days, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol((spentInfo.spent + budgetLimit.amount) / budgetLimit.total_days, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }})
+ @endif
{% endfor %}
{% if countLimit == 0 %}
<!-- display nothing -->
- {% endif %}
+ @endif
-->
{% endfor %}
{% for budgetLimit in budget.budgeted %}
{% if null == budget.spent[budgetLimit.currency_id] %}
<span class="left_span" data-currency="{{ spentInfo.currency_id }}" data-limit="{{ budgetLimit.id }}"
data-value="{{ spentInfo.spent + budgetLimit.amount }}" class="amount_left">
- {{ formatAmountBySymbol(budgetLimit.amount, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }}
+ {{ format_amount_by_symbol(budgetLimit.amount, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }}
{% if budgetLimit.in_range %}
{% if 0 == activeDaysLeft %}
- ({{ formatAmountBySymbol(budgetLimit.amount, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})
- {% else %}
- ({{ formatAmountBySymbol(budgetLimit.amount / activeDaysLeft, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})
- {% endif %}
- {% endif %}
+ ({{ format_amount_by_symbol(budgetLimit.amount, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})
+ @else
+ ({{ format_amount_by_symbol(budgetLimit.amount / activeDaysLeft, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})
+ @endif
+ @endif
{% if not budgetLimit.in_range %}
<!-- For issue #10441, add per day if the budget limit is out of range. -->
- ({{ formatAmountBySymbol(budgetLimit.amount / budgetLimit.total_days, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(budgetLimit.amount / budgetLimit.total_days, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})
+ @endif
</span>
<br/>
- {% endif %}
+ @endif
{% endfor %}
#}
diff --git a/resources/views/budgets/partials/amount-spent.twig b/resources/views/budgets/partials/amount-spent.twig
index fb7568d67c..7f6701252d 100644
--- a/resources/views/budgets/partials/amount-spent.twig
+++ b/resources/views/budgets/partials/amount-spent.twig
@@ -1,42 +1,42 @@
{# this is spent in budget limits: #}
{% for budgetLimit in budget.budgeted %}
- <span title="{{ 'spent_this_period'|_ }}">{{ formatAmountBySymbol(budgetLimit.spent, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }}</span>
+ <span title="{{ 'spent_this_period'|_ }}">{{ format_amount_by_symbol(budgetLimit.spent, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }}</span>
{% if 0 == budgetLimit.active_days_passed %}
- <span title="{{ trans('firefly.spent_this_period_per_day', {days: 0}) }}">({{ formatAmountBySymbol(budgetLimit.spent, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})</span>
- {% else %}
- <span title="{{ trans('firefly.spent_this_period_per_day', {days: budgetLimit.active_days_passed}) }}">({{ formatAmountBySymbol(budgetLimit.spent / budgetLimit.active_days_passed, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})</span>
- {% endif %}
+ <span title="{{ trans('firefly.spent_this_period_per_day', {days: 0}) }}">({{ format_amount_by_symbol(budgetLimit.spent, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})</span>
+ @else
+ <span title="{{ trans('firefly.spent_this_period_per_day', {days: budgetLimit.active_days_passed}) }}">({{ format_amount_by_symbol(budgetLimit.spent / budgetLimit.active_days_passed, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})</span>
+ @endif
<br />
{% endfor %}
{# this is spent NOT in budget limits: #}
{% for spent in budget.spent %}
{% if 0 != bccomp('0', spent.spent_outside) %}
- <span title="{{ 'spent_in_budget_limit_outside_period'|_ }}">{{ formatAmountBySymbol(spent.spent_outside, spent.currency_symbol, spent.currency_decimal_places) }}</span>
+ <span title="{{ 'spent_in_budget_limit_outside_period'|_ }}">{{ format_amount_by_symbol(spent.spent_outside, spent.currency_symbol, spent.currency_decimal_places) }}</span>
{% if 0 == activeDaysPassed %}
- <span title="{{ trans('firefly.spent_in_budget_limit_outside_period_per_day', {days: 0}) }}">({{ formatAmountBySymbol(spent.spent_outside, spent.currency_symbol, spent.currency_decimal_places) }})</span>
- {% else %}
- <span title="{{ trans('firefly.spent_in_budget_limit_outside_period_per_day', {days: activeDaysPassed}) }}">({{ formatAmountBySymbol(spent.spent_outside / activeDaysPassed, spent.currency_symbol, spent.currency_decimal_places) }})</span>
- {% endif %}
+ <span title="{{ trans('firefly.spent_in_budget_limit_outside_period_per_day', {days: 0}) }}">({{ format_amount_by_symbol(spent.spent_outside, spent.currency_symbol, spent.currency_decimal_places) }})</span>
+ @else
+ <span title="{{ trans('firefly.spent_in_budget_limit_outside_period_per_day', {days: activeDaysPassed}) }}">({{ format_amount_by_symbol(spent.spent_outside / activeDaysPassed, spent.currency_symbol, spent.currency_decimal_places) }})</span>
+ @endif
<br />
- {% endif %}
+ @endif
{% endfor %}
{#
{% for spentInfo in budget.spent %}
- {{ formatAmountBySymbol(spentInfo.spent, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }}
+ {{ format_amount_by_symbol(spentInfo.spent, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }}
{% if 0 == activeDaysPassed %}
- ({{ formatAmountBySymbol(spentInfo.spent, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }})
- {% else %}
- ({{ formatAmountBySymbol(spentInfo.spent / activeDaysPassed, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(spentInfo.spent, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }})
+ @else
+ ({{ format_amount_by_symbol(spentInfo.spent / activeDaysPassed, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }})
+ @endif
<br/>
{% endfor %}
{% for budgetLimit in budget.budgeted %}
{% if null == budget.spent[budgetLimit.currency_id] %}
- {{ formatAmountBySymbol(0, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }}<br/>
- {% endif %}
+ {{ format_amount_by_symbol(0, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }}<br/>
+ @endif
{% endfor %}
#}
diff --git a/resources/views/budgets/show.twig b/resources/views/budgets/show.twig
index 2b4a5d7eaa..101844936f 100644
--- a/resources/views/budgets/show.twig
+++ b/resources/views/budgets/show.twig
@@ -6,15 +6,15 @@
@section('content')
<div class="row">
- <div class="{% if attachments.count() == 0 %}col-lg-12 col-md-12 col-sm-12 col-xs-12{% else %}col-lg-8 col-md-6 col-sm-12 col-xs-12{% endif %}">
+ <div class="{% if attachments.count() == 0 %}col-lg-12 col-md-12 col-sm-12 col-xs-12@elsecol-lg-8 col-md-6 col-sm-12 col-xs-12@endif">
<div class="card">
<div class="card-header">
<h3 class="card-title">
{% if budgetLimit %}
{{ trans('firefly.chart_budget_in_period', {name: budget.name, start: budgetLimit.start_date.isoFormat(monthAndDayFormat), end: budgetLimit.end_date.isoFormat(monthAndDayFormat),currency: budgetLimit.transactionCurrency.name }) }}
- {% else %}
+ @else
{{ trans('firefly.chart_all_journals_for_budget', {name:budget.name}) }}
- {% endif %}
+ @endif
</h3>
<div class="box-tools pull-right">
<div class="btn-group">
@@ -35,7 +35,7 @@
{{ trans('firefly.chart_budget_in_period_only_currency', {currency: budgetLimit.transactionCurrency.name}) }}
</p>
</div>
- {% endif %}
+ @endif
</div>
</div>
{% if attachments.count() > 0 %}
@@ -51,7 +51,7 @@
</div>
</div>
</div>
- {% endif %}
+ @endif
</div>
<div class="row">
<div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
@@ -70,7 +70,7 @@
{{ trans('firefly.chart_budget_in_period_only_currency', {currency: budgetLimit.transactionCurrency.name}) }}
</p>
</div>
- {% endif %}
+ @endif
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
@@ -89,7 +89,7 @@
{{ trans('firefly.chart_budget_in_period_only_currency', {currency: budgetLimit.transactionCurrency.name}) }}
</p>
</div>
- {% endif %}
+ @endif
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
@@ -108,7 +108,7 @@
{{ trans('firefly.chart_budget_in_period_only_currency', {currency: budgetLimit.transactionCurrency.name}) }}
</p>
</div>
- {% endif %}
+ @endif
</div>
</div>
</div>
@@ -118,14 +118,14 @@
<p class="small text-center"><a href="{{ route('budgets.show',budget.id) }}">{{ 'showEverything'|_ }}</a></p>
</div>
</div>
- {% endif %}
+ @endif
<div class="row">
- <div class="{% if limits|length > 0 %}col-lg-9 col-md-9 col-sm-12 col-xs-12{% else %}col-lg-12 col-md-12 col-sm-12 col-xs-12{% endif %}">
+ <div class="{% if limits|length > 0 %}col-lg-9 col-md-9 col-sm-12 col-xs-12@elsecol-lg-12 col-md-12 col-sm-12 col-xs-12@endif">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'transactions'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.transactions') }}</h3>
</div>
<div class="card-body">
{% include 'list.groups' %}
@@ -133,17 +133,17 @@
<p>
<span class="bi bi-calendar"></span>
<a href="{{ route('budgets.show', [budget.id]) }}">
- {{ 'show_all_no_filter'|_ }}
+ {{ __('firefly.show_all_no_filter') }}
</a>
</p>
- {% endif %}
+ @endif
</div>
</div>
</div>
{% if limits|length > 0 %}
<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12">
{% for limit in limits %}
- <div class="box {% if limit.start_date == budgetLimit.start_date %}box-primary box-solid{% endif %}">
+ <div class="box {% if limit.start_date == budgetLimit.start_date %}box-primary box-solid@endif">
<div class="card-header">
<h3 class="card-title"><a
href="{{ route('budgets.show.limit',[budget.id,limit.id]) }}">
@@ -157,23 +157,23 @@
<tr>
<td class="third">{{ 'amount'|_ }}</td>
<td>
- {{ formatAmountBySymbol(limit.amount, limit.transactionCurrency.symbol, limit.transactionCurrency.decimal_places) }}
+ {{ format_amount_by_symbol(limit.amount, limit.transactionCurrency.symbol, limit.transactionCurrency.decimal_places) }}
{% if convertToPrimary and null != limit.native_amount %}
- ({{ formatAmountBySymbol(limit.native_amount, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(limit.native_amount, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
+ @endif
</td>
</tr>
<tr>
<td class="third">{{ 'spent'|_ }}</td>
<td>
{% if convertToPrimary %}
- {{ formatAmountBySymbol(limit.spent, limit.transactionCurrency.symbol, limit.transactionCurrency.decimal_places) }}
+ {{ format_amount_by_symbol(limit.spent, limit.transactionCurrency.symbol, limit.transactionCurrency.decimal_places) }}
{% if limit.pc_spent %}
- ({{ formatAmountBySymbol(limit.pc_spent, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
- {% endif %}
- {% else %}
- {{ formatAmountBySymbol(limit.spent, limit.transactionCurrency.symbol, limit.transactionCurrency.decimal_places) }}
- {% endif %}
+ ({{ format_amount_by_symbol(limit.pc_spent, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
+ @endif
+ @else
+ {{ format_amount_by_symbol(limit.spent, limit.transactionCurrency.symbol, limit.transactionCurrency.decimal_places) }}
+ @endif
</td>
</tr>
{% if 0 != bccomp('0', limit.spent) %}
@@ -190,24 +190,24 @@
<div class="progress-bar progress-bar-danger width-{{ 100-pct|round }}" role="progressbar" aria-valuenow="{{ (100-pct)|round }}"
aria-valuemin="0" aria-valuemax="100"></div>
</div>
- {% else %}
+ @else
{% set pct = (limit.amount != 0 ? (((limit.spent*-1) / limit.amount)*100) : 0) %} {# must have -1 here #}
<div class="progress progress-striped">
<div class="progress-bar progress-bar-success width-{{ pct|round }}" role="progressbar" aria-valuenow="{{ pct|round }}"
aria-valuemin="0"
aria-valuemax="100"></div>
</div>
- {% endif %}
+ @endif
</td>
</tr>
- {% endif %}
+ @endif
</table>
</div>
</div>
{% endfor %}
<p class="small text-center"><a href="{{ route('budgets.show',budget.id) }}">{{ 'showEverything'|_ }}</a></p>
</div>
- {% endif %}
+ @endif
</div>
@endsection
@@ -222,12 +222,12 @@
var expenseCategoryUrl = '{{ route('chart.budget.expense-category', [budget.id, budgetLimit.id]) }}';
var expenseAssetUrl = '{{ route('chart.budget.expense-asset', [budget.id, budgetLimit.id]) }}';
var expenseExpenseUrl = '{{ route('chart.budget.expense-expense', [budget.id, budgetLimit.id]) }}';
- {% else %}
+ @else
var budgetChartUrl = '{{ route('chart.budget.budget', [budget.id] ) }}';
var expenseCategoryUrl = '{{ route('chart.budget.expense-category', [budget.id]) }}';
var expenseAssetUrl = '{{ route('chart.budget.expense-asset', [budget.id]) }}';
var expenseExpenseUrl = '{{ route('chart.budget.expense-expense', [budget.id]) }}';
- {% endif %}
+ @endif
</script>
<script type="text/javascript" src="v1/js/lib/Chart.bundle.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
diff --git a/resources/views/categories/delete.twig b/resources/views/categories/delete.twig
index 261b6a7621..13b4979253 100644
--- a/resources/views/categories/delete.twig
+++ b/resources/views/categories/delete.twig
@@ -26,12 +26,12 @@
<p>
{% if category.transactionjournals.count() > 0 %}
{{ Lang.choice('form.category_keep_transactions', category.transactionjournals.count(), {count: category.transactionjournals.count() }) }}
- {% endif %}
+ @endif
</p>
</div>
<div class="card-footer">
<input type="submit" name="submit" value="{{ trans('form.deletePermanently') }}" class="btn btn-danger pull-right"/>
- <a href="{{ URL.previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
+ <a href="{{ URL::previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
</div>
</div>
</div>
diff --git a/resources/views/categories/no-category.twig b/resources/views/categories/no-category.twig
index 82c304dd83..b994d07602 100644
--- a/resources/views/categories/no-category.twig
+++ b/resources/views/categories/no-category.twig
@@ -7,55 +7,55 @@
@section('content')
{# upper show-all instruction #}
- {% if periods|length > 0 %}
+ @if(count($periods) > 0)
<div class="row">
<div class="col-lg-offset-10 col-lg-2 col-md-offset-9 col-md-3 col-sm-12 col-xs-12">
<p class="small text-center"><a href="{{ route('categories.no-category.all') }}">{{ 'showEverything'|_ }}</a></p>
</div>
</div>
- {% endif %}
+ @endif
<div class="row">
- <div class="{% if periods|length > 0 %}col-lg-10 col-md-9 col-sm-12 col-xs-12{% else %}col-lg-12 col-md-12 col-sm-12 col-xs-12{% endif %}">
+ <div class="@if(count($periods) > 0)col-lg-10 col-md-9 col-sm-12 col-xs-12@elsecol-lg-12 col-md-12 col-sm-12 col-xs-12@endif">
<div class="card">
<div class="card-header">
<h3 class="card-title">{{ subTitle }}</h3>
</div>
<div class="box-body ">
- {% if periods|length > 0 %}
+ @if(count($periods) > 0)
{% include 'list.groups' %}
<p>
<span class="bi bi-calendar"></span>
- <a href="{{ route('categories.no-category.all') }}">{{ 'show_all_no_filter'|_ }}</a>
+ <a href="{{ route('categories.no-category.all') }}">{{ __('firefly.show_all_no_filter') }}</a>
</p>
- {% else %}
+ @else
{% include 'list.groups' %}
<p>
<span class="bi bi-calendar"></span>
- <a href="{{ route('categories.no-category') }}">{{ 'show_the_current_period_and_overview'|_ }}</a>
+ <a href="{{ route('categories.no-category') }}">{{ __('firefly.show_the_current_period_and_overview') }}</a>
</p>
- {% endif %}
+ @endif
</div>
</div>
</div>
- {% if periods|length > 0 %}
+ @if(count($periods) > 0)
<div class="col-lg-2 col-md-4 col-sm-12 col-xs-12">
{% include 'list.periods' %}
</div>
- {% endif %}
+ @endif
</div>
{# lower show-all instruction #}
- {% if periods|length > 0 %}
+ @if(count($periods) > 0)
<div class="row">
<div class="col-lg-offset-10 col-lg-2 col-md-offset-9 col-md-3 col-sm-12 col-xs-12">
<p class="small text-center"><a href="{{ route('categories.no-category',['all']) }}">{{ 'showEverything'|_ }}</a></p>
</div>
</div>
- {% endif %}
+ @endif
@endsection
@section('scripts')
diff --git a/resources/views/categories/show.twig b/resources/views/categories/show.twig
index d58ee1ec92..35a10f2d9b 100644
--- a/resources/views/categories/show.twig
+++ b/resources/views/categories/show.twig
@@ -8,7 +8,7 @@
<div class="row">
{% if Route.getCurrentRoute.getName == 'categories.show' %}
{# both charts #}
- <div class="{% if attachments.count() == 0 %}col-lg-6 col-md-12 col-sm-12 col-xs-12{% else %}col-lg-4 col-md-12 col-sm-12 col-xs-12{% endif %}">
+ <div class="{% if attachments.count() == 0 %}col-lg-6 col-md-12 col-sm-12 col-xs-12@elsecol-lg-4 col-md-12 col-sm-12 col-xs-12@endif">
<div class="card">
<div class="card-header">
<h3 class="card-title">
@@ -20,7 +20,7 @@
</div>
</div>
</div>
- <div class="{% if attachments.count() == 0 %}col-lg-6 col-md-12 col-sm-12 col-xs-12{% else %}col-lg-4 col-md-12 col-sm-12 col-xs-12{% endif %}">
+ <div class="{% if attachments.count() == 0 %}col-lg-6 col-md-12 col-sm-12 col-xs-12@elsecol-lg-4 col-md-12 col-sm-12 col-xs-12@endif">
<div class="card">
<div class="card-header">
<h3 class="card-title">
@@ -32,10 +32,10 @@
</div>
</div>
</div>
- {% endif %}
+ @endif
{% if Route.getCurrentRoute.getName == 'categories.show.all' %}
{# all chart #}
- <div class="{% if attachments.count() == 0 %}col-lg-12 col-md-12 col-sm-12 col-xs-12{% else %}col-lg-8 col-md-12 col-sm-12 col-xs-12{% endif %}">
+ <div class="{% if attachments.count() == 0 %}col-lg-12 col-md-12 col-sm-12 col-xs-12@elsecol-lg-8 col-md-12 col-sm-12 col-xs-12@endif">
<div class="card">
<div class="card-header">
<h3 class="card-title">
@@ -47,7 +47,7 @@
</div>
</div>
</div>
- {% endif %}
+ @endif
{% if attachments.count() > 0 %}
<div class="col-lg-4 col-md-12 col-sm-12 col-xs-12">
<div class="card">
@@ -61,49 +61,49 @@
</div>
</div>
</div>
- {% endif %}
+ @endif
</div>
- {% if periods|length > 0 %}
+ @if(count($periods) > 0)
<div class="row">
<div class="col-lg-offset-10 col-lg-2 col-md-offset-10 col-md-2 col-sm-12 col-xs-12">
<p class="small text-center"><a href="{{ route('categories.show.all',[category.id]) }}">{{ 'showEverything'|_ }}</a></p>
</div>
</div>
- {% endif %}
+ @endif
<div class="row">
- <div class="{% if periods|length > 0 %}col-lg-10 col-md-8 col-sm-12 col-xs-12{% else %}col-lg-12 col-md-12 col-sm-12 col-xs-12{% endif %}">
+ <div class="@if(count($periods) > 0)col-lg-10 col-md-8 col-sm-12 col-xs-12@elsecol-lg-12 col-md-12 col-sm-12 col-xs-12@endif">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'transactions'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.transactions') }}</h3>
</div>
<div class="card-body">
- {% if periods|length > 0 %}
+ @if(count($periods) > 0)
{% include 'list.groups' %}
<p>
<span class="bi bi-calendar"></span>
<a href="{{ route('categories.show.all', [category.id]) }}">
- {{ 'show_all_no_filter'|_ }}
+ {{ __('firefly.show_all_no_filter') }}
</a>
</p>
- {% else %}
+ @else
{% include 'list.groups' %}
<p>
<span class="bi bi-calendar"></span>
<a href="{{ route('categories.show', [category.id]) }}">
- {{ 'show_the_current_period_and_overview'|_ }}
+ {{ __('firefly.show_the_current_period_and_overview') }}
</a>
</p>
- {% endif %}
+ @endif
</div>
</div>
</div>
- {% if periods|length > 0 %}
+ @if(count($periods) > 0)
<div class="col-lg-2 col-md-4 col-sm-12 col-xs-12">
{% include 'list.periods' %}
</div>
- {% endif %}
+ @endif
</div>
@endsection
diff --git a/resources/views/components/generic/amount.blade.php b/resources/views/components/generic/amount.blade.php
index 1cf5d59862..01234b9d2a 100644
--- a/resources/views/components/generic/amount.blade.php
+++ b/resources/views/components/generic/amount.blade.php
@@ -103,14 +103,14 @@
{% elseif transaction.transaction_type_type == 'Reconciliation' %}
-{% else %}
+@else
{{ format_amount_by_symbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}
{% if null != transaction.foreign_amount %}
({{ format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
- {% endif %}
+ @endif
{% if convertToPrimary and null != transaction.pc_amount %}
({{ format_amount_by_symbol(transaction.pc_amount, primaryCurrency.symbol, foreign_currency_.decimal_places) }})
- {% endif %}
-{% endif %}
+ @endif
+@endif
</span>
--}}
diff --git a/resources/views/currencies/delete.twig b/resources/views/currencies/delete.twig
index 0c99542fb4..13addcd52e 100644
--- a/resources/views/currencies/delete.twig
+++ b/resources/views/currencies/delete.twig
@@ -25,7 +25,7 @@
</div>
<div class="card-footer">
<input type="submit" name="submit" value="{{ trans('form.deletePermanently') }}" class="btn btn-danger pull-right"/>
- <a href="{{ URL.previous }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
+ <a href="{{ URL::previous }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
</div>
</div>
</div>
diff --git a/resources/views/debug.twig b/resources/views/debug.twig
index 7b6410c097..3ca90bbd75 100644
--- a/resources/views/debug.twig
+++ b/resources/views/debug.twig
@@ -18,7 +18,7 @@
</p>
<label for="debug_info"></label>
<textarea rows="30" cols="100" name="debug_info" id="debug_info">
-Debug information generated at {{ now }} for Firefly III version **{% if not FF_IS_DEVELOP %}v{% endif %}{{ FF_VERSION }}**.
+Debug information generated at {{ now }} for Firefly III version **{% if not FF_IS_DEVELOP %}v@endif{{ FF_VERSION }}**.
{{ table|escape('html') }}
</textarea>
diff --git a/resources/views/emails/error-html.twig b/resources/views/emails/error-html.twig
index 72faa55d14..e31ffa0381 100644
--- a/resources/views/emails/error-html.twig
+++ b/resources/views/emails/error-html.twig
@@ -19,9 +19,9 @@
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
{% if loggedIn %}
{{ trans('email.error_user', { id: user.id, email: user.email })|raw }}
- {% else %}
+ @else
{{ trans('email.error_no_user') }}
- {% endif %}
+ @endif
</p>
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
@@ -49,7 +49,7 @@
{% for key, header in headers %}
{% if (key != 'cookie') and header[0] != '' and key != 'x-xsrf-token' %}
- {{ key }}: {{ header[0] }}<br>
-{% endif %}
+@endif
{% endfor %}
</p>
{% if ('' != post) %}
@@ -59,6 +59,6 @@
<p style="font-family: monospace;font-size:11px;color:#aaa">
{{ post }}
</p>
-{% endif %}
+@endif
{% include 'emails.footer-html' %}
diff --git a/resources/views/emails/error-text.twig b/resources/views/emails/error-text.twig
index d97b145203..65b27e750c 100644
--- a/resources/views/emails/error-text.twig
+++ b/resources/views/emails/error-text.twig
@@ -9,9 +9,9 @@
{% if loggedIn %}
{{ trans('email.error_user', { id: user.id, email: user.email })|striptags|raw }}
-{% else %}
+@else
{{ trans('email.error_no_user')|raw }}
-{% endif %}
+@endif
{{ trans('email.error_ip', { ip: ip }) }}
{{ method }} {{ trans('email.error_url', {url :url}) }}
@@ -30,13 +30,13 @@
{% for key, header in headers %}
{% if (key != 'cookie') and header[0] != '' and key != 'x-xsrf-token' %}
- {{ key }}: {{ header[0] }}
-{% endif %}
+@endif
{% endfor %}
{% if ('' != post) %}
{{ trans('email.error_post') }}
{{ post }}
-{% endif %}
+@endif
{% include 'emails.footer-text' %}
diff --git a/resources/views/emails/footer-html.twig b/resources/views/emails/footer-html.twig
index f128f89107..54d029ae3c 100644
--- a/resources/views/emails/footer-html.twig
+++ b/resources/views/emails/footer-html.twig
@@ -9,7 +9,7 @@
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:11px;color:#aaa;">
{{ trans('email.footer_ps', {ipAddress: ipAddress}) }}
</p>
-{% endif %}
+@endif
</body>
</html>
diff --git a/resources/views/emails/footer-text.twig b/resources/views/emails/footer-text.twig
index 1e9f41e24c..900b525b6c 100644
--- a/resources/views/emails/footer-text.twig
+++ b/resources/views/emails/footer-text.twig
@@ -5,4 +5,4 @@
{% if '' != ipAddress %}
{{ trans('email.footer_ps', {ipAddress: ipAddress})|raw }}
-{% endif %}
+@endif
diff --git a/resources/views/form/assetAccountCheckList.twig b/resources/views/form/assetAccountCheckList.twig
index f4e5c8804e..e303afc029 100644
--- a/resources/views/form/assetAccountCheckList.twig
+++ b/resources/views/form/assetAccountCheckList.twig
@@ -9,9 +9,9 @@
<label>
{% if account in selected or (selected|length == 0 and options.select_all == true) %}
{{ Html::checkbox(name~'[]',true, id).id(id) }}
- {% else %}
+ @else
{{ Html::checkbox(name~'[]',false, id).id(id) }}
- {% endif %}
+ @endif
{{ account|escape }}
</label>
</div>
diff --git a/resources/views/json/piggy-banks-old.twig b/resources/views/json/piggy-banks-old.twig
index 77cbe162a7..5e649b5279 100644
--- a/resources/views/json/piggy-banks-old.twig
+++ b/resources/views/json/piggy-banks-old.twig
@@ -10,22 +10,22 @@
<div class="progress-bar width-{{ entry.percentage|round }}" role="progressbar" aria-valuenow="{{ entry.percentage }}" aria-valuemin="0" aria-valuemax="100">
{% if entry.percentage >=20 %}
{% if convertToPrimary and 0 != avg.pc_amount %}
- {{ formatAmountBySymbol(entry.pc_amount, entry.primary_currency_symbol, entry.primary_currency_decimal_places, false) }}
- ({{ formatAmountBySymbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places, false) }})
- {% else %}
- {{ formatAmountBySymbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places, false) }}
- {% endif %}
- {% endif %}
+ {{ format_amount_by_symbol(entry.pc_amount, entry.primary_currency_symbol, entry.primary_currency_decimal_places, false) }}
+ ({{ format_amount_by_symbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places, false) }})
+ @else
+ {{ format_amount_by_symbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places, false) }}
+ @endif
+ @endif
</div>
{% if entry.percentage < 20 %}
&nbsp;
{% if convertToPrimary and 0 != avg.pc_amount %}
- {{ formatAmountBySymbol(entry.pc_amount, entry.primary_currency_symbol, entry.primary_currency_decimal_places, false) }}
- ({{ formatAmountBySymbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places, false) }})
- {% else %}
- {{ formatAmountBySymbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places, false) }}
- {% endif %}
- {% endif %}
+ {{ format_amount_by_symbol(entry.pc_amount, entry.primary_currency_symbol, entry.primary_currency_decimal_places, false) }}
+ ({{ format_amount_by_symbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places, false) }})
+ @else
+ {{ format_amount_by_symbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places, false) }}
+ @endif
+ @endif
</div>
{% endfor %}
</div>
diff --git a/resources/views/layout/default.twig b/resources/views/layout/default.twig
index f5122e0333..1f25a6448a 100644
--- a/resources/views/layout/default.twig
+++ b/resources/views/layout/default.twig
@@ -15,13 +15,13 @@
<title>
{% if pageTitle %}
{{ pageTitle }} »
- {% endif %}
+ @endif
{% if subTitle and not pageTitle %}
{{ subTitle }} »
- {% endif %}
+ @endif
{% if title != "Firefly III" %}
{{ title }} »
- {% endif %}
+ @endif
Firefly III
@@ -56,21 +56,21 @@
nonce="{{ $JS_NONCE }}" media="(prefers-color-scheme: dark)">
<link href="v1/lib/adminlte/css/skins/skin-light.min.css?v={{ $FF_BUILD_TIME }}" rel="stylesheet" type="text/css"
nonce="{{ $JS_NONCE }}" media="(prefers-color-scheme: light)">
- {% endif %}
+ @endif
{% if 'dark' == darkMode %}
<meta name="color-scheme" content="dark">
<link href="v1/css/daterangepicker-dark.css?v={{ $FF_BUILD_TIME }}" rel="stylesheet" type="text/css"
nonce="{{ $JS_NONCE }}">
<link href="v1/lib/adminlte/css/skins/skin-dark.min.css?v={{ $FF_BUILD_TIME }}" rel="stylesheet" type="text/css"
nonce="{{ $JS_NONCE }}">
- {% endif %}
+ @endif
{% if 'light' == darkMode %}
<meta name="color-scheme" content="light">
<link href="v1/css/daterangepicker-light.css?v={{ $FF_BUILD_TIME }}" rel="stylesheet" type="text/css"
nonce="{{ $JS_NONCE }}">
<link href="v1/lib/adminlte/css/skins/skin-light.min.css?v={{ $FF_BUILD_TIME }}" rel="stylesheet" type="text/css"
nonce="{{ $JS_NONCE }}">
- {% endif %}
+ @endif
{# Firefly III customisations #}
<link href="v1/css/firefly.css?v={{ $FF_BUILD_TIME }}" rel="stylesheet" type="text/css" nonce="{{ $JS_NONCE }}">
@@ -78,7 +78,7 @@
{% if not shownDemo %}
<link href="v1/lib/intro/introjs.min.css?v={{ $FF_BUILD_TIME }}" rel="stylesheet" type="text/css"
nonce="{{ $JS_NONCE }}">
- {% endif %}
+ @endif
{# Any local custom CSS. #}
@section('styles')@endsection
@@ -121,10 +121,10 @@
<a href="#" id="anonymous">
{% if anonymous %}
<span class="text-danger bi bi-eye-slash"></span>
- {% endif %}
+ @endif
{% if not anonymous %}
<span class="text-success bi bi-eye"></span>
- {% endif %}
+ @endif
</a>
</li>
<li class="hidden-sm hidden-xs">
@@ -184,7 +184,7 @@
</p>
</div>
</div>
- {% endif %}
+ @endif
{% include('partials.flashes') %}
@@ -198,8 +198,8 @@
</div>
<strong><a href="https://github.com/firefly-iii/firefly-iii">Firefly III</a></strong>
<small class="text-muted">&copy; James Cole, <a href="https://www.gnu.org/licenses/agpl-3.0.html">AGPL-3.0-or-later</a>.</small>
- {% if FF_IS_ALPHA %}<small class="text-danger hidden-xs"><br>{{ 'is_alpha_warning'|_ }}</small>{% endif %}
- {% if FF_IS_BETA %}<small class="text-warning hidden-xs"><br>{{ 'is_beta_warning'|_ }}</small>{% endif %}
+ {% if FF_IS_ALPHA %}<small class="text-danger hidden-xs"><br>{{ 'is_alpha_warning'|_ }}</small>@endif
+ {% if FF_IS_BETA %}<small class="text-warning hidden-xs"><br>{{ 'is_beta_warning'|_ }}</small>@endif
</footer>
{% include('partials.control-bar') %}
@@ -240,7 +240,7 @@
{# All kinds of variables. #}
<script
- src="{{ route('javascript.variables') }}?ext=.js&amp;v={{ FF_VERSION }}{% if account %}&amp;account={{ account.id }}{% endif %}"
+ src="{{ route('javascript.variables') }}?ext=.js&amp;v={{ FF_VERSION }}{% if account %}&amp;account={{ account.id }}@endif"
type="text/javascript" nonce="{{ $JS_NONCE }}"></script>
{# Base script: jquery and bootstrap #}
@@ -251,7 +251,7 @@
<script src="v1/js/app_vue.js?v={{ $FF_BUILD_TIME }}" type="text/javascript" nonce="{{ $JS_NONCE }}"></script>
<script src="v1/js/{{ VUE_SCRIPT_NAME }}.js?v={{ $FF_BUILD_TIME }}" type="text/javascript"
nonce="{{ $JS_NONCE }}"></script>
-{% endif %}
+@endif
{# date range picker, current template, etc. #}
<script src="v1/js/lib/daterangepicker.js?v={{ $FF_BUILD_TIME }}" type="text/javascript" nonce="{{ $JS_NONCE }}"></script>
@@ -270,7 +270,7 @@
</script>
<script type="text/javascript" src="v1/lib/intro/intro.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" src="v1/js/ff/intro/intro.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endif %}
+@endif
@section('scripts')@endsection
@@ -296,7 +296,7 @@
<noscript><p><img
src="//{{ config('firefly.tracker_url') }}/matomo.php?idsite={{ config('firefly.tracker_site_id') }}&amp;rec=1"
class="no-border" alt=""/></p></noscript>
-{% endif %}
+@endif
<form id="logout-form" action="{{ route('logout') }}" method="POST" class="hidden">
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
diff --git a/resources/views/layout/empty.twig b/resources/views/layout/empty.twig
index daf9f401ad..a30a254e0b 100644
--- a/resources/views/layout/empty.twig
+++ b/resources/views/layout/empty.twig
@@ -34,15 +34,15 @@
</script>
<link href="v1/lib/adminlte/css/skins/skin-dark.min.css?v={{ $FF_BUILD_TIME }}" rel="stylesheet" type="text/css" nonce="{{ $JS_NONCE }}" media="(prefers-color-scheme: dark)">
<link href="v1/lib/adminlte/css/skins/skin-light.min.css?v={{ $FF_BUILD_TIME }}" rel="stylesheet" type="text/css" nonce="{{ $JS_NONCE }}" media="(prefers-color-scheme: light)">
- {% endif %}
+ @endif
{% if 'dark' == darkMode %}
<meta name="color-scheme" content="dark">
<link href="v1/lib/adminlte/css/skins/skin-dark.min.css?v={{ $FF_BUILD_TIME }}" rel="stylesheet" type="text/css" nonce="{{ $JS_NONCE }}">
- {% endif %}
+ @endif
{% if 'light' == darkMode %}
<meta name="color-scheme" content="light">
<link href="v1/lib/adminlte/css/skins/skin-light.min.css?v={{ $FF_BUILD_TIME }}" rel="stylesheet" type="text/css" nonce="{{ $JS_NONCE }}">
- {% endif %}
+ @endif
{# Firefly III customisations #}
<link href="v1/css/firefly.css?v={{ $FF_BUILD_TIME }}" rel="stylesheet" type="text/css" nonce="{{ $JS_NONCE }}">
@@ -86,7 +86,7 @@
})();
</script>
<noscript><p><img src="//{{ config('firefly.tracker_url') }}/matomo.php?idsite={{ config('firefly.tracker_site_id') }}&amp;rec=1" class="no-border" alt=""/></p></noscript>
-{% endif %}
+@endif
</body>
</html>
diff --git a/resources/views/layout/guest.twig b/resources/views/layout/guest.twig
index b6f89204cc..dd2b294e4e 100644
--- a/resources/views/layout/guest.twig
+++ b/resources/views/layout/guest.twig
@@ -10,11 +10,11 @@
{% if title != "Firefly" and title != "" %}
// {{ title }}
- {% endif %}
+ @endif
{% if subTitle %}
// {{ subTitle }}
- {% endif %}
+ @endif
</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="csrf-token" content="{{ csrf_token() }}">
@@ -43,15 +43,15 @@
</script>
<link href="v1/lib/adminlte/css/skins/skin-dark.min.css?v={{ $FF_BUILD_TIME }}" rel="stylesheet" type="text/css" nonce="{{ $JS_NONCE }}" media="(prefers-color-scheme: dark)">
<link href="v1/lib/adminlte/css/skins/skin-light.min.css?v={{ $FF_BUILD_TIME }}" rel="stylesheet" type="text/css" nonce="{{ $JS_NONCE }}" media="(prefers-color-scheme: light)">
- {% endif %}
+ @endif
{% if 'dark' == darkMode %}
<meta name="color-scheme" content="dark">
<link href="v1/lib/adminlte/css/skins/skin-dark.min.css?v={{ $FF_BUILD_TIME }}" rel="stylesheet" type="text/css" nonce="{{ $JS_NONCE }}">
- {% endif %}
+ @endif
{% if 'light' == darkMode %}
<meta name="color-scheme" content="light">
<link href="v1/lib/adminlte/css/skins/skin-light.min.css?v={{ $FF_BUILD_TIME }}" rel="stylesheet" type="text/css" nonce="{{ $JS_NONCE }}">
- {% endif %}
+ @endif
{# Firefly III customisations #}
<link href="v1/css/firefly.css?v={{ $FF_BUILD_TIME }}" rel="stylesheet" type="text/css" nonce="{{ $JS_NONCE }}">
@@ -100,7 +100,7 @@
})();
</script>
<noscript><p><img src="//{{ config('firefly.tracker_url') }}/matomo.php?idsite={{ config('firefly.tracker_site_id') }}&amp;rec=1" class="no-border" alt=""/></p></noscript>
-{% endif %}
+@endif
</body>
</html>
diff --git a/resources/views/layout/install.twig b/resources/views/layout/install.twig
index bb726e3731..d74253ea5c 100644
--- a/resources/views/layout/install.twig
+++ b/resources/views/layout/install.twig
@@ -59,7 +59,7 @@
})();
</script>
<noscript><p><img src="//{{ config('firefly.tracker_url') }}/matomo.php?idsite={{ config('firefly.tracker_site_id') }}&amp;rec=1" class="no-border" alt=""/></p></noscript>
-{% endif %}
+@endif
</body>
</html>
diff --git a/resources/views/list/accounts.twig b/resources/views/list/accounts.twig
index c7d1c6d74f..2069fcf99f 100644
--- a/resources/views/list/accounts.twig
+++ b/resources/views/list/accounts.twig
@@ -8,26 +8,26 @@
<th>{{ trans('list.name') }}</th>
{% if objectType == 'asset' %}
<th class="hidden-sm hidden-xs hidden-md">{{ trans('list.role') }}</th>
- {% endif %}
+ @endif
{% if objectType == 'liabilities' %}
<th>{{ trans('list.liability_type') }}</th>
<th>{{ trans('form.liability_direction') }}</th>
<th>{{ trans('list.interest') }} ({{ trans('list.interest_period') }})</th>
- {% endif %}
+ @endif
<th class="hidden-sm hidden-xs">{{ trans('form.account_number') }}</th>
{% if objectType != 'liabilities' %}
<th class="text-right">{{ trans('list.currentBalance') }}</th>
- {% endif %}
+ @endif
{% if objectType == 'liabilities' %}
<th class="text-right">
{{ trans('firefly.left_in_debt') }}
</th>
- {% endif %}
+ @endif
<th class="hidden-sm hidden-xs">{{ trans('list.active') }}</th>
{# hide last activity to make room for other stuff #}
{% if objectType != 'liabilities' %}
<th class="hidden-sm hidden-xs hidden-md">{{ trans('list.lastActivity') }}</th>
- {% endif %}
+ @endif
<th
class="fifteen hidden-sm hidden-xs hidden-md">{{ trans('list.balanceDiff') }}</th>
<th class="hidden-sm hidden-xs">&nbsp;</th>
@@ -43,26 +43,26 @@
<a href="{{ route('accounts.show',account.id) }}">{{ account.name }}</a>
{% if account.location %}
<span class="fa fa-map-marker"></span>
- {% endif %}
+ @endif
{% if account.attachments.count() > 0 %}
<span class="bi bi-paperclip"></span>
- {% endif %}
+ @endif
</td>
{% if objectType == "asset" %}
<td class="hidden-sm hidden-xs hidden-md">
{% for entry in account.accountmeta %}
{% if entry.name == 'account_role' %}
{{ ('account_role_'~entry.data)|_ }}
- {% endif %}
+ @endif
{% endfor %}
</td>
- {% endif %}
+ @endif
{% if objectType == 'liabilities' %}
<td>{{ account.accountTypeString }}</td>
<td>{{ trans('firefly.liability_direction_'~account.liability_direction~'_short') }}</td>
<td>{{ account.interest }}% ({{ account.interestPeriod|lower }})</td>
- {% endif %}
- <td class="hidden-sm hidden-xs">{{ account.iban }}{% if account.iban == '' %}{{ accountGetMetaField(account, 'account_number') }}{% endif %}</td>
+ @endif
+ <td class="hidden-sm hidden-xs">{{ account.iban }}{% if account.iban == '' %}{{ accountGetMetaField(account, 'account_number') }}@endif</td>
{% if objectType != 'liabilities' %}
<td class="text-right">
<span class="mr-2">
@@ -70,35 +70,35 @@
<span title="{{ key }}">
{% if 'balance' == key %}
{% if not convertToPrimary %}
- {{ formatAmountBySymbol(balance, account.currency.symbol, account.currency.decimal_places) }}
- {% endif %}
+ {{ format_amount_by_symbol(balance, account.currency.symbol, account.currency.decimal_places) }}
+ @endif
{% elseif 'pc_balance' == key %}
{% if convertToPrimary %}
- {{ formatAmountBySymbol(balance, primaryCurrency.symbol, primaryCurrency.decimal_places) }}
- {% endif %}
- {% else %}
+ {{ format_amount_by_symbol(balance, primaryCurrency.symbol, primaryCurrency.decimal_places) }}
+ @endif
+ @else
({{ formatAmountByCode(balance, key) }})
- {% endif %}
+ @endif
</span>
{% endfor %}
</span>
</td>
- {% endif %}
+ @endif
{% if objectType == 'liabilities' %}
<td class="text-right">
{% if '-' != account.current_debt %}
<span class="text-info money-transfer">
- {{ formatAmountBySymbol(account.current_debt, account.currency.symbol, account.currency.decimal_places, false) }}
+ {{ format_amount_by_symbol(account.current_debt, account.currency.symbol, account.currency.decimal_places, false) }}
</span>
- {% endif %}
+ @endif
</td>
- {% endif %}
+ @endif
<td class="hidden-sm hidden-xs">
{% if account.active %}
<span class="bi bi-check"></span>
- {% else %}
+ @else
<span class="fa fa-ban"></span>
- {% endif %}
+ @endif
</td>
{# hide last activity to make room for other stuff #}
{% if objectType != 'liabilities' %}
@@ -107,27 +107,27 @@
<!-- {{ account.lastActivityDate }} -->
{{ account.lastActivityDate.isoFormat(monthAndDayFormat) }}
</td>
- {% else %}
+ @else
<td class="hidden-sm hidden-xs hidden-md">
<em>{{ 'never'|_ }}</em>
</td>
- {% endif %}
- {% endif %}
+ @endif
+ @endif
<td class="text-right hidden-sm hidden-xs hidden-md">
<span class="mr-1">
{% for key, balance in account.differences %}
<span title="{{ key }}">
{% if 'balance' == key %}
{% if not convertToPrimary %}
- {{ formatAmountBySymbol(balance, account.currency.symbol, account.currency.decimal_places) }}
- {% endif %}
+ {{ format_amount_by_symbol(balance, account.currency.symbol, account.currency.decimal_places) }}
+ @endif
{% elseif 'pc_balance' == key %}
{% if convertToPrimary %}
- {{ formatAmountBySymbol(balance, primaryCurrency.symbol, primaryCurrency.decimal_places) }}
- {% endif %}
- {% else %}
+ {{ format_amount_by_symbol(balance, primaryCurrency.symbol, primaryCurrency.decimal_places) }}
+ @endif
+ @else
({{ formatAmountByCode(balance, key) }})
- {% endif %}
+ @endif
</span>
{% endfor %}
</span>
@@ -141,7 +141,7 @@
<li><a href="{{ route('accounts.delete',account.id) }}"><span class="bi bi-trash"></span> {{ __('firefly.delete') }}</a></li>
{% if objectType == 'asset' %}
<li><a href="{{ route('accounts.reconcile',account.id) }}"><span class="bi bi-check"></span> {{ 'reconcile_this_account'|_ }}</a></li>
- {% endif %}
+ @endif
</ul>
</div>
</td>
diff --git a/resources/views/list/ale.twig b/resources/views/list/ale.twig
index 9b3f80c164..6484784bb9 100644
--- a/resources/views/list/ale.twig
+++ b/resources/views/list/ale.twig
@@ -11,10 +11,10 @@
{# link to object: #}
{% if 'FireflyIII\\Models\\Rule' == logEntry.changer_type %}
<a href="{{ route('rules.edit', [logEntry.changer_id] ) }}">
- {% endif %}
+ @endif
{% if 'FireflyIII\\User' == logEntry.changer_type %}
<a href="{{ route('profile.index') }}">
- {% endif %}
+ @endif
{{ logEntry.changer_type|replace({"FireflyIII\\Models\\": ""})|replace({"FireflyIII\\": ""}) }} #{{ logEntry.changer_id }}
</a>
</th>
@@ -25,90 +25,90 @@
{# display depends on action #}
{% if 'add_tag' == logEntry.action %}
<code>{{ logEntry.after }}</code>
- {% endif %}
+ @endif
{% if 'update_amount' == logEntry.action %}
- {{ formatAmountBySymbol(logEntry.before.amount, logEntry.before.currency_symbol, logEntry.before.decimal_places, true) }}
+ {{ format_amount_by_symbol(logEntry.before.amount, logEntry.before.currency_symbol, logEntry.before.decimal_places, true) }}
&rarr;
- {{ formatAmountBySymbol(logEntry.after.amount, logEntry.after.currency_symbol, logEntry.after.decimal_places, true) }}
- {% endif %}
+ {{ format_amount_by_symbol(logEntry.after.amount, logEntry.after.currency_symbol, logEntry.after.decimal_places, true) }}
+ @endif
{% if 'update_foreign_amount' == logEntry.action %}
- {{ formatAmountBySymbol(logEntry.before.amount, logEntry.before.currency_symbol, logEntry.before.decimal_places, true) }}
+ {{ format_amount_by_symbol(logEntry.before.amount, logEntry.before.currency_symbol, logEntry.before.decimal_places, true) }}
&rarr;
- {{ formatAmountBySymbol(logEntry.after.amount, logEntry.after.currency_symbol, logEntry.after.decimal_places, true) }}
- {% endif %}
+ {{ format_amount_by_symbol(logEntry.after.amount, logEntry.after.currency_symbol, logEntry.after.decimal_places, true) }}
+ @endif
{% if 'update_group_title' == logEntry.action %}
<code><s>{{ logEntry.before }}</s></code>
&rarr;
<code>{{ logEntry.after }}</code>
- {% endif %}
+ @endif
{% if 'clear_category' == logEntry.action %}
<code><s>{{ logEntry.before }}</s></code>
- {% endif %}
+ @endif
{% if 'clear_tag' == logEntry.action %}
<code><s>{{ logEntry.before }}</s></code>
- {% endif %}
+ @endif
{% if 'clear_notes' == logEntry.action %}
{% if logEntry.before|length > 25 %}
<code><s>{{ logEntry.before|slice(0,25) }}...</s></code>
- {% else %}
+ @else
<code><s>{{ logEntry.before }}</s></code>
- {% endif %}
- {% endif %}
+ @endif
+ @endif
{% if 'set_bill' == logEntry.action %}
<code>{{ logEntry.after }}</code>
- {% endif %}
+ @endif
{% if 'set_budget' == logEntry.action %}
<code>{{ logEntry.after }}</code>
- {% endif %}
+ @endif
{% if 'set_category' == logEntry.action %}
<code>{{ logEntry.after }}</code>
- {% endif %}
+ @endif
{% if 'set_source' == logEntry.action %}
<code>{{ logEntry.after }}</code>
- {% endif %}
+ @endif
{% if 'set_destination' == logEntry.action %}
<code>{{ logEntry.after }}</code>
- {% endif %}
+ @endif
{% if 'update_date' == logEntry.action %}
<code><s>{{ carbonize(logEntry.before).isoFormat(dateTimeFormat) }}</s></code>
&rarr;
<code>{{ carbonize(logEntry.after).isoFormat(dateTimeFormat) }}</code>
- {% endif %}
+ @endif
{% if 'update_transaction_type' == logEntry.action %}
{{ trans('firefly.'~logEntry.before) }} &rarr; {{ trans('firefly.'~logEntry.after) }}
- {% endif %}
+ @endif
{% if 'update_notes' == logEntry.action %}
{% if logEntry.before|length > 25 %}
<code><s>{{ logEntry.before|slice(0,25) }}...</s></code>
- {% else %}
+ @else
<code><s>{{ logEntry.before }}</s></code>
- {% endif %}
+ @endif
&rarr;
{% if logEntry.after|length > 25 %}
<code>{{ logEntry.after|slice(0,25) }}...</code>
- {% else %}
+ @else
<code>{{ logEntry.after }}</code>
- {% endif %}
- {% endif %}
+ @endif
+ @endif
{% if 'update_description' == logEntry.action %}
<code><s>{{ logEntry.before }}</s></code>
&rarr;
<code>{{ logEntry.after }}</code>
- {% endif %}
+ @endif
{% if 'add_to_piggy' == logEntry.action %}
- {{ trans('firefly.ale_action_log_add', {amount: formatAmountBySymbol(logEntry.after.amount, logEntry.after.currency_symbol, logEntry.after.decimal_places, true), name: logEntry.after.piggy|e})|raw }}
- {% endif %}
+ {{ trans('firefly.ale_action_log_add', {amount: format_amount_by_symbol(logEntry.after.amount, logEntry.after.currency_symbol, logEntry.after.decimal_places, true), name: logEntry.after.piggy|e})|raw }}
+ @endif
{% if 'remove_from_piggy' == logEntry.action %}
- {{ trans('firefly.ale_action_log_remove', {amount: formatAmountBySymbol(logEntry.after.amount, logEntry.after.currency_symbol, logEntry.after.decimal_places, true), name: logEntry.after.piggy|e})|raw }}
- {% endif %}
+ {{ trans('firefly.ale_action_log_remove', {amount: format_amount_by_symbol(logEntry.after.amount, logEntry.after.currency_symbol, logEntry.after.decimal_places, true), name: logEntry.after.piggy|e})|raw }}
+ @endif
</td>
diff --git a/resources/views/list/attachments.twig b/resources/views/list/attachments.twig
index acabe427c3..f18634e666 100644
--- a/resources/views/list/attachments.twig
+++ b/resources/views/list/attachments.twig
@@ -10,10 +10,10 @@
{% if attachment.file_exists %}
<a href="{{ route('attachments.download', attachment.id) }}" class="btn btn-outline-secondary"><span
class="bi bi-download"></span></a>
- {% endif %}
+ @endif
{% if not attachment.file_exists %}
<a href="#" class="btn btn-danger"><span class="bi bi-exclamation-triangle"></span></a>
- {% endif %}
+ @endif
</div>
</td>
<td>
@@ -22,25 +22,25 @@
<a href="{{ route('attachments.view', attachment.id) }}" title="{{ attachment.filename }}">
{% if attachment.title %}
{{ attachment.title }}
- {% else %}
+ @else
{{ attachment.filename }}
- {% endif %}
+ @endif
</a>
({{ attachment.size|filesize }})
{% if null != attachment.notes_text and '' != attachment.notes_text %}
{{ attachment.notes_text|default('')|markdown }}
- {% endif %}
- {% endif %}
+ @endif
+ @endif
{% if not attachment.file_exists %}
<span class="bi bi-exclamation-triangle"></span>
{% if attachment.title %}
{{ attachment.title }}
- {% else %}
+ @else
{{ attachment.filename }}
- {% endif %}
+ @endif
<br>
<span class="text-danger">{{ 'attachment_not_found'|_ }}</span>
- {% endif %}
+ @endif
</td>
</tr>
{% endfor %}
diff --git a/resources/views/list/bills.twig b/resources/views/list/bills.twig
index 8f8ec4d54a..3bc563c557 100644
--- a/resources/views/list/bills.twig
+++ b/resources/views/list/bills.twig
@@ -18,7 +18,7 @@
{% if objectGroup.bills|length > 0 %}
<tbody class="bill-connected-list"
{% if objectGroupOrder != 0 %}data-title="{{ objectGroup.object_group_title }}"
- {% else %}data-title=""{% endif %}>
+ @elsedata-title=""@endif>
<tr>
<td class="hidden-sm hidden-xs">&nbsp;</td>
<td class="hidden-sm hidden-xs">&nbsp;</td>
@@ -40,12 +40,12 @@
<td>
{% if not entry.active %}
<span class="bi bi-ban"></span>
- {% endif %}
+ @endif
<a href="{{ route('subscriptions.show',entry.id) }}" title="{{ entry.name }}">{{ entry.name }}</a>
{# count attachments #}
{% if entry.attachments.count() > 0 %}
<span class="bi bi-paperclip"></span>
- {% endif %}
+ @endif
</td>
<td class="hidden-sm hidden-md hidden-xs rules">
@@ -56,19 +56,19 @@
<a href="{{ route('rules.edit', [rule.id]) }}">
{{ rule.title }}
</a>
- {% if not rule.active %}({{ 'list_inactive_rule'|_|lower }}){% endif %}
+ {% if not rule.active %}({{ 'list_inactive_rule'|_|lower }})@endif
</li>
{% endfor %}
</ul>
- {% endif %}
+ @endif
</td>
<td class="text-right">
- <span class="mr-2" title="{{ formatAmountBySymbol(entry.amount_min, entry.currency_symbol, entry.currency_decimal_places, false)|escape }} -- {{ formatAmountBySymbol(entry.amount_max, entry.currency_symbol, entry.currency_decimal_places, false)|escape }}">
- ~ {{ formatAmountBySymbol((entry.amount_max + entry.amount_min)/2, entry.currency_symbol, entry.currency_decimal_places) }}
+ <span class="mr-2" title="{{ format_amount_by_symbol(entry.amount_min, entry.currency_symbol, entry.currency_decimal_places, false)|escape }} -- {{ format_amount_by_symbol(entry.amount_max, entry.currency_symbol, entry.currency_decimal_places, false)|escape }}">
+ ~ {{ format_amount_by_symbol((entry.amount_max + entry.amount_min)/2, entry.currency_symbol, entry.currency_decimal_places) }}
{% if '0' != entry.pc_amount_max and null != entry.pc_amount_max %}
- (~ {{ formatAmountBySymbol((entry.pc_amount_max + entry.pc_amount_min)/2, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
- {% endif %}
+ (~ {{ format_amount_by_symbol((entry.pc_amount_max + entry.pc_amount_min)/2, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
+ @endif
</span>
</td>
@@ -84,9 +84,9 @@
<td class="expected_in_period hidden-sm hidden-xs">
{% if entry.next_expected_match %}
{{ formatDate(entry.next_expected_match, monthAndDayFormat) }}
- {% endif %}
+ @endif
</td>
- {% endif %}
+ @endif
{#
paid_dates = 0 (bill not paid in period)
@@ -99,12 +99,12 @@
<td class="paid_in_period text-muted">
{{ entry.next_expected_match_diff }}
</td>
- {% else %}
+ @else
<td class="paid_in_period text-warning">
{{ entry.next_expected_match_diff }}
<!-- {{ trans('firefly.bill_expected_date', {date: entry.next_expected_match_diff }) }} -->
</td>
- {% endif %}
+ @endif
<td class="expected_in_period hidden-sm hidden-xs">
{% for date in entry.pay_dates %}
@@ -112,7 +112,7 @@
{% endfor %}
</td>
- {% endif %}
+ @endif
{#
paid_dates >= 0 (bill is paid X times).
@@ -131,43 +131,43 @@
<td class="expected_in_period hidden-sm hidden-xs">
{% if entry.next_expected_match %}
{{ formatDate(entry.next_expected_match, monthAndDayFormat) }}
- {% else %}
+ @else
<span class="text-muted">{{ entry.next_expected_match_diff }}</span>
- {% endif %}
+ @endif
</td>
- {% endif %}
+ @endif
{# bill is not active #}
{% if not entry.active %}
<td class="paid_in_period text-muted">
~
</td>
<td class="expected_in_period text-muted hidden-sm hidden-xs">~</td>
- {% endif %}
+ @endif
<td class="hidden-sm hidden-xs">
{{ ('repeat_freq_'~entry.repeat_freq)|_ }}
{% if entry.skip > 0 %}
{{ 'skips_over'|_ }} {{ entry.skip }}
- {% endif %}
+ @endif
{% if entry.end_date %}
<br>
{% if carbonize(entry.end_date).lte(today) %}
<span class="text-danger">
{{ trans('firefly.bill_end_index_line', {date: carbonize(entry.end_date).isoFormat(monthAndDayFormat) }) }}
</span>
- {% else %}
+ @else
{{ trans('firefly.bill_end_index_line', {date: carbonize(entry.end_date).isoFormat(monthAndDayFormat) }) }}
- {% endif %}
- {% endif %}
+ @endif
+ @endif
{% if entry.extension_date %}
<br>
{% if carbonize(entry.extension_date).lte(today) %}
<span class="text-danger">
{{ trans('firefly.bill_extension_index_line', {date: carbonize(entry.extension_date).isoFormat(monthAndDayFormat) }) }}
</span>
- {% else %}
+ @else
{{ trans('firefly.bill_extension_index_line', {date: carbonize(entry.extension_date).isoFormat(monthAndDayFormat) }) }}
- {% endif %}
- {% endif %}
+ @endif
+ @endif
</td>
</tr>
{% endfor %}
@@ -180,13 +180,13 @@
<small>{{ 'sum'|_ }} ({{ sum.currency_name }}) ({{ 'active_exp_bills_only'|_ }})</small>
</td>
<td class="text-right"> <!-- amount -->
- {{ formatAmountBySymbol(sum.avg, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.avg, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td>&nbsp;</td> <!-- paid in period -->
<td class="hidden-sm hidden-xs">&nbsp;</td> <!-- next expected match -->
<td class="hidden-sm hidden-xs">&nbsp;</td><!-- repeats -->
</tr>
- {% endif %}
+ @endif
{% if '0' != sum.total_left_to_pay %}
<tr>
<td class="hidden-sm hidden-xs">&nbsp;</td> <!-- handle -->
@@ -195,13 +195,13 @@
<small>{{ 'sum'|_ }} ({{ sum.currency_name }}) ({{ 'left_to_pay_active_bills'|_ }})</small>
</td>
<td class="text-right"> <!-- amount -->
- {{ formatAmountBySymbol(sum.total_left_to_pay, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.total_left_to_pay, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td>&nbsp;</td> <!-- paid in period -->
<td class="hidden-sm hidden-xs">&nbsp;</td> <!-- next expected match -->
<td class="hidden-sm hidden-xs">&nbsp;</td><!-- repeats -->
</tr>
- {% endif %}
+ @endif
{% if '0' != sum.per_period %}
<tr>
<td class="hidden-sm hidden-xs">&nbsp;</td> <!-- handle -->
@@ -211,16 +211,16 @@
({{ 'active_bills_only'|_ }})</small>
</td>
<td class="text-right"> <!-- amount -->
- {{ formatAmountBySymbol(sum.per_period, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.per_period, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td>&nbsp;</td> <!-- paid in period -->
<td class="hidden-sm hidden-xs">&nbsp;</td> <!-- next expected match -->
<td class="hidden-sm hidden-xs">&nbsp;</td><!-- repeats -->
</tr>
- {% endif %}
+ @endif
{% endfor %}
</tbody>
- {% endif %}
+ @endif
{% endfor %}
{% if totals|length > 0 %}
<tfoot>
@@ -236,13 +236,13 @@
<small>{{ 'sum'|_ }} ({{ sum.currency_name }}) ({{ 'active_exp_bills_only_total'|_ }})</small>
</td>
<td class="text-right"> <!-- amount -->
- {{ formatAmountBySymbol(sum.avg, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.avg, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td>&nbsp;</td> <!-- paid in period -->
<td class="hidden-sm hidden-xs">&nbsp;</td> <!-- next expected match -->
<td class="hidden-sm hidden-xs">&nbsp;</td><!-- repeats -->
</tr>
- {% endif %}
+ @endif
{% if '0' != sum.per_period %}
<tr>
<td class="hidden-sm hidden-xs">&nbsp;</td> <!-- handle -->
@@ -252,16 +252,16 @@
({{ 'active_bills_only_total'|_ }})</small>
</td>
<td class="text-right"> <!-- amount -->
- {{ formatAmountBySymbol(sum.per_period, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.per_period, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td>&nbsp;</td> <!-- paid in period -->
<td class="hidden-sm hidden-xs">&nbsp;</td> <!-- next expected match -->
<td class="hidden-sm hidden-xs">&nbsp;</td><!-- repeats -->
</tr>
- {% endif %}
+ @endif
{% endfor %}
</tfoot>
- {% endif %}
+ @endif
</table>
<div class="pl-2">
diff --git a/resources/views/list/categories.twig b/resources/views/list/categories.twig
index 02a879002f..5de4401a60 100644
--- a/resources/views/list/categories.twig
+++ b/resources/views/list/categories.twig
@@ -27,17 +27,17 @@
<a href="{{ route('categories.show', category.id) }}" title="{{ category.name }}">{{ category.name }}</a>
{% if category.attachments.count() > 0 %}
<span class="bi bi-paperclip"></span>
- {% endif %}
+ @endif
</td>
{% if category.lastActivity %}
<td class="hidden-sm hidden-xs" data-value="{{ category.lastActivity.format('Y-m-d H-i-s') }}">
{{ category.lastActivity.isoFormat(monthAndDayFormat) }}
</td>
- {% else %}
+ @else
<td class="hidden-sm hidden-xs" data-value="0000-00-00 00-00-00">
<em>{{ 'never'|_ }}</em>
</td>
- {% endif %}
+ @endif
</tr>
{% endfor %}
</tbody>
diff --git a/resources/views/list/groups-tiny.twig b/resources/views/list/groups-tiny.twig
index cf05f3b03f..ff058b95e0 100644
--- a/resources/views/list/groups-tiny.twig
+++ b/resources/views/list/groups-tiny.twig
@@ -3,86 +3,86 @@
<a class="list-group-item" href="{{ route('transactions.show', [transaction.transaction_group_id]) }}">
{% if transaction.transaction_group_title %}
{{ transaction.transaction_group_title }}:
- {% endif %}
+ @endif
{{ transaction.description }}
<span class="pull-right small">
{% if transaction.transaction_type_type == 'Deposit' %}
- {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ {{ format_amount_by_symbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ @endif
{% if convertToPrimary and null != transaction.pc_amount %}
- ({{ formatAmountBySymbol(transaction.pc_amount*-1, primaryCurrency.symbol, foreign_currency_.decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.pc_amount*-1, primaryCurrency.symbol, foreign_currency_.decimal_places) }})
+ @endif
{% elseif transaction.transaction_type_type == 'Transfer' %}
<span class="text-info money-transfer">
{# transfer away: #}
{% if transaction.source_account_id == account.id %}
- {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places, false) }}
+ {{ format_amount_by_symbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places, false) }}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }})
+ @endif
{% if convertToPrimary and null != transaction.pc_amount %}
- ({{ formatAmountBySymbol(transaction.pc_amount*-1, primaryCurrency.symbol, foreign_currency_.decimal_places) }})
- {% endif %}
- {% else %}
- {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places, false) }}
+ ({{ format_amount_by_symbol(transaction.pc_amount*-1, primaryCurrency.symbol, foreign_currency_.decimal_places) }})
+ @endif
+ @else
+ {{ format_amount_by_symbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places, false) }}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }})
+ @endif
{% if convertToPrimary and null != transaction.pc_amount %}
- ({{ formatAmountBySymbol(transaction.pc_amount*-1, primaryCurrency.symbol, foreign_currency_.decimal_places) }})
- {% endif %}
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.pc_amount*-1, primaryCurrency.symbol, foreign_currency_.decimal_places) }})
+ @endif
+ @endif
{# transfer to #}
</span>
{% elseif transaction.transaction_type_type == 'Opening balance' %}
{% if transaction.source_account_type == 'Initial balance account' %}
- {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ {{ format_amount_by_symbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ @endif
{% if convertToPrimary and null != transaction.pc_amount %}
- ({{ formatAmountBySymbol(transaction.pc_amount*-1, primaryCurrency.symbol, foreign_currency_.decimal_places) }})
- {% endif %}
- {% else %}
- {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ ({{ format_amount_by_symbol(transaction.pc_amount*-1, primaryCurrency.symbol, foreign_currency_.decimal_places) }})
+ @endif
+ @else
+ {{ format_amount_by_symbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ @endif
{% if convertToPrimary and null != transaction.pc_amount %}
- ({{ formatAmountBySymbol(transaction.pc_amount, primaryCurrency.symbol, foreign_currency_.decimal_places) }})
- {% endif %}
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.pc_amount, primaryCurrency.symbol, foreign_currency_.decimal_places) }})
+ @endif
+ @endif
{% elseif transaction.transaction_type_type == 'Reconciliation' %}
{% if transaction.source_account_type == 'Reconciliation account' %}
- {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ {{ format_amount_by_symbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ @endif
{% if convertToPrimary and null != transaction.pc_amount %}
- ({{ formatAmountBySymbol(transaction.pc_amount*-1, primaryCurrency.symbol, foreign_currency_.decimal_places) }})
- {% endif %}
- {% else %}
- {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ ({{ format_amount_by_symbol(transaction.pc_amount*-1, primaryCurrency.symbol, foreign_currency_.decimal_places) }})
+ @endif
+ @else
+ {{ format_amount_by_symbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ @endif
{% if convertToPrimary and null != transaction.pc_amount %}
- ({{ formatAmountBySymbol(transaction.pc_amount, primaryCurrency.symbol, foreign_currency_.decimal_places) }})
- {% endif %}
- {% endif %}
- {% else %}
- {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ ({{ format_amount_by_symbol(transaction.pc_amount, primaryCurrency.symbol, foreign_currency_.decimal_places) }})
+ @endif
+ @endif
+ @else
+ {{ format_amount_by_symbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ @endif
{% if convertToPrimary and null != transaction.pc_amount %}
- ({{ formatAmountBySymbol(transaction.pc_amount, primaryCurrency.symbol, foreign_currency_.decimal_places) }})
- {% endif %}
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.pc_amount, primaryCurrency.symbol, foreign_currency_.decimal_places) }})
+ @endif
+ @endif
</span>
</a>
{% endfor %}
diff --git a/resources/views/list/groups.twig b/resources/views/list/groups.twig
index 2d9f066d90..40a0d681d0 100644
--- a/resources/views/list/groups.twig
+++ b/resources/views/list/groups.twig
@@ -3,9 +3,9 @@
<tr>
{% if showCategory or showBudget %}
<td colspan="7" class="no-margin-pagination">{{ groups.links('pagination.bootstrap-4')|raw }}</td>
- {% else %}
+ @else
<td colspan="6" class="no-margin-pagination">{{ groups.links('pagination.bootstrap-4')|raw }}</td>
- {% endif %}
+ @endif
<td colspan="1" class="hidden-xs">
<!-- Single button -->
<div class="btn-group btn-group-sm action-menu pull-right hidden">
@@ -35,16 +35,16 @@
<th class="text-right">{{ trans('list.amount') }}</th>
{% if fireflyiiiconfig('use_running_balance', true) %}
<th class="text-right">{{ trans('list.running_balance') }}</th>
- {% endif %}
+ @endif
<th>{{ trans('list.date') }}</th>
<th>{{ trans('list.source_account') }}</th>
<th>{{ trans('list.destination_account') }}</th>
{% if showCategory %}
<th class="hidden-xs">{{ trans('list.category') }}</th>
- {% endif %}
+ @endif
{% if showBudget %}
<th class="hidden-xs">{{ trans('list.budget') }}</th>
- {% endif %}
+ @endif
<th class="hidden-xs">&nbsp;</th><!-- actions -->
<th class="hidden-xs">&nbsp;</th><!-- checkbox -->
</tr>
@@ -62,35 +62,35 @@
<td colspan="1" class="text-right top-light-border">
{% for sum in group.sums %}
{% if group.transaction_type == 'Deposit' %}
- {{ formatAmountBySymbol(sum.amount*-1, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.amount*-1, sum.currency_symbol, sum.currency_decimal_places) }}
{% if convertToPrimary and 0 != sum.pc_amount %}
- (~ {{ formatAmountBySymbol(sum.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
- {% endif %}
- {% if loop.index != group.sums|length %},{% endif %}
+ (~ {{ format_amount_by_symbol(sum.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
+ @endif
+ {% if loop.index != group.sums|length %},@endif
{% elseif group.transaction_type == 'Transfer' %}
<span class="text-info money-transfer">
- {{ formatAmountBySymbol(sum.amount*-1, sum.currency_symbol, sum.currency_decimal_places, false) }}
+ {{ format_amount_by_symbol(sum.amount*-1, sum.currency_symbol, sum.currency_decimal_places, false) }}
{% if convertToPrimary and 0 != sum.pc_amount %}
- (~ {{ formatAmountBySymbol(sum.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
- {% endif %}
- {% if loop.index != group.sums|length %},{% endif %}
+ (~ {{ format_amount_by_symbol(sum.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
+ @endif
+ {% if loop.index != group.sums|length %},@endif
</span>
- {% else %}
- {{ formatAmountBySymbol(sum.amount, sum.currency_symbol, sum.currency_decimal_places) }}
+ @else
+ {{ format_amount_by_symbol(sum.amount, sum.currency_symbol, sum.currency_decimal_places) }}
{% if convertToPrimary and 0 != sum.pc_amount %}
- (~ {{ formatAmountBySymbol(sum.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
- {% endif %}
- {% if loop.index != group.sums|length %},{% endif %}
- {% endif %}
+ (~ {{ format_amount_by_symbol(sum.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
+ @endif
+ {% if loop.index != group.sums|length %},@endif
+ @endif
{% endfor %}
</td>
<!-- column to span accounts + extra fields -->
{% if showCategory or showBudget %}
<td class="top-light-border" colspan="3">&nbsp;</td>
- {% else %}
+ @else
<td class="top-light-border" colspan="2">&nbsp;</td>
- {% endif %}
+ @endif
<td class="top-light-border hidden-xs" colspan="2">
<div class="btn-group btn-group-sm pull-right">
<button type="button" class="btn btn-outline-secondary dropdown-toggle" data-toggle="dropdown"
@@ -110,169 +110,169 @@
</td>
<td class="top-light-border hidden-xs">&nbsp;</td>
</tr>
- {% endif %}
+ @endif
{% for index, transaction in group.transactions %}
{% set className="" %}
{% if group.transactions|length == loop.index and group.count > 1 %}
{% set className="bottom-light-border" %}
- {% endif %}
+ @endif
<tr data-date="{{ transaction.date.format('Y-m-d') }}" data-count="{{ group.count }}"
data-id="{{ group.id }}">
<td class="hidden-xs {{ className }}">
{% if transaction.transaction_type_type == 'Withdrawal' %}
<span class="bi bi-arrow-left"
title="{{ trans('firefly.Withdrawal') }}"></span>
- {% endif %}
+ @endif
{% if transaction.transaction_type_type == 'Deposit' %}
<span class="bi bi-arrow-right"
title="{{ trans('firefly.Deposit') }}"></span>
- {% endif %}
+ @endif
{% if transaction.transaction_type_type == 'Transfer' %}
<span class="bi bi-arrow-left-right" title="{{ trans('firefly.Transfer') }}"></span>
- {% endif %}
+ @endif
{% if transaction.transaction_type_type == 'Reconciliation' %}
<span class="bi bi-calculator"
title="{{ trans('firefly.reconciliation_transaction') }}"></span>
- {% endif %}
+ @endif
{% if transaction.transaction_type_type == 'Opening balance' %}
<span class="bi bi-star"
title="{{ trans('firefly.Opening balance') }}"></span>
- {% endif %}
+ @endif
{% if transaction.transaction_type_type == 'Liability credit' %}
<span class="bi bi-star"
title="{{ trans('firefly.Liability credit') }}"></span>
- {% endif %}
+ @endif
</td>
<td class="{{ className }}">
{% if transaction.reconciled %}
<span class="bi bi-check"></span>
- {% endif %}
+ @endif
{% if transaction.attachments|length > 0 %}
<span class="bi bi-paperclip"></span>
- {% endif %}
+ @endif
{% if group.count == 1 %}
<a href="{{ route('transactions.show', [group.id]) }}" title="{{ transaction.description }}">
- {% endif %}
+ @endif
{{ transaction.description }}
{% if group.count == 1 %}
</a>
- {% endif %}
+ @endif
</td>
<td class="{{ className }} text-right">
{# deposit #}
{% if transaction.transaction_type_type == 'Deposit' %}
{# amount of deposit #}
- {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ {{ format_amount_by_symbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }}
{# foreign amount of deposit #}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ @endif
{# primary currency amount of deposit #}
{% if convertToPrimary and 0 != transaction.pc_amount %}
- (~ {{ formatAmountBySymbol(transaction.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
- {% endif %}
+ (~ {{ format_amount_by_symbol(transaction.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
+ @endif
{# transfer #}
{% elseif transaction.transaction_type_type == 'Transfer' %}
<span class="text-info money-transfer">
{# amount of transfer #}
{% if transaction.source_account_id == account.id %}
- {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places, false) }}
- {% endif %}
+ {{ format_amount_by_symbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places, false) }}
+ @endif
{% if transaction.source_account_id != account.id %}
- {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places, false) }}
- {% endif %}
+ {{ format_amount_by_symbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places, false) }}
+ @endif
{# foreign amount of transfer #}
{% if null != transaction.foreign_amount and transaction.source_account_id == account.id %}
- ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }})
+ @endif
{% if null != transaction.foreign_amount and transaction.source_account_id != account.id %}
- ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }})
+ @endif
{# primary currency amount of transfer #}
{% if convertToPrimary and 0 != transaction.pc_amount %}
- (~ {{ formatAmountBySymbol(transaction.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
- {% endif %}
+ (~ {{ format_amount_by_symbol(transaction.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
+ @endif
</span>
{# opening balance #}
{% elseif transaction.transaction_type_type == 'Opening balance' %}
{% if transaction.source_account_type == 'Initial balance account' %}
- {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ {{ format_amount_by_symbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ @endif
{% if convertToPrimary and 0 != transaction.pc_amount %}
- (~ {{ formatAmountBySymbol(transaction.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
- {% endif %}
- {% else %}
- {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ (~ {{ format_amount_by_symbol(transaction.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
+ @endif
+ @else
+ {{ format_amount_by_symbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ @endif
{% if convertToPrimary and 0 != transaction.pc_amount %}
- (~ {{ formatAmountBySymbol(transaction.pc_amount, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
- {% endif %}
- {% endif %}
+ (~ {{ format_amount_by_symbol(transaction.pc_amount, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
+ @endif
+ @endif
{# reconciliation #}
{% elseif transaction.transaction_type_type == 'Reconciliation' %}
{% if transaction.source_account_type == 'Reconciliation account' %}
- {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ {{ format_amount_by_symbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ @endif
{% if convertToPrimary and 0 != transaction.pc_amount %}
- (~ {{ formatAmountBySymbol(transaction.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
- {% endif %}
- {% else %}
- {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ (~ {{ format_amount_by_symbol(transaction.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
+ @endif
+ @else
+ {{ format_amount_by_symbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ @endif
{% if convertToPrimary and 0 != transaction.pc_amount %}
- (~ {{ formatAmountBySymbol(transaction.pc_amount, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
- {% endif %}
- {% endif %}
+ (~ {{ format_amount_by_symbol(transaction.pc_amount, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
+ @endif
+ @endif
{# liability credit #}
{% elseif transaction.transaction_type_type == 'Liability credit' %}
{% if transaction.source_account_type == 'Liability credit' %}
- {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ {{ format_amount_by_symbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ @endif
{% if convertToPrimary and 0 != transaction.pc_amount %}
- (~ {{ formatAmountBySymbol(transaction.pc_amount, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
- {% endif %}
- {% else %}
- {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ (~ {{ format_amount_by_symbol(transaction.pc_amount, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
+ @endif
+ @else
+ {{ format_amount_by_symbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ @endif
{% if convertToPrimary and 0 != transaction.pc_amount %}
- (~ {{ formatAmountBySymbol(transaction.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
- {% endif %}
- {% endif %}
+ (~ {{ format_amount_by_symbol(transaction.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
+ @endif
+ @endif
{# THE REST #}
- {% else %}
+ @else
{# amount of withdrawal #}
- {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ {{ format_amount_by_symbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}
{# foreign amount of withdrawal #}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ @endif
{# primary currency amount of withdrawal, if not in foreign currency #}
{% if convertToPrimary and 0 != transaction.pc_amount and primaryCurrency.id != transaction.foreign_currency_id %}
- (~ {{ formatAmountBySymbol(transaction.pc_amount, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
- {% endif %}
- {% endif %}
+ (~ {{ format_amount_by_symbol(transaction.pc_amount, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
+ @endif
+ @endif
</td>
{% if (fireflyiiiconfig('use_running_balance', true)) %}
<td class=" {{ className }} text-right">
@@ -280,13 +280,13 @@
{% if (null == transaction.balance_dirty or false == transaction.balance_dirty) and null != transaction.destination_balance_after and null != transaction.source_balance_after %}
{% if transaction.transaction_type_type == 'Deposit' %}
{% if transaction.source_account_id == account.id %}
- <span title="Deposit, source">{{ formatAmountBySymbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>
- {% else %}
+ <span title="Deposit, source">{{ format_amount_by_symbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>
+ @else
{% if transaction.source_account_type == 'Revenue account' %}
- <span title="Deposit from revenue">{{ formatAmountBySymbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>
- {% else %}
- <span title="Deposit from liab">{{ formatAmountBySymbol(transaction.destination_balance_after, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }}</span>
- {% endif %}
+ <span title="Deposit from revenue">{{ format_amount_by_symbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>
+ @else
+ <span title="Deposit from liab">{{ format_amount_by_symbol(transaction.destination_balance_after, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }}</span>
+ @endif
{# if this is a deposit from revenue account, use the destination account currency? For #12043 and #12169 #}
{# otherwise, keep at source account #}
{# changed from normal currency_symbol to foreign_currency_symbol for #12043 #}
@@ -298,86 +298,86 @@
{% if 'Loan' == transaction.destination_account_type or 'Mortgage' == transaction.destination_account_type or 'Debt' == transaction.destination_account_type %}
{% if currency.id == transaction.currency_id %}
{% if account.id == transaction.source_account_id %}
- <span title="Withdrawal, liab, source">{{ formatAmountBySymbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>
+ <span title="Withdrawal, liab, source">{{ format_amount_by_symbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>
{% elseif account.id == transaction.destination_account_id %}
- <span title="Withdrawal, liab, dest">{{ formatAmountBySymbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>
- {% else %}
+ <span title="Withdrawal, liab, dest">{{ format_amount_by_symbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>
+ @else
-
- {% endif %}
- {% endif %}
+ @endif
+ @endif
{% if currency.id == transaction.foreign_currency_id and null != transaction.destination_balance_after and null != transaction.destination_balance_after %}
- <span title="Withdrawal, liab, dest 2">{{ formatAmountBySymbol(transaction.destination_balance_after, transaction.foreign_currency_symbol ?? transaction.currency_symbol, transaction.foreign_currency_decimal_places ?? transaction.currency_decimal_places) }}</span>
- {% endif %}
+ <span title="Withdrawal, liab, dest 2">{{ format_amount_by_symbol(transaction.destination_balance_after, transaction.foreign_currency_symbol ?? transaction.currency_symbol, transaction.foreign_currency_decimal_places ?? transaction.currency_decimal_places) }}</span>
+ @endif
{# withdrawal into an expense account #}
- {% else %}
+ @else
{% if account.id == transaction.source_account_id %}
- <span title="Withdrawal, source">{{ formatAmountBySymbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>
+ <span title="Withdrawal, source">{{ format_amount_by_symbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>
{% elseif account.id == transaction.destination_account_id %}
- <span title="Withdrawal, dest">{{ formatAmountBySymbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>
- {% else %}
+ <span title="Withdrawal, dest">{{ format_amount_by_symbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>
+ @else
-
- {% endif %}
- {% endif %}
+ @endif
+ @endif
{% elseif transaction.transaction_type_type == 'Opening balance' %}
{% if account.id == transaction.source_account_id %}
- <span title="Opening balance, src">{{ formatAmountBySymbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>
+ <span title="Opening balance, src">{{ format_amount_by_symbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>
{% elseif account.id == transaction.destination_account_id %}
- <span title="Opening balance, dest">{{ formatAmountBySymbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>
- {% else %}
+ <span title="Opening balance, dest">{{ format_amount_by_symbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>
+ @else
-
- {% endif %}
+ @endif
{% elseif transaction.transaction_type_type == 'Transfer' %}
{% if account.id == transaction.source_account_id %}
- <span title="Transfer, source">{{ formatAmountBySymbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>
- {% else %}
+ <span title="Transfer, source">{{ format_amount_by_symbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>
+ @else
{% if null == transaction.foreign_currency_id %}
- <span title="Transfer, dest, normal currency">{{ formatAmountBySymbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>
- {% endif %}
+ <span title="Transfer, dest, normal currency">{{ format_amount_by_symbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>
+ @endif
{% if null != transaction.foreign_currency_id %}
- <span title="Transfer, dest, foreign currency">{{ formatAmountBySymbol(transaction.destination_balance_after, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }}</span>
- {% endif %}
- {% endif %}
- {% else %}
+ <span title="Transfer, dest, foreign currency">{{ format_amount_by_symbol(transaction.destination_balance_after, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }}</span>
+ @endif
+ @endif
+ @else
&nbsp;
- {% endif %}
- {% endif %}
+ @endif
+ @endif
</td>
- {% endif %}
+ @endif
<td class="{{ className }}">
{{ transaction.date.isoFormat(monthAndDayFormat) }}
</td>
<td class="{{ className }}">
{% if 'Cash account' == transaction.source_account_type %}
<span class="text-success">({{ 'cash'|_ }})</span>
- {% else %}
+ @else
<a href="{{ route('accounts.show', [transaction.source_account_id|default(1)]) }}"
title="{{ transaction.source_account_iban|default(transaction.source_account_name) }}">{{ transaction.source_account_name }}</a>
- {% endif %}
+ @endif
</td>
<td class="{{ className }}">
{% if 'Cash account' == transaction.destination_account_type %}
<span class="text-success">({{ 'cash'|_ }})</span>
- {% else %}
+ @else
<a href="{{ route('accounts.show', [transaction.destination_account_id|default(1)]) }}"
title="{{ transaction.destination_account_iban|default(transaction.destination_account_name) }}">{{ transaction.destination_account_name }}</a>
- {% endif %}
+ @endif
</td>
{% if showCategory %}
<td class="hidden-xs {{ className }}">
{% if transaction.category_id %}
<a href="{{ route('categories.show', [transaction.category_id]) }}"
title="{{ transaction.category_name }}">{{ transaction.category_name }}</a>
- {% endif %}
+ @endif
</td>
- {% endif %}
+ @endif
{% if showBudget %}
<td class="hidden-xs {{ className }}">
{% if transaction.budget_id %}
<a href="{{ route('budgets.show', [transaction.budget_id]) }}"
title="{{ transaction.budget_name }}">{{ transaction.budget_name }}</a>
- {% endif %}
+ @endif
</td>
- {% endif %}
+ @endif
{% if group.count == 1 %}
<td class="hidden-xs {{ className }}">
@@ -391,7 +391,7 @@
{% if transaction.transaction_type_type != 'Opening balance' and transaction.transaction_type_type != 'Liability credit' %}
<li><a href="{{ route('transactions.delete', [group.id]) }}"><span
class="bi bi-trash"></span> {{ __('firefly.delete') }}</a></li>
- {% endif %}
+ @endif
{% if transaction.transaction_type_type != 'Reconciliation' and transaction.transaction_type_type != 'Opening balance' and transaction.transaction_type_type != 'Liability credit' %}
<li><a href="#" data-id="{{ group.id }}" class="clone-transaction"><span
class="bi bi-copy"></span> {{ 'clone'|_ }}</a></li>
@@ -401,17 +401,17 @@
<a href="{{ route('rules.create-from-journal', [transaction.transaction_journal_id]) }}"><span
class="bi bi-shuffle"></span> {{ 'create_rule_from_transaction'|_ }}
</a></li>
- {% endif %}
+ @endif
</ul>
</div>
</td>
- {% endif %}
+ @endif
{% if group.count != 1 %}
<td class="hidden-xs {{ className }}">
&nbsp;
</td>
- {% endif %}
+ @endif
<td class="hidden-xs {{ className }}">
{% if transaction.transaction_type_type != 'Reconciliation' and transaction.transaction_type_type != 'Opening balance' and transaction.transaction_type_type != 'Liability credit' %}
<div class="pull-right">
@@ -420,7 +420,7 @@
name="journals[{{ transaction.transaction_journal_id }}]"
type="checkbox" class="mass-select form-check-inline"
data-value="{{ transaction.transaction_journal_id }}"/>
- {% endif %}
+ @endif
</div>
</td>
</tr>
@@ -452,9 +452,9 @@
<tr>
{% if showCategory or showBudget %}
<td colspan="9" class="no-margin-pagination">{{ groups.links('pagination.bootstrap-4')|raw }}</td>
- {% else %}
+ @else
<td colspan="8" class="no-margin-pagination">{{ groups.links('pagination.bootstrap-4')|raw }}</td>
- {% endif %}
+ @endif
</tr>
</tfoot>
</table>
diff --git a/resources/views/list/periods.twig b/resources/views/list/periods.twig
index cc813b655f..d895e567f8 100644
--- a/resources/views/list/periods.twig
+++ b/resources/views/list/periods.twig
@@ -8,21 +8,21 @@
<table class="table table-hover">
{% if period.total_transactions > 0 %}
<tr>
- <td class="third">{{ 'transactions'|_ }}</td>
+ <td class="third">{{ __('firefly.transactions') }}</td>
<td class="text-right">{{ period.total_transactions }}</td>
</tr>
- {% endif %}
+ @endif
{% for entry in period.spent %}
{% if entry.amount != 0 %}
<tr>
<td class="third">{{ 'spent'|_ }}</td>
<td class="text-right">
<span title="{{ entry.count }}">
- {{ formatAmountBySymbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places) }}
+ {{ format_amount_by_symbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places) }}
</span>
</td>
</tr>
- {% endif %}
+ @endif
{% endfor %}
{% for entry in period.earned %}
@@ -32,14 +32,14 @@
<td class="text-right">
<span title="{{ entry.count }}">
{% if entry.amount < 0 %}
- {{ formatAmountBySymbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}
- {% else %}
- {{ formatAmountBySymbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places) }}
- {% endif %}
+ {{ format_amount_by_symbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}
+ @else
+ {{ format_amount_by_symbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places) }}
+ @endif
</span>
</td>
</tr>
- {% endif %}
+ @endif
{% endfor %}
{% for entry in period.transferred %}
@@ -48,11 +48,11 @@
<td class="third">{{ 'transferred'|_ }}</td>
<td class="text-right">
<span title="{{ entry.count }}">
- {{ formatAmountBySymbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}
+ {{ format_amount_by_symbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}
</span>
</td>
</tr>
- {% endif %}
+ @endif
{% endfor %}
{% for entry in period.transferred_away %}
@@ -62,14 +62,14 @@
<td class="text-right">
<span title="{{ entry.count }}">
{% if entry.amount < 0 %}
- {{ formatAmountBySymbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places) }}
- {% else %}
- {{ formatAmountBySymbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}
- {% endif %}
+ {{ format_amount_by_symbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places) }}
+ @else
+ {{ format_amount_by_symbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}
+ @endif
</span>
</td>
</tr>
- {% endif %}
+ @endif
{% endfor %}
{% for entry in period.transferred_in %}
@@ -79,14 +79,14 @@
<td class="text-right">
<span title="{{ entry.count }}">
{% if entry.amount < 0 %}
- {{ formatAmountBySymbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}
- {% else %}
- {{ formatAmountBySymbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places) }}
- {% endif %}
+ {{ format_amount_by_symbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}
+ @else
+ {{ format_amount_by_symbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places) }}
+ @endif
</span>
</td>
</tr>
- {% endif %}
+ @endif
{% endfor %}
</table>
</div>
diff --git a/resources/views/list/piggy-bank-events.twig b/resources/views/list/piggy-bank-events.twig
index d31b739d4b..8dac649a1d 100644
--- a/resources/views/list/piggy-bank-events.twig
+++ b/resources/views/list/piggy-bank-events.twig
@@ -2,7 +2,7 @@
<tr>
{% if showPiggyBank %}
<th>{{ trans('list.piggy_bank') }}</th>
- {% endif %}
+ @endif
<th>{{ trans('list.date') }}</th>
<th>{{ trans('list.amount') }}</th>
</tr>
@@ -12,22 +12,22 @@
<td>
<a href="{{ route('piggy-banks.show',event.piggyBank.id) }}">{{ event.piggyBank.name }}</a>
</td>
- {% endif %}
+ @endif
<td>
{% if event.transaction_journal_id %}
<a href="{{ route('transactions.show',event.transactionJournal.transaction_group_id) }}"
title="{{ event.transactionJournal.description }}">{{ event.date.isoFormat(monthAndDayFormat) }}</a>
- {% else %}
+ @else
{{ event.date.isoFormat(monthAndDayFormat) }}
- {% endif %}
+ @endif
</td>
<td class="text-right">
{% if event.amount < 0 %}
- <span class="text-danger money-negative">{{ trans('firefly.removed_amount', {amount: formatAmountBySymbol(event.amount,event.piggyBank.transactionCurrency.symbol, event.piggyBank.transactionCurrency.decimal_places, false)})|raw }}</span>
- {% else %}
- <span class="text-success money-positive">{{ trans('firefly.added_amount', {amount: formatAmountBySymbol(event.amount, event.piggyBank.transactionCurrency.symbol, event.piggyBank.transactionCurrency.decimal_places, false)})|raw }}</span>
- {% endif %}
+ <span class="text-danger money-negative">{{ trans('firefly.removed_amount', {amount: format_amount_by_symbol(event.amount,event.piggyBank.transactionCurrency.symbol, event.piggyBank.transactionCurrency.decimal_places, false)})|raw }}</span>
+ @else
+ <span class="text-success money-positive">{{ trans('firefly.added_amount', {amount: format_amount_by_symbol(event.amount, event.piggyBank.transactionCurrency.symbol, event.piggyBank.transactionCurrency.decimal_places, false)})|raw }}</span>
+ @endif
</td>
</tr>
{% endfor %}
diff --git a/resources/views/list/piggy-banks.twig b/resources/views/list/piggy-banks.twig
index 5e0dc37272..e5fdccd8fe 100644
--- a/resources/views/list/piggy-banks.twig
+++ b/resources/views/list/piggy-banks.twig
@@ -13,7 +13,7 @@
{% for objectGroupOrder, objectGroup in piggyBanks %}
{% if objectGroup.piggy_banks|length > 0 %}
- <tbody class="piggy-connected-list" {% if objectGroupOrder != 0 %}data-title="{{ objectGroup.object_group_title }}"{% else %}data-title=""{% endif %}>
+ <tbody class="piggy-connected-list" {% if objectGroupOrder != 0 %}data-title="{{ objectGroup.object_group_title }}"@elsedata-title=""@endif>
<tr>
<td colspan="2">&nbsp;</td>
<td colspan="8"><small>{{ objectGroup.object_group_title }}</small></td>
@@ -43,21 +43,21 @@
<a href="{{ route('piggy-banks.show', piggy.id) }}" title="{{ piggy.account_name }}">{{ piggy.name }}</a>
{% if piggy.attachments.count() > 0 %}
<span class="bi bi-paperclip"></span>
- {% endif %}
+ @endif
</td>
<td class="text-right piggySaved">
<span title="Saved so far" class="text-right">
- {{ formatAmountBySymbol(piggy.current_amount,piggy.currency_symbol,piggy.currency_decimal_places) }}
+ {{ format_amount_by_symbol(piggy.current_amount,piggy.currency_symbol,piggy.currency_decimal_places) }}
{% if convertToPrimary and piggy.currency_id != primaryCurrency.id and null != piggy.pc_current_amount %}
- ({{ formatAmountBySymbol(piggy.pc_current_amount,primaryCurrency.symbol,primaryCurrency.decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(piggy.pc_current_amount,primaryCurrency.symbol,primaryCurrency.decimal_places) }})
+ @endif
</span>
</td>
<td class="hidden-sm hidden-xs text-right forty-px">
{% if piggy.current_amount > 0 %}
<a href="{{ route('piggy-banks.remove-money', piggy.id) }}" class="btn btn-outline-secondary btn-xs removeMoney" data-id="{{ piggy.id }}">
<span data-id="{{ piggy.id }}" class="fa fa-minus"></span></a>
- {% endif %}
+ @endif
</td>
<td class="hidden-sm hidden-xs piggyBar">
@@ -68,14 +68,14 @@
class="progress-bar progress-bar-success width-{{ max(30, piggy.percentage)|round }}"
{% elseif piggy.percentage == 0 %}
class="progress-bar progress-bar-warning width-{{ max(30, piggy.percentage)|round }}"
- {% else %}
+ @else
class="progress-bar progress-bar-info width-{{ max(30, piggy.percentage)|round }}"
- {% endif %}
+ @endif
role="progressbar" aria-valuenow="{{ piggy.percentage }}" aria-valuemin="0" aria-valuemax="100">
{{ piggy.percentage }}%
</div>
</div>
- {% endif %}
+ @endif
</td>
@@ -84,31 +84,31 @@
{% if piggy.left_to_save > 0 or null == piggy.left_to_save %}
<a href="{{ route('piggy-banks.add-money', piggy.id) }}" class="btn btn-outline-secondary btn-xs addMoney" data-id="{{ piggy.id }}">
<span data-id="{{ piggy.id }}" class="bi bi-plus-circle"></span></a>
- {% endif %}
+ @endif
</td>
<td class="hidden-sm hidden-xs text-right">
{% if null != piggy.target_amount and 0 != piggy.target_amount %}
- <span title="{{ 'target_amount'|_ }}">{{ formatAmountBySymbol(piggy.target_amount,piggy.currency_symbol,piggy.currency_decimal_places) }}</span>
+ <span title="{{ 'target_amount'|_ }}">{{ format_amount_by_symbol(piggy.target_amount,piggy.currency_symbol,piggy.currency_decimal_places) }}</span>
{% if convertToPrimary and piggy.currency_id != primaryCurrency.id and null != piggy.pc_target_amount %}
- (<span title="{{ 'target_amount'|_ }}">{{ formatAmountBySymbol(piggy.pc_target_amount,primaryCurrency.symbol, primaryCurrency.decimal_places) }}</span>)
- {% endif %}
- {% endif %}
+ (<span title="{{ 'target_amount'|_ }}">{{ format_amount_by_symbol(piggy.pc_target_amount,primaryCurrency.symbol, primaryCurrency.decimal_places) }}</span>)
+ @endif
+ @endif
</td>
<td class="hidden-sm hidden-xs text-right">
{% if piggy.left_to_save > 0 %}
- <span title="{{ 'left_to_save'|_ }}">{{ formatAmountBySymbol(piggy.left_to_save,piggy.currency_symbol,piggy.currency_decimal_places) }}</span>
+ <span title="{{ 'left_to_save'|_ }}">{{ format_amount_by_symbol(piggy.left_to_save,piggy.currency_symbol,piggy.currency_decimal_places) }}</span>
{% if convertToPrimary and piggy.currency_id != primaryCurrency.id and null != piggy.pc_left_to_save %}
- (<span title="{{ 'left_to_save'|_ }}">{{ formatAmountBySymbol(piggy.pc_left_to_save, primaryCurrency.symbol,primaryCurrency.decimal_places) }}</span>)
- {% endif %}
- {% endif %}
+ (<span title="{{ 'left_to_save'|_ }}">{{ format_amount_by_symbol(piggy.pc_left_to_save, primaryCurrency.symbol,primaryCurrency.decimal_places) }}</span>)
+ @endif
+ @endif
</td>
<td class="hidden-sm hidden-xs text-right">
{% if piggy.target_date and piggy.save_per_month %}
- {{ formatAmountBySymbol(piggy.save_per_month, piggy.currency_symbol, piggy.currency_decimal_places) }}
+ {{ format_amount_by_symbol(piggy.save_per_month, piggy.currency_symbol, piggy.currency_decimal_places) }}
{% if convertToPrimary and piggy.currency_id != primaryCurrency.id and null != piggy.pc_save_per_month %}
- ({{ formatAmountBySymbol(piggy.pc_save_per_month, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
- {% endif %}
- {% endif %}
+ ({{ format_amount_by_symbol(piggy.pc_save_per_month, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
+ @endif
+ @endif
</td>
</tr>
{% endfor %}
@@ -120,7 +120,7 @@
<td>&nbsp;</td>
<td class="text-right">
{% for sum in objectGroup.sums %}
- {{ formatAmountBySymbol(sum.saved, sum.currency_symbol, sum.currency_decimal_places) }}<br />
+ {{ format_amount_by_symbol(sum.saved, sum.currency_symbol, sum.currency_decimal_places) }}<br />
{% endfor %}
</td>
<td class="hidden-sm hidden-xs">&nbsp;</td> {# remove money #}
@@ -128,21 +128,21 @@
<td class="hidden-sm hidden-xs">&nbsp;</td> {# add money #}
<td class="text-right hidden-sm hidden-xs">
{% for sum in objectGroup.sums %}
- {{ formatAmountBySymbol(sum.target, sum.currency_symbol, sum.currency_decimal_places) }}<br />
+ {{ format_amount_by_symbol(sum.target, sum.currency_symbol, sum.currency_decimal_places) }}<br />
{% endfor %}
</td>
<td class="text-right hidden-sm hidden-xs">
{% for sum in objectGroup.sums %}
- {{ formatAmountBySymbol(sum.left_to_save, sum.currency_symbol, sum.currency_decimal_places) }}<br />
+ {{ format_amount_by_symbol(sum.left_to_save, sum.currency_symbol, sum.currency_decimal_places) }}<br />
{% endfor %}
</td>
<td class="text-right hidden-sm hidden-xs">
{% for sum in objectGroup.sums %}
- {{ formatAmountBySymbol(sum.save_per_month, sum.currency_symbol, sum.currency_decimal_places) }}<br />
+ {{ format_amount_by_symbol(sum.save_per_month, sum.currency_symbol, sum.currency_decimal_places) }}<br />
{% endfor %}
</td>
</tr>
</tbody>
- {% endif %}
+ @endif
{% endfor %}
</table>
diff --git a/resources/views/new-user/index.twig b/resources/views/new-user/index.twig
index e4b5e03f17..faeeff1111 100644
--- a/resources/views/new-user/index.twig
+++ b/resources/views/new-user/index.twig
@@ -47,7 +47,7 @@
{% for key, lang in Config.get('firefly.languages') %}
<option {% if language == key %}
selected
- {% endif %} value="{{ key }}">{{ lang.name_locale }} ({{ lang.name_english }})
+ @endif value="{{ key }}">{{ lang.name_locale }} ({{ lang.name_english }})
</option>
{% endfor %}
diff --git a/resources/views/object-groups/delete.twig b/resources/views/object-groups/delete.twig
index 9f3b7e06dc..528c913241 100644
--- a/resources/views/object-groups/delete.twig
+++ b/resources/views/object-groups/delete.twig
@@ -27,12 +27,12 @@
<p>
{{ Lang.choice('form.not_delete_piggy_banks', piggyBanks, {count: piggyBanks}) }}
</p>
- {% endif %}
+ @endif
</div>
<div class="card-footer">
<input type="submit" name="submit" value="{{ trans('form.deletePermanently') }}" class="btn pull-right btn-danger"/>
- <a href="{{ URL.previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
+ <a href="{{ URL::previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
</div>
</div>
</div>
diff --git a/resources/views/pagination/bootstrap-4.twig b/resources/views/pagination/bootstrap-4.twig
index 26483dc10a..a1c35f77e4 100644
--- a/resources/views/pagination/bootstrap-4.twig
+++ b/resources/views/pagination/bootstrap-4.twig
@@ -7,29 +7,29 @@
<li class="page-item disabled" aria-disabled="true" aria-label="{{ 'pagination.previous'|_ }}">
<span class="page-link" aria-hidden="true">&lsaquo;</span>
</li>
- {% else %}
+ @else
<li class="page-item">
<a class="page-link" href="{{ paginator.previousPageUrl }}" rel="prev" aria-label="{{ 'pagination.previous'|_ }}">&lsaquo;</a>
</li>
- {% endif %}
+ @endif
{# Pagination Elements #}
{% for element in elements %}
{# "Three Dots" Separator #}
{% if not element is iterable %}
<li class="page-item disabled" aria-disabled="true"><span class="page-link">{{ element }}</span></li>
- {% endif %}
+ @endif
{# Array Of Links #}
{% if element is iterable %}
{% for page, url in element %}
{% if page == paginator.currentPage %}
<li class="page-item active" aria-current="page"><span class="page-link">{{ page }}</span></li>
- {% else %}
+ @else
<li class="page-item"><a class="page-link" href="{{ url }}">{{ page }}</a></li>
- {% endif %}
+ @endif
{% endfor %}
- {% endif %}
+ @endif
{% endfor %}
{# Next Page Link #}
@@ -37,11 +37,11 @@
<li class="page-item">
<a class="page-link" href="{{ paginator.nextPageUrl }}" rel="next" aria-label="{{ 'pagination.next' }})">&rsaquo;</a>
</li>
- {% else %}
+ @else
<li class="page-item disabled" aria-disabled="true" aria-label="{{ 'pagination.next'|_ }})">
<span class="page-link" aria-hidden="true">&rsaquo;</span>
</li>
- {% endif %}
+ @endif
</ul>
</nav>
-{% endif %}
+@endif
diff --git a/resources/views/partials/debug-table.twig b/resources/views/partials/debug-table.twig
index 9b8f605f67..4b1fb26f16 100644
--- a/resources/views/partials/debug-table.twig
+++ b/resources/views/partials/debug-table.twig
@@ -12,7 +12,7 @@
{# Firefly III version #}
<tr>
<td>Firefly III</td>
- <td>{% if FF_IS_DEVELOP %}<!-- .Z9JBCmw64Zkx1pQw -->{% endif %}{% if not FF_IS_DEVELOP %}v{% endif %}{{ FF_VERSION }}</td>
+ <td>{% if FF_IS_DEVELOP %}<!-- .Z9JBCmw64Zkx1pQw -->@endif{% if not FF_IS_DEVELOP %}v@endif{{ FF_VERSION }}</td>
</tr>
<tr>
<td>Build time</td>
@@ -38,7 +38,7 @@
<tr>
<td>Database drivers</td>
<td>
- {% for driver in system.all_drivers %}{% if system.current_driver == driver %}<strong>*{{ driver }}*</strong>{% else %}{{ driver }}{% endif %}, {% endfor %}
+ {% for driver in system.all_drivers %}{% if system.current_driver == driver %}<strong>*{{ driver }}*</strong>@else{{ driver }}@endif, {% endfor %}
</td>
</tr>
{# Docker information #}
@@ -51,7 +51,7 @@
<span>#</span>{{ docker.build }}, base <span>#</span>{{ docker.base_build }}
</td>
</tr>
- {% endif %}
+ @endif
</tbody>
</table>
<table>
@@ -78,7 +78,7 @@
<td>{{ config('view.layout') }}
{% if 'v2' == config('view.layout') %}
<!-- .eOxNZAmyGz6CXMyf -->
- {% endif %}
+ @endif
</td>
</tr>
<tr>
@@ -119,11 +119,11 @@
</tr>
<tr>
<td>Exchange rates</td>
- <td>{% if fireflyiiiconfig('enable_exchange_rates', true) %}Enabled{% else %}Disabled{% endif %}, downloads {% if FireflyConfig.get('enable_external_rates', config('cer.download_enabled')) %}enabled{% else %}disabled{% endif %}</td>
+ <td>{% if fireflyiiiconfig('enable_exchange_rates', true) %}Enabled@elseDisabled@endif, downloads {% if FireflyConfig.get('enable_external_rates', config('cer.download_enabled')) %}enabled@elsedisabled@endif</td>
</tr>
<tr>
<td>RB-column</td>
- <td>{% if fireflyiiiconfig('use_running_balance', true) %}Enabled{% else %}Disabled{% endif %}</td>
+ <td>{% if fireflyiiiconfig('use_running_balance', true) %}Enabled@elseDisabled@endif</td>
</tr>
</tbody>
</table>
@@ -153,7 +153,7 @@
</tr>
<tr>
<td>Convert to primary currency?</td>
- <td>{% if user.convert_to_primary %}Enabled{% else %}Disabled{% endif %}</td>
+ <td>{% if user.convert_to_primary %}Enabled@elseDisabled@endif</td>
</tr>
<tr>
<td>Session start</td>
@@ -179,7 +179,7 @@
<td>Locale(s) supported</td>
<td>
{% for key, attempt in user.locale_attempts %}
- {{ key }}: {% if attempt %}:white_check_mark:{% else %}:x:{% endif %}<br>
+ {{ key }}: {% if attempt %}:white_check_mark:@else:x:@endif<br>
{% endfor %}
</td>
</tr>
diff --git a/resources/views/partials/flashes.twig b/resources/views/partials/flashes.twig
index 4974a1fd0e..e319e746d2 100644
--- a/resources/views/partials/flashes.twig
+++ b/resources/views/partials/flashes.twig
@@ -6,14 +6,14 @@
</button>
<strong>{{ 'invalid_server_configuration'|_ }}:</strong> <span class="bi bi-cash"></span> {{ 'invalid_locale_settings'|_ }}
</div>
-{% endif %}
+@endif
{# MANDATORY UPDATE MESSAGE #}
{% if upgrade_security_message and upgrade_security_level %}
<div class="alert alert-{{ upgrade_security_level }} alert-dismissible" role="alert">
<strong>{{ ('flash_'~upgrade_security_level)|_ }}</strong> <span class="fa fa-exclamation-triangle"></span> {{ upgrade_security_message }}
</div>
-{% endif %}
+@endif
{# SUCCESS MESSAGE (ALWAYS SINGULAR) #}
{% if session_has('success') %}
@@ -24,14 +24,14 @@
<strong>{{ 'flash_success'|_ }}</strong>
{% if session_has('success_url') %}
<a href="{{ session('success_url') }}">
- {% endif %}
+ @endif
{{ session('success') }}
{% if session_has('success_url') %}
</a>
- {% endif %}
+ @endif
</div>
-{% endif %}
+@endif
{# INFO MESSAGE (CAN BE MULTIPLE) #}
{% if session_has('info') %}
@@ -49,25 +49,25 @@
<li>{{ inf|raw }}</li>
{% endfor %}
</ul>
- {% endif %}
+ @endif
{# SET OF MULTIPLE INFO MESSAGES, BUT THERE IS JUST ONE #}
{% if session('info') is iterable and session('info')|length == 1 %}
<strong>{{ 'flash_info'|_ }}:</strong> {{ session('info')[0]|raw }}
- {% endif %}
+ @endif
{# SINGLE INFO MESSAGE #}
{% if session('info') is not iterable %}
{% if session_has('info_url') %}
<a href="{{ session('info_url') }}">
- {% endif %}
+ @endif
<strong>{{ 'flash_info'|_ }}:</strong> {{ session('info')|raw }}
{% if session_has('info_url') %}
</a>
- {% endif %}
- {% endif %}
+ @endif
+ @endif
</div>
-{% endif %}
+@endif
{# WARNING MESSAGE (ALWAYS SINGULAR) #}
{% if session_has('warning') %}
@@ -77,7 +77,7 @@
</button>
<strong>{{ 'flash_warning'|_ }}</strong> {{ session('warning') }}
</div>
-{% endif %}
+@endif
{# ERROR MESSAGE (CAN BE MULTIPLE) #}
{% if session_has('error') %}
@@ -96,19 +96,19 @@
<li>{{ err }}</li>
{% endfor %}
</ul>
- {% endif %}
+ @endif
{# SET OF MULTIPLE ERRORS, BUT THERE IS JUST ONE #}
{% if session('error') is iterable and session('error')|length == 1 %}
<strong>{{ 'flash_error'|_ }}</strong>
{{ session('error')[0]|raw }}
- {% endif %}
+ @endif
{# SINGLE ERROR #}
{% if session('error') is not iterable %}
<strong>{{ 'flash_error'|_ }}</strong> {{ session('error')|raw }}
- {% endif %}
+ @endif
</div>
-{% endif %}
+@endif
diff --git a/resources/views/partials/layout/breadcrumbs.twig b/resources/views/partials/layout/breadcrumbs.twig
index 67679dde97..bc7a62bbea 100644
--- a/resources/views/partials/layout/breadcrumbs.twig
+++ b/resources/views/partials/layout/breadcrumbs.twig
@@ -5,9 +5,9 @@
{% for breadcrumb in breadcrumbs %}
{% if breadcrumb.url and not loop.last %}
<li><a href="{{ breadcrumb.url }}">{{ breadcrumb.title }}</a></li>
- {% else %}
+ @else
<li class="active">{{ breadcrumb.title }}</li>
- {% endif %}
+ @endif
{% endfor %}
</ol>
-{% endif %}
+@endif
diff --git a/resources/views/partials/menu-sidebar.twig b/resources/views/partials/menu-sidebar.twig
index 901bc523bf..bada20f93f 100644
--- a/resources/views/partials/menu-sidebar.twig
+++ b/resources/views/partials/menu-sidebar.twig
@@ -41,7 +41,7 @@
<li class="{{ activeRoutePartial('transactions') }} treeview" id="transaction-menu">
<a href="#">
<em class="bi bi-arrow-left-right"></em>
- <span>{{ 'transactions'|_ }}</span>
+ <span>{{ __('firefly.transactions') }}</span>
<span class="pull-right-container">
<span class="fa fa-angle-left pull-right"></span>
</span>
@@ -98,14 +98,14 @@
<span>{{ 'webhooks'|_ }}</span>
</a>
</li>
- {% else %}
+ @else
<li class="">
<a href="#">
<span class="bi bi-caret-right"></span>
<span>{{ 'webhooks'|_ }} ({{ 'webhooks_menu_disabled'|_ }})</span>
</a>
</li>
- {% endif %}
+ @endif
</ul>
</li>
@@ -194,7 +194,7 @@
<span>{{ 'export_data_menu'|_ }}</span>
</a>
</li>
- {% endif %}
+ @endif
<li class="{{ activeRoutePartial('administrations') }} {{ activeRoutePartial('setting') }} {{ activeRoutePartial('oauth') }} {{ activeRoutePartial('profile') }} {{ activeRoutePartial('preferences') }} {{ activeRoutePartial('currencies') }} {{ activeRoutePartial('exchange-rates') }} treeview"
id="option-menu">
@@ -239,7 +239,7 @@
<span>{{ 'menu_exchange_rates_index'|_ }}</span>
</a>
</li>
- {% endif %}
+ @endif
<li class="{{ activeRoutePartial('administrations') }}">
<a class="{{ activeRoutePartial('administration') }}" href="{{ route('administrations.index') }}">
<span class="bi bi-caret-right"></span>
@@ -253,7 +253,7 @@
<span>{{ 'system_settings'|_ }}</span>
</a>
</li>
- {% endif %}
+ @endif
</ul>
</li>
@@ -265,7 +265,7 @@
</span>
</a>
</li>
- {% endif %}
+ @endif
{% if 'remote_user_guard' == authGuard and '' != logoutUrl %}
<li>
<a href="{{ logoutUrl }}">
@@ -273,5 +273,5 @@
<span>{{ 'logout'|_ }}</span>
</a>
</li>
- {% endif %}
+ @endif
</ul>
diff --git a/resources/views/partials/page-header.twig b/resources/views/partials/page-header.twig
index ec7215d523..1ba3b3644a 100644
--- a/resources/views/partials/page-header.twig
+++ b/resources/views/partials/page-header.twig
@@ -1,14 +1,14 @@
<h1>
{% if mainTitleIcon %}
<span class="hidden-xs fa {{ mainTitleIcon }}"></span>
- {% endif %}
+ @endif
{{ title }}
{% if subTitle %}
<small id="subTitle">
{% if subTitleIcon %}
<span class="hidden-xs fa {{ subTitleIcon }}"></span>
- {% endif %}
+ @endif
{{ subTitle }}
</small>
- {% endif %}
+ @endif
</h1>
diff --git a/resources/views/piggy-banks/add-mobile.twig b/resources/views/piggy-banks/add-mobile.twig
index 3a32241dda..39083c53a7 100644
--- a/resources/views/piggy-banks/add-mobile.twig
+++ b/resources/views/piggy-banks/add-mobile.twig
@@ -30,9 +30,9 @@
<button type="submit" class="btn btn-success pull-right">
{{ 'add'|_ }}
</button>
- {% else %}
+ @else
<p class="text-danger">{{ 'no_money_for_piggy'|_ }}</p>
- {% endif %}
+ @endif
</div>
diff --git a/resources/views/piggy-banks/add.twig b/resources/views/piggy-banks/add.twig
index 3fa0be21e8..70167bf9a1 100644
--- a/resources/views/piggy-banks/add.twig
+++ b/resources/views/piggy-banks/add.twig
@@ -22,14 +22,14 @@
<button type="submit" class="btn btn-primary">{{ 'add'|_ }}</button>
</div>
</form>
- {% else %}
+ @else
<div class="modal-body">
<p class="text-danger">{{ 'no_money_for_piggy'|_ }}</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">{{ 'close'|_ }}</button>
</div>
- {% endif %}
+ @endif
</div>
</div>
diff --git a/resources/views/piggy-banks/delete.twig b/resources/views/piggy-banks/delete.twig
index 852034cee8..d5537f8ba2 100644
--- a/resources/views/piggy-banks/delete.twig
+++ b/resources/views/piggy-banks/delete.twig
@@ -25,7 +25,7 @@
</div>
<div class="card-footer">
<input type="submit" name="submit" value="{{ trans('form.deletePermanently') }}" class="btn btn-danger pull-right"/>
- <a href="{{ URL.previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
+ <a href="{{ URL::previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
</div>
</div>
</div>
diff --git a/resources/views/piggy-banks/show.twig b/resources/views/piggy-banks/show.twig
index 9104f3d4df..8f12058572 100644
--- a/resources/views/piggy-banks/show.twig
+++ b/resources/views/piggy-banks/show.twig
@@ -45,15 +45,15 @@
<td class="forty">{{ 'object_group'|_ }}</td>
<td>{{ piggy.object_group_title }}</a></td>
</tr>
- {% endif %}
+ @endif
{% if null != piggy.target_amount %}
<tr>
<td>{{ 'target_amount'|_ }}</td>
<td>
- {{ formatAmountBySymbol(piggy.target_amount, piggy.currency_symbol, piggy.currency_decimal_places) }}
+ {{ format_amount_by_symbol(piggy.target_amount, piggy.currency_symbol, piggy.currency_decimal_places) }}
</td>
</tr>
- {% endif %}
+ @endif
{% for account in piggy.accounts %}
<tr>
<td>
@@ -61,7 +61,7 @@
(<a href="{{ route('accounts.show', account.account_id) }}">{{ account.name }}</a>)
</td>
<td>
- {{ formatAmountBySymbol(account.current_amount, piggy.currency_symbol, piggy.currency_decimal_places) }}
+ {{ format_amount_by_symbol(account.current_amount, piggy.currency_symbol, piggy.currency_decimal_places) }}
</td>
</tr>
@@ -69,25 +69,25 @@
<tr>
<td>{{ 'saved_so_far_total'|_ }}</td>
<td>
- {{ formatAmountBySymbol(piggy.current_amount, piggy.currency_symbol, piggy.currency_decimal_places) }}
+ {{ format_amount_by_symbol(piggy.current_amount, piggy.currency_symbol, piggy.currency_decimal_places) }}
</td>
</tr>
{% if null != piggy.left_to_save %}
<tr>
<td>{{ 'left_to_save'|_ }}</td>
<td>
- {{ formatAmountBySymbol(piggy.left_to_save, piggy.currency_symbol, piggy.currency_decimal_places) }}
+ {{ format_amount_by_symbol(piggy.left_to_save, piggy.currency_symbol, piggy.currency_decimal_places) }}
</td>
</tr>
- {% endif %}
+ @endif
<tr>
<td>{{ 'start_date'|_ }}</td>
<td>
{% if piggyBank.start_date %}
{{ piggyBank.start_date.isoFormat(monthAndDayFormat) }}
- {% else %}
+ @else
<em>{{ 'no_start_date'|_ }}</em>
- {% endif %}
+ @endif
</td>
</tr>
<tr>
@@ -95,20 +95,20 @@
<td>
{% if piggyBank.target_date %}
{{ piggyBank.target_date.isoFormat(monthAndDayFormat) }}
- {% else %}
+ @else
<em>{{ 'no_target_date'|_ }}</em>
- {% endif %}
+ @endif
</td>
</tr>
{% if piggyBank.target_date and piggy.save_per_month %}
<tr>
<td>{{ 'suggested_amount'|_ }}</td>
<td>
- {{ formatAmountBySymbol(piggy.save_per_month, piggy.currency_symbol, piggy.currency_decimal_places) }}
+ {{ format_amount_by_symbol(piggy.save_per_month, piggy.currency_symbol, piggy.currency_decimal_places) }}
</td>
</tr>
- {% endif %}
+ @endif
</table>
</div>
</div>
@@ -136,7 +136,7 @@
</div>
</div>
- {% endif %}
+ @endif
{% if attachments.count() > 0 %}
<div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
<div class="card">
@@ -150,7 +150,7 @@
</div>
</div>
</div>
- {% endif %}
+ @endif
</div>
<form id="reset-form" action="{{ route('piggy-banks.reset', [piggyBank.id]) }}" method="POST" class="hidden">
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
diff --git a/resources/views/popup/list/journals.twig b/resources/views/popup/list/journals.twig
index c8576964e9..693a7af827 100644
--- a/resources/views/popup/list/journals.twig
+++ b/resources/views/popup/list/journals.twig
@@ -7,24 +7,24 @@
<th class="hidden-sm hidden-xs">{{ trans('list.date') }}</th>
{% if not hideSource %}
<th class="hidden-xs">{{ trans('list.from') }}</th>
- {% endif %}
+ @endif
{% if not hideDestination %}
<th class="hidden-xs">{{ trans('list.to') }}</th>
- {% endif %}
+ @endif
{# Hide budgets? #}
{% if not hideBudget %}
<th class="hidden-xs">
<span class="bi bi-pie-chart" title="{{ trans('list.budget') }}"></span>
</th>
- {% endif %}
+ @endif
{# Hide categories? #}
{% if not hideCategory %}
<th class="hidden-xs">
<span class="bi bi-bookmark" title="{{ trans('list.category') }}"></span>
</th>
- {% endif %}
+ @endif
</tr>
</thead>
<tbody>
@@ -40,57 +40,57 @@
<td class="hidden-xs">
{% if transaction.transaction_type_type == 'Withdrawal' %}
<span class="bi bi-arrow-left" title="{{ trans('firefly.Withdrawal') }}"></span>
- {% endif %}
+ @endif
{% if transaction.transaction_type_type == 'Deposit' %}
<span class="bi bi-arrow-right" title="{{ trans('firefly.Deposit') }}"></span>
- {% endif %}
+ @endif
{% if transaction.transaction_type_type == 'Transfer' %}
<span class="bi bi-arrow-left-right" title="{{ trans('firefly.Transfer') }}"></span>
- {% endif %}
+ @endif
{% if transaction.transaction_type_type == 'Reconciliation' %}
XX
- {% endif %}
+ @endif
{% if transaction.transaction_type_type == 'Opening balance' %}
XX
- {% endif %}
+ @endif
</td>
<td>
<a href="{{ route('transactions.show',transaction.transaction_group_id) }}">
{% if transaction.group_title|length > 0 %}
{{ transaction.group_title }} ({{ transaction.description }})
- {% else %}
+ @else
{{ transaction.description }}
- {% endif %}
+ @endif
</a>
</td>
<td>
{% if transaction.transaction_type_type == 'Deposit' %}
- {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ {{ format_amount_by_symbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ @endif
{% set sum = (sum + (transaction.amount*-1)) %}
{% elseif transaction.transaction_type_type == 'Transfer' %}
<span class="text-info money-transfer">
- {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places, false) }}
+ {{ format_amount_by_symbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places, false) }}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }})
+ @endif
</span>
{% set sum = (sum + transaction.amount*-1) %}
- {% else %}
- {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ @else
+ {{ format_amount_by_symbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ @endif
{% set sum = (sum + transaction.amount) %}
- {% endif %}
+ @endif
</td>
@@ -104,7 +104,7 @@
{{ transaction.source_account_name }}
</a>
</td>
- {% endif %}
+ @endif
{% if not hideDestination %}
<td class="hidden-xs">
@@ -112,7 +112,7 @@
{{ transaction.destination_account_name }}
</a>
</td>
- {% endif %}
+ @endif
<!-- Do NOT hide the budget? -->
{% if not hideBudget %}
@@ -121,9 +121,9 @@
<a href="{{ route('budgets.show', [transaction.budget_id]) }}">
{{ transaction.budget_name }}
</a>
- {% endif %}
+ @endif
</td>
- {% endif %}
+ @endif
<!-- Do NOT hide the category? -->
{% if not hideCategory %}
@@ -132,9 +132,9 @@
<a href="{{ route('categories.show', [transaction.category_id]) }}">
{{ transaction.category_name }}
</a>
- {% endif %}
+ @endif
</td>
- {% endif %}
+ @endif
</tr>
{% endfor %}
</tbody>
@@ -143,8 +143,8 @@
<td colspan="2" class="text-right"><em>{{ 'sum'|_ }}:</em></td>
<td>
{% if sum != 0 %}
- {{ formatAmountBySymbol(sum, symbol, decimal_places) }}
- {% endif %}
+ {{ format_amount_by_symbol(sum, symbol, decimal_places) }}
+ @endif
</td>
</tr>
</tfoot>
diff --git a/resources/views/preferences/index.twig b/resources/views/preferences/index.twig
index 82ec81ac8e..1d23768d17 100644
--- a/resources/views/preferences/index.twig
+++ b/resources/views/preferences/index.twig
@@ -34,7 +34,7 @@
{% endfor %}
</ul>
</div>
- {% endif %}
+ @endif
<div class="tab-pane active" id="general">
{# general settings here #}
@@ -51,7 +51,7 @@
{% for key, lang in languages %}
<option {% if language == key %}
selected
- {% endif %} value="{{ key }}">{{ lang.name_locale }}
+ @endif value="{{ key }}">{{ lang.name_locale }}
({{ lang.name_english }})
</option>
@@ -81,12 +81,12 @@
{% for key, loc in locales %}
<option {% if locale == key %}
selected
- {% endif %} value="{{ key }}">
+ @endif value="{{ key }}">
{% if key == 'equal' %}
{{ 'equal_to_language'|_ }}
- {% else %}
+ @else
{{ loc }}
- {% endif %}</option>
+ @endif</option>
{% endfor %}
</select>
@@ -95,12 +95,12 @@
<ul class="text-warning">
{% if IS_DEMO_SITE %}
- <li class="text-danger">{{ 'pref_locale_no_demo'|_ }}</li>{% endif %}
+ <li class="text-danger">{{ 'pref_locale_no_demo'|_ }}</li>@endif
</ul>
</div>
- {% else %}
+ @else
<input type="hidden" name="locale" value="equal"/>
- {% endif %}
+ @endif
{# fiscal year #}
<div class="preferences-box">
@@ -122,7 +122,7 @@
</p>
{{ ExpandedForm::checkbox('convertToPrimary','1',convertToPrimary,{ 'label' : 'pref_convert_primary_help'|_ }) }}
</div>
- {% endif %}
+ @endif
{# conversion back to primary currency #}
<div class="preferences-box">
<h3>{{ 'pref_anonymous'|_ }}</h3>
@@ -182,10 +182,10 @@
<input type="checkbox" name="frontpageAccounts[]"
value="{{ id }}"
checked> {{ name }}
- {% else %}
+ @else
<input type="checkbox" name="frontpageAccounts[]"
value="{{ id }}"> {{ name }}
- {% endif %}
+ @endif
</label>
</div>
</div>
@@ -212,7 +212,7 @@
<div class="radio">
<label>
<input type="radio" name="viewRange"
- value="1D" {% if viewRange == '1D' %} checked {% endif %}>
+ value="1D" {% if viewRange == '1D' %} checked @endif>
{{ 'pref_1D'|_ }}
</label>
</div>
@@ -220,7 +220,7 @@
<div class="radio">
<label>
<input type="radio" name="viewRange"
- value="1W" {% if viewRange == '1W' %} checked {% endif %}>
+ value="1W" {% if viewRange == '1W' %} checked @endif>
{{ 'pref_1W'|_ }}
</label>
</div>
@@ -228,7 +228,7 @@
<div class="radio">
<label>
<input type="radio" name="viewRange"
- value="last7" {% if viewRange == 'last7' %} checked {% endif %}>
+ value="last7" {% if viewRange == 'last7' %} checked @endif>
{{ 'pref_last7'|_ }}
</label>
</div>
@@ -236,21 +236,21 @@
<div class="radio">
<label>
<input type="radio" name="viewRange"
- value="1M" {% if viewRange == '1M' %} checked {% endif %}>
+ value="1M" {% if viewRange == '1M' %} checked @endif>
{{ 'pref_1M'|_ }}
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="viewRange"
- value="last30" {% if viewRange == 'last30' %} checked {% endif %}>
+ value="last30" {% if viewRange == 'last30' %} checked @endif>
{{ 'pref_last30'|_ }}
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="viewRange"
- value="MTD" {% if viewRange == 'MTD' %} checked {% endif %}>
+ value="MTD" {% if viewRange == 'MTD' %} checked @endif>
{{ 'pref_MTD'|_ }}
</label>
</div>
@@ -258,21 +258,21 @@
<div class="radio">
<label>
<input type="radio" name="viewRange"
- value="3M" {% if viewRange == '3M' %} checked {% endif %}>
+ value="3M" {% if viewRange == '3M' %} checked @endif>
{{ 'pref_3M'|_ }}
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="viewRange"
- value="last90" {% if viewRange == 'last90' %} checked {% endif %}>
+ value="last90" {% if viewRange == 'last90' %} checked @endif>
{{ 'pref_last90'|_ }}
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="viewRange"
- value="QTD" {% if viewRange == 'QTD' %} checked {% endif %}>
+ value="QTD" {% if viewRange == 'QTD' %} checked @endif>
{{ 'pref_QTD'|_ }}
</label>
</div>
@@ -280,28 +280,28 @@
<div class="radio">
<label>
<input type="radio" name="viewRange"
- value="6M" {% if viewRange == '6M' %} checked {% endif %}>
+ value="6M" {% if viewRange == '6M' %} checked @endif>
{{ 'pref_6M'|_ }}
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="viewRange"
- value="1Y" {% if viewRange == '1Y' %} checked {% endif %}>
+ value="1Y" {% if viewRange == '1Y' %} checked @endif>
{{ 'pref_1Y'|_ }}
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="viewRange"
- value="YTD" {% if viewRange == 'YTD' %} checked {% endif %}>
+ value="YTD" {% if viewRange == 'YTD' %} checked @endif>
{{ 'pref_YTD'|_ }}
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="viewRange"
- value="last365" {% if viewRange == 'last365' %} checked {% endif %}>
+ value="last365" {% if viewRange == 'last365' %} checked @endif>
{{ 'pref_last365'|_ }}
</label>
</div>
@@ -322,7 +322,7 @@
<div class="radio">
<label>
<input type="radio" name="darkMode"
- value="{{ mode }}" {% if darkMode == mode %} checked {% endif %}>
+ value="{{ mode }}" {% if darkMode == mode %} checked @endif>
{{ ('dark_mode_option_'~mode)|_ }}
</label>
</div>
@@ -347,11 +347,11 @@
<li>
{% if true == info.enabled and true == forcedAvailability[name] %}
☑️ {{ trans('firefly.notification_channel_name_'~name) }}
- {% if 0 == info.ui_configurable %}({{ 'configure_channel_in_env'|_ }}) {% endif %}
- {% endif %}
+ {% if 0 == info.ui_configurable %}({{ 'configure_channel_in_env'|_ }}) @endif
+ @endif
{% if false == info.enabled or false == forcedAvailability[name] %}
⚠️ {{ trans('firefly.notification_channel_name_'~name) }} ({{ 'channel_not_available'|_ }})
- {% endif %}
+ @endif
</li>
{% endfor %}
</ul>
@@ -362,10 +362,10 @@
<div class="checkbox">
<label>
{% if info.configurable %}
- <input {% if not info.configurable %}readonly{% endif %} type="checkbox" name="notification_{{ id }}" {{ info.enabled == true ? 'checked' : '' }} value="1">
- {% else %}
+ <input {% if not info.configurable %}readonly@endif type="checkbox" name="notification_{{ id }}" {{ info.enabled == true ? 'checked' : '' }} value="1">
+ @else
<input readonly disabled type="checkbox" checked value="1">
- {% endif %}
+ @endif
{{ trans('firefly.pref_notification_' ~ id) }}
</label>
</div>
@@ -398,7 +398,7 @@
<a href="#" data-channel="{{ name }}" class="btn btn-outline-secondary submit-test">
{{ trans('firefly.test_notification_channel_name_'~name) }}
</a>
- {% endif %}
+ @endif
{% endfor %}
</div>
</div>
diff --git a/resources/views/profile/change-email.twig b/resources/views/profile/change-email.twig
index d3c19249ec..8f498ec3a8 100644
--- a/resources/views/profile/change-email.twig
+++ b/resources/views/profile/change-email.twig
@@ -23,7 +23,7 @@
{% endfor %}
</ul>
- {% endif %}
+ @endif
<div class="form-group">
diff --git a/resources/views/profile/change-password.twig b/resources/views/profile/change-password.twig
index 56288bdb47..bdd679c68e 100644
--- a/resources/views/profile/change-password.twig
+++ b/resources/views/profile/change-password.twig
@@ -23,7 +23,7 @@
{% endfor %}
</ul>
- {% endif %}
+ @endif
<div class="form-group">
diff --git a/resources/views/profile/delete-account.twig b/resources/views/profile/delete-account.twig
index 40d8cab400..ce3d20cfc6 100644
--- a/resources/views/profile/delete-account.twig
+++ b/resources/views/profile/delete-account.twig
@@ -32,7 +32,7 @@
{% endfor %}
</ul>
- {% endif %}
+ @endif
<div class="form-group">
<label for="password" class="col-sm-4 control-label">{{ 'password'|_ }}</label>
diff --git a/resources/views/profile/index.twig b/resources/views/profile/index.twig
index 2953e4cb1e..416459b8ff 100644
--- a/resources/views/profile/index.twig
+++ b/resources/views/profile/index.twig
@@ -47,13 +47,13 @@
<li>
<a href="{{ route('profile.mfa.index') }}">{{ 'manage_mfa_settings'|_ }}</a>
</li>
- {% endif %}
+ @endif
{% if enabled2FA == false %}
<li>
<a href="{{ route('profile.mfa.index') }}">{{ 'enable_mfa'|_ }}</a>
</li>
- {% endif %}
- {% endif %}
+ @endif
+ @endif
<li><a href="{{ route('logout') }}" class="logout-link">{{ 'logout'|_ }}</a>
</li>
@@ -65,7 +65,7 @@
<li><a class="text-danger"
href="{{ route('profile.delete-account') }}">{{ 'delete_account'|_ }}</a>
</li>
- {% endif %}
+ @endif
</ul>
</div>
</div>
@@ -227,7 +227,7 @@
</div>
- <h4> {{ 'transactions'|_ }}</h4>
+ <h4> {{ __('firefly.transactions') }}</h4>
<div class="btn-group">
<button type="button"
data-success="{{ trans('firefly.deleted_all_transactions')|escape('html') }}"
diff --git a/resources/views/profile/mfa/index.twig b/resources/views/profile/mfa/index.twig
index d414c64f6e..f4ff6ee1fa 100644
--- a/resources/views/profile/mfa/index.twig
+++ b/resources/views/profile/mfa/index.twig
@@ -18,10 +18,10 @@
<p>
{% if enabledMFA == true %}
{{ 'mfa_index_enabled'|_ }}
- {% endif %}
+ @endif
{% if enabledMFA == false %}
{{ 'mfa_index_disabled'|_ }}
- {% endif %}
+ @endif
</p>
<p>
@@ -35,12 +35,12 @@
<a href="{{ route('profile.mfa.disableMFA') }}" class="btn btn-danger"><em class="fa fa-unlock-alt"></em> {{ 'pref_two_factor_auth_disable_2fa'|_ }}</a>
<a href="{{ route('profile.mfa.backup-codes') }}" class="btn btn-outline-secondary"><em class="bi bi-calculator"></em> {{ 'pref_two_factor_new_backup_codes'|_ }}</a>
</div>
- {% endif %}
+ @endif
{% if enabledMFA == false %}
<p>
<a class="btn btn-info" href="{{ route('profile.mfa.enableMFA') }}"><em class="bi bi-calculator"></em> {{ 'pref_enable_two_factor_auth'|_ }}</a>
</p>
- {% endif %}
+ @endif
</div>
</div>
</div>
diff --git a/resources/views/recurring/create.twig b/resources/views/recurring/create.twig
index 1c5fe19be4..ce0888b72f 100644
--- a/resources/views/recurring/create.twig
+++ b/resources/views/recurring/create.twig
@@ -126,9 +126,9 @@
{# BUDGET ONLY WHEN CREATING A WITHDRAWAL #}
{% if budgets|length > 1 %}
{{ ExpandedForm::select('budget_id', budgets, null) }}
- {% else %}
+ @else
{{ ExpandedForm::select('budget_id', budgets, null, {helpText: trans('firefly.no_budget_pointer', {link: route('budgets.index')})}) }}
- {% endif %}
+ @endif
{# CATEGORY ALWAYS #}
{{ ExpandedForm::text('category') }}
@@ -136,9 +136,9 @@
{# BILL / SUBSCRIPTION ONLY FOR WITHDRAWALS #}
{% if bills|length > 1 %}
{{ ExpandedForm::select('bill_id', bills, null) }}
- {% else %}
+ @else
{{ ExpandedForm::select('bill_id', bills, null, {helpText: trans('firefly.no_bill_pointer', {link: route('subscriptions.index')})}) }}
- {% endif %}
+ @endif
{# TAGS #}
{{ ExpandedForm::text('tags') }}
diff --git a/resources/views/recurring/delete.twig b/resources/views/recurring/delete.twig
index ca7ec14dff..813c2e3b91 100644
--- a/resources/views/recurring/delete.twig
+++ b/resources/views/recurring/delete.twig
@@ -26,12 +26,12 @@
<p>
{% if journalsCreated > 0 %}
{{ Lang.choice('form.recurring_keep_transactions', journalsCreated, {count: journalsCreated }) }}
- {% endif %}
+ @endif
</p>
</div>
<div class="card-footer">
<input type="submit" name="submit" value="{{ trans('form.deletePermanently') }}" class="btn btn-danger pull-right"/>
- <a href="{{ URL.previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
+ <a href="{{ URL::previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
</div>
</div>
</div>
diff --git a/resources/views/recurring/edit.twig b/resources/views/recurring/edit.twig
index ff51646225..bbcbf047b9 100644
--- a/resources/views/recurring/edit.twig
+++ b/resources/views/recurring/edit.twig
@@ -124,10 +124,10 @@
{# BUDGET ONLY WHEN CREATING A WITHDRAWAL #}
{% if budgets|length > 1 %}
{{ ExpandedForm::select('budget_id', budgets, array.transactions[0].budget_id) }}
- {% else %}
+ @else
{{ ExpandedForm::select('budget_id', budgets, array.transactions[0].budget_id, {helpText: trans('firefly.no_budget_pointer', {link: route('budgets.index')})}) }}
{# budgets #}
- {% endif %}
+ @endif
{# CATEGORY ALWAYS #}
{{ ExpandedForm::text('category',array.transactions[0].category_name) }}
@@ -135,9 +135,9 @@
{# BILL ONLY WHEN CREATING A WITHDRAWAL #}
{% if bills|length > 1 %}
{{ ExpandedForm::select('bill_id', bills, array.transactions[0].subscription_id) }}
- {% else %}
+ @else
{{ ExpandedForm::select('bill_id', bills, array.transactions[0].subscription_id, {helpText: trans('firefly.no_bill_pointer', {link: route('subscriptions.index')})}) }}
- {% endif %}
+ @endif
{# TAGS #}
{{ ExpandedForm::text('tags', array.transactions[0].tags) }}
diff --git a/resources/views/recurring/old-index.twig b/resources/views/recurring/old-index.twig
index aee570c1e8..2750765482 100644
--- a/resources/views/recurring/old-index.twig
+++ b/resources/views/recurring/old-index.twig
@@ -58,14 +58,14 @@
<td data-value="{{ rt.title }}">
{% if rt.attachments > 0 %}
<span class="bi bi-paperclip"></span>
- {% endif %}
- {% if rt.active == false %}<s>{% endif %}
+ @endif
+ {% if rt.active == false %}<s>@endif
{{ rt.type|_ }}:
<a href="{{ route('recurring.show',rt.id) }}">{{ rt.title }}</a>
- {% if rt.active == false %}</s> ({{ 'inactive'|_|lower }}){% endif %}
+ {% if rt.active == false %}</s> ({{ 'inactive'|_|lower }})@endif
{% if rt.description|length > 0 %}
<small><br>{{ rt.description }}</small>
- {% endif %}
+ @endif
</td>
@@ -74,12 +74,12 @@
{% for rtt in rt.transactions %}
<li>
{# normal amount + comma #}
- {{ formatAmountBySymbol(rtt['amount'],rtt['currency_symbol'],rtt['currency_decimal_places']) }}{% if rtt['foreign_amount'] == null %},{% endif %}
+ {{ format_amount_by_symbol(rtt['amount'],rtt['currency_symbol'],rtt['currency_decimal_places']) }}{% if rtt['foreign_amount'] == null %},@endif
{# foreign amount + comma #}
{% if null != rtt['foreign_amount'] %}
- ({{ formatAmountBySymbol(rtt['foreign_amount'],rtt['foreign_currency_symbol'],rtt['foreign_currency_decimal_places']) }}),
- {% endif %}
+ ({{ format_amount_by_symbol(rtt['foreign_amount'],rtt['foreign_currency_symbol'],rtt['foreign_currency_decimal_places']) }}),
+ @endif
<a href="{{ route('accounts.show', rtt['source_id']) }}">{{ rtt['source_name'] }}</a>
&rarr;
<a href="{{ route('accounts.show', rtt['destination_id']) }}">{{ rtt['destination_name'] }}</a>
@@ -92,38 +92,38 @@
<span class="text-danger">
{{ trans('firefly.repeat_until_in_past', {date: rt.repeat_until.isoFormat(monthAndDayFormat) }) }}
</span>
- {% endif %}
+ @endif
<ul>
{% for rep in rt.repetitions %}
<li>{{ rep.description }}
{% if rep.repetition_skip == 1 %}
({{ trans('firefly.recurring_skips_one')|lower }}).
- {% endif %}
+ @endif
{% if rep.repetition_skip > 1 %}
({{ trans('firefly.recurring_skips_more', {count: rep.repetition_skip})|lower }}).
- {% endif %}
+ @endif
{% if rep.weekend == 3 %}
<br>{{ 'will_jump_friday'|_ }}
- {% endif %}
+ @endif
{% if rep.weekend == 4 %}
<br>{{ 'will_jump_monday'|_ }}
- {% endif %}
+ @endif
{% if rep.weekend == 2 %}
<br>{{ 'except_weekends'|_ }}
- {% endif %}
+ @endif
</li>
{% endfor %}
</ul>
<p>
{% if null == rt.repeat_until and rt.repetitions == 0 %}
{{ 'recurring_repeats_forever'|_ }}.
- {% endif %}
+ @endif
{% if null != rt.repeat_until and rt.repetitions == 0 %}
{{ trans('firefly.recurring_repeats_until', {date: rt.repeat_until.isoFormat(monthAndDayFormat)}) }}.
- {% endif %}
+ @endif
{% if null == rt.repeat_until and rt.nr_of_repetitions != 0 %}
{{ trans_choice('firefly.recurring_repeats_x_times', rt.nr_of_repetitions) }}.
- {% endif %}
+ @endif
</p>
</td>
<td>
@@ -132,7 +132,7 @@
{% for occ in rep.occurrences %}
{% if loop.index0 < 2 %}
<li>{{ occ.isoFormat(monthAndDayFormat) }}</li>
- {% endif %}
+ @endif
{% endfor %}
{% endfor %}
</ul>
@@ -151,10 +151,10 @@
</div>
</div>
</div>
- {% endif %}
+ @endif
{% if total == 0 and page == 1 %}
{% include 'partials.empty' with {objectType: 'default', type: 'recurring',route: route('recurring.create')} %}
- {% endif %}
+ @endif
@endsection
@section('styles')
diff --git a/resources/views/recurring/show.twig b/resources/views/recurring/show.twig
index 1e1e42b68e..29e8e3aa05 100644
--- a/resources/views/recurring/show.twig
+++ b/resources/views/recurring/show.twig
@@ -17,7 +17,7 @@
{% if array.active == false %}
({{ 'inactive'|_|lower }})
- {% endif %}
+ @endif
</h3>
</div>
<div class="card-body">
@@ -26,12 +26,12 @@
<p>
{% if array.journal_count >= array.nr_of_repetitions %}
<span class="text-danger">{{ trans('firefly.recurrence_max_count', {count: array.journal_count, max: array.nr_of_repetitions}) }}</span>
- {% endif %}
+ @endif
{% if array.journal_count < array.nr_of_repetitions %}
{{ trans('firefly.recurrence_max_count', {count: array.journal_count, max: array.nr_of_repetitions}) }}
- {% endif %}
+ @endif
</p>
- {% endif %}
+ @endif
<p>{{ 'description'|_ }}: <em>{{ array.description }}</em></p>
@@ -39,7 +39,7 @@
<p>
{{ 'recurrence_is_inactive'|_ }}
</p>
- {% endif %}
+ @endif
<ul>
{% for rep in array.repetitions %}
@@ -72,16 +72,16 @@
<span class="text-danger">
{{ trans('firefly.repeat_until_in_past', {date: array.repeat_until.isoFormat(monthAndDayFormat) }) }}
</span>
- {% endif %}
+ @endif
{% for rep in array.repetitions %}
<p>
<strong>{{ rep.description }}
{% if rep.repetition_skip == 1 %}
({{ trans('firefly.recurring_skips_one')|lower }})
- {% endif %}
+ @endif
{% if rep.repetition_skip > 1 %}
({{ trans('firefly.recurring_skips_more', {count: rep.repetition_skip})|lower }})
- {% endif %}
+ @endif
</strong>
</p>
<table class="table" aria-label="Table">
@@ -99,7 +99,7 @@
<input type="submit" name="submit" value="{{ 'create_right_now'|_ }}"
class="btn btn-sm btn-outline-secondary">
</form>
- {% endif %}
+ @endif
</td>
</tr>
{% endfor %}
@@ -150,24 +150,24 @@
<a href="{{ route('accounts.show', [transaction.destination_id]) }}">{{ transaction.destination_name }}</a>
</td>
<td>
- {{ formatAmountBySymbol(transaction.amount,transaction.currency_symbol,transaction.currency_decimal_places) }}
+ {{ format_amount_by_symbol(transaction.amount,transaction.currency_symbol,transaction.currency_decimal_places) }}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount,transaction.foreign_currency_symbol,transaction.foreign_currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount,transaction.foreign_currency_symbol,transaction.foreign_currency_decimal_places) }})
+ @endif
</td>
<td data-value="{{ transaction.category_id|default(0) }}">
{% if '' != transaction.category_name %}
<a href="{{ route('categories.show', [transaction.category_id]) }}">
{{ transaction.category_name }}
</a>
- {% endif %}
+ @endif
</td>
<td data-value="{{ transaction.budget_id|default(0) }}">
{% if '' != transaction.budget_name %}
<a href="{{ route('budgets.show', [transaction.budget_id]) }}">
{{ transaction.budget_name }}
</a>
- {% endif %}
+ @endif
</td>
<td>
{% if transaction.tags|length > 0 %}
@@ -176,17 +176,17 @@
<span class="badge text-bg-success">{{ tag }}</span>
{% endfor %}
</p>
- {% endif %}
+ @endif
{% if 0 != transaction.piggy_bank_id %}
<p>
<a href="{{ route('piggy-banks.show', [transaction.piggy_bank_id]) }}">{{ transaction.piggy_bank_name }}</a>
</p>
- {% endif %}
+ @endif
{% if 0 != transaction.bill_id %}
<p>
<a href="{{ route('subscriptions.show', [transaction.bill_id]) }}">{{ transaction.bill_name }}</a>
</p>
- {% endif %}
+ @endif
</td>
</tr>
{% endfor %}
diff --git a/resources/views/reports/audit/report.twig b/resources/views/reports/audit/report.twig
index cb4956e7ee..b1019d197e 100644
--- a/resources/views/reports/audit/report.twig
+++ b/resources/views/reports/audit/report.twig
@@ -16,7 +16,7 @@
<ul class="list-inline">
{% for hide in hideable %}
<li><input
- {% if hide in defaultShow %}checked{% endif %}
+ {% if hide in defaultShow %}checked@endif
type="checkbox" class="fw-normal audit-option-checkbox" name="option[]" value="{{ hide }}" id="option_{{ hide }}"/> <label
for="option_{{ hide }}">{{ trans('list.'~hide) }}</label></li>
{% endfor %}
@@ -36,7 +36,7 @@
<h3 class="card-title">{{ account.name }}</h3>
</div>
{% set url = route('accounts.show',account.id) %}
- {% if not auditData[account.id].exists %}
+ {% if not auditData[$account->id].exists %}
<div class="card-body">
<em>
@@ -50,18 +50,18 @@
</em>
</div>
- {% else %}
+ @else
<div class="box-body no-padding">
<p class="p-4">
{{ trans('firefly.audit_end_balance',
{
account_name: account.name|escape,
url: url,
- end: auditData[account.id].dayBefore,
- balance: formatAmountByAccount(account, auditData[account.id].dayBeforeBalance.balance)
+ end: auditData[$account->id].dayBefore,
+ balance: formatAmountByAccount(account, auditData[$account->id].dayBeforeBalance.balance)
})|raw }}
</p>
- {% include 'reports.partials.journals-audit' with {'journals': auditData[account.id].journals,'account':account} %}
+ {% include 'reports.partials.journals-audit' with {'journals': auditData[$account->id].journals,'account':account} %}
<p class="p-4">
@@ -69,12 +69,12 @@
{
account_name: account.name|escape,
url: url,
- end: auditData[account.id].end,
- balance: formatAmountByAccount(account,auditData[account.id].endBalance)
+ end: auditData[$account->id].end,
+ balance: formatAmountByAccount(account,auditData[$account->id].endBalance)
})|raw }}
</p>
</div>
- {% endif %}
+ @endif
</div>
</div>
</div>
diff --git a/resources/views/reports/budget/partials/account-per-budget.twig b/resources/views/reports/budget/partials/account-per-budget.twig
index d2426a79b2..43c3e22c76 100644
--- a/resources/views/reports/budget/partials/account-per-budget.twig
+++ b/resources/views/reports/budget/partials/account-per-budget.twig
@@ -17,10 +17,10 @@
{% for budget in budgets %}
<td class="text-right">
{% if currency.budgets[budget.id] %}
- {{ formatAmountBySymbol(currency.budgets[budget.id], currency.currency_symbol, currency.currency_decimal_places) }}
- {% else %}
+ {{ format_amount_by_symbol(currency.budgets[budget.id], currency.currency_symbol, currency.currency_decimal_places) }}
+ @else
&mdash;
- {% endif %}
+ @endif
</td>
{% endfor %}
</tr>
diff --git a/resources/views/reports/budget/partials/accounts.twig b/resources/views/reports/budget/partials/accounts.twig
index b73a76b844..e934587891 100644
--- a/resources/views/reports/budget/partials/accounts.twig
+++ b/resources/views/reports/budget/partials/accounts.twig
@@ -13,7 +13,7 @@
<a href="{{ route('accounts.show', account.id) }}" title="{{ account.iban }}">{{ account.name }} ({{ currency.currency_name }})</a>
</td>
<td data-value="{{ currency.sum }}" class="text-right">
- {{ formatAmountBySymbol(currency.sum, currency.currency_symbol, currency.currency_decimal_places) }}
+ {{ format_amount_by_symbol(currency.sum, currency.currency_symbol, currency.currency_decimal_places) }}
</td>
</tr>
{% endfor %}
@@ -24,7 +24,7 @@
<tr>
<td>{{ 'sum'|_ }} ({{ sum.currency_name }})</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
</tr>
{% endfor %}
diff --git a/resources/views/reports/budget/partials/avg-expenses.twig b/resources/views/reports/budget/partials/avg-expenses.twig
index 69de2720e4..a3a2231dea 100644
--- a/resources/views/reports/budget/partials/avg-expenses.twig
+++ b/resources/views/reports/budget/partials/avg-expenses.twig
@@ -11,20 +11,20 @@
{% for row in result %}
{% if loop.index > listLength %}
<tr class="overListLength">
- {% else %}
+ @else
<tr>
- {% endif %}
+ @endif
<td data-sortable="false">
<a href="{{ route('accounts.show', row.destination_account_id) }}">
{{ row.destination_account_name }}
</a>
</td>
<td data-value="{{ row.avg }}" class="text-right">
- {{ formatAmountBySymbol(row.avg, row.currency_symbol, row.currency_decimal_places) }}
+ {{ format_amount_by_symbol(row.avg, row.currency_symbol, row.currency_decimal_places) }}
</td>
<td data-value="{{ row.sum }}" class="text-right">
- {{ formatAmountBySymbol(row.sum, row.currency_symbol, row.currency_decimal_places) }}
+ {{ format_amount_by_symbol(row.sum, row.currency_symbol, row.currency_decimal_places) }}
</td>
<td data-value="{{ row.transactions }}">
@@ -41,6 +41,6 @@
<a href="#" class="listLengthTrigger">{{ trans('firefly.show_full_list',{number:incomeTopLength}) }}</a>
</td>
</tr>
- {% endif %}
+ @endif
</tfoot>
</table>
diff --git a/resources/views/reports/budget/partials/budgets.twig b/resources/views/reports/budget/partials/budgets.twig
index 96c701c5b0..f9951e2a3e 100644
--- a/resources/views/reports/budget/partials/budgets.twig
+++ b/resources/views/reports/budget/partials/budgets.twig
@@ -16,14 +16,14 @@
<td class="text-right">&mdash;</td>
<td>&nbsp;</td>
</tr>
- {% endif %}
+ @endif
{% for currency in budget.currencies %}
<tr>
<td data-value="{{ budget.name }} ({{ currency.currency_name }})">
<a href="{{ route('budgets.show', budget.id) }}" title="{{ budget.name }}">{{ budget.name }} ({{ currency.currency_name }})</a>
</td>
<td data-value="{{ currency.sum }}" class="text-right">
- {{ formatAmountBySymbol(currency.sum, currency.currency_symbol, currency.currency_decimal_places) }}
+ {{ format_amount_by_symbol(currency.sum, currency.currency_symbol, currency.currency_decimal_places) }}
</td>
<td data-value="{{ currency.sum_pct }}">{{ currency.sum_pct }}%</td>
</tr>
@@ -35,7 +35,7 @@
<tr>
<td>{{ 'sum'|_ }} ({{ sum.currency_name }})</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td>&nbsp;</td>
</tr>
diff --git a/resources/views/reports/budget/partials/top-expenses.twig b/resources/views/reports/budget/partials/top-expenses.twig
index eb1ffae984..6d9347470a 100644
--- a/resources/views/reports/budget/partials/top-expenses.twig
+++ b/resources/views/reports/budget/partials/top-expenses.twig
@@ -12,9 +12,9 @@
{% for row in result %}
{% if loop.index > listLength %}
<tr class="overListLength">
- {% else %}
+ @else
<tr>
- {% endif %}
+ @endif
<td data-sortable="false">
<a href="{{ route('transactions.show', row.transaction_group_id) }}">
{{ row.description }}
@@ -36,7 +36,7 @@
</td>
<td data-value="{{ row.amount }}" class="text-right">
- {{ formatAmountBySymbol(row.amount, row.currency_symbol, row.currency_decimal_places) }}
+ {{ format_amount_by_symbol(row.amount, row.currency_symbol, row.currency_decimal_places) }}
</td>
</tr>
@@ -49,6 +49,6 @@
<a href="#" class="listLengthTrigger">{{ trans('firefly.show_full_list',{number:incomeTopLength}) }}</a>
</td>
</tr>
- {% endif %}
+ @endif
</tfoot>
</table>
diff --git a/resources/views/reports/category/partials/account-per-category.twig b/resources/views/reports/category/partials/account-per-category.twig
index 99b4a0e1f0..c5bfb5fb46 100644
--- a/resources/views/reports/category/partials/account-per-category.twig
+++ b/resources/views/reports/category/partials/account-per-category.twig
@@ -17,11 +17,11 @@
{% for category in categories %}
<td class="text-right">
{% if currency.categories[category.id] %}
- <span title="{{ 'earned'|_ }}: {{ formatAmountBySymbol(currency.categories[category.id].earned, currency.currency_symbol, currency.currency_decimal_places, false) }}, {{ 'spent'|_ }}: {{ formatAmountBySymbol(currency.categories[category.id].spent, currency.currency_symbol, currency.currency_decimal_places, false) }}"
- {{ formatAmountBySymbol(currency.categories[category.id].sum, currency.currency_symbol, currency.currency_decimal_places) }}
- {% else %}
+ <span title="{{ 'earned'|_ }}: {{ format_amount_by_symbol(currency.categories[category.id].earned, currency.currency_symbol, currency.currency_decimal_places, false) }}, {{ 'spent'|_ }}: {{ format_amount_by_symbol(currency.categories[category.id].spent, currency.currency_symbol, currency.currency_decimal_places, false) }}"
+ {{ format_amount_by_symbol(currency.categories[category.id].sum, currency.currency_symbol, currency.currency_decimal_places) }}
+ @else
&mdash;
- {% endif %}
+ @endif
</td>
{% endfor %}
</tr>
diff --git a/resources/views/reports/category/partials/accounts.twig b/resources/views/reports/category/partials/accounts.twig
index c493e6c549..3a8c9f5036 100644
--- a/resources/views/reports/category/partials/accounts.twig
+++ b/resources/views/reports/category/partials/accounts.twig
@@ -15,13 +15,13 @@
<a href="{{ route('accounts.show', account.id) }}" title="{{ account.iban }}">{{ account.name }} ({{ currency.currency_name }})</a>
</td>
<td data-value="{{ currency.spent }}" class="text-right">
- {{ formatAmountBySymbol(currency.spent, currency.currency_symbol, currency.currency_decimal_places) }}
+ {{ format_amount_by_symbol(currency.spent, currency.currency_symbol, currency.currency_decimal_places) }}
</td>
<td data-value="{{ currency.earned }}" class="text-right">
- {{ formatAmountBySymbol(currency.earned, currency.currency_symbol, currency.currency_decimal_places) }}
+ {{ format_amount_by_symbol(currency.earned, currency.currency_symbol, currency.currency_decimal_places) }}
</td>
<td data-value="{{ currency.sum }}" class="text-right">
- {{ formatAmountBySymbol(currency.sum, currency.currency_symbol, currency.currency_decimal_places) }}
+ {{ format_amount_by_symbol(currency.sum, currency.currency_symbol, currency.currency_decimal_places) }}
</td>
</tr>
{% endfor %}
@@ -32,13 +32,13 @@
<tr>
<td>{{ 'sum'|_ }} ({{ sum.currency_name }})</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.spent_sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.spent_sum, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.earned_sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.earned_sum, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.total_sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.total_sum, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
</tr>
{% endfor %}
diff --git a/resources/views/reports/category/partials/avg-expenses.twig b/resources/views/reports/category/partials/avg-expenses.twig
index 69de2720e4..a3a2231dea 100644
--- a/resources/views/reports/category/partials/avg-expenses.twig
+++ b/resources/views/reports/category/partials/avg-expenses.twig
@@ -11,20 +11,20 @@
{% for row in result %}
{% if loop.index > listLength %}
<tr class="overListLength">
- {% else %}
+ @else
<tr>
- {% endif %}
+ @endif
<td data-sortable="false">
<a href="{{ route('accounts.show', row.destination_account_id) }}">
{{ row.destination_account_name }}
</a>
</td>
<td data-value="{{ row.avg }}" class="text-right">
- {{ formatAmountBySymbol(row.avg, row.currency_symbol, row.currency_decimal_places) }}
+ {{ format_amount_by_symbol(row.avg, row.currency_symbol, row.currency_decimal_places) }}
</td>
<td data-value="{{ row.sum }}" class="text-right">
- {{ formatAmountBySymbol(row.sum, row.currency_symbol, row.currency_decimal_places) }}
+ {{ format_amount_by_symbol(row.sum, row.currency_symbol, row.currency_decimal_places) }}
</td>
<td data-value="{{ row.transactions }}">
@@ -41,6 +41,6 @@
<a href="#" class="listLengthTrigger">{{ trans('firefly.show_full_list',{number:incomeTopLength}) }}</a>
</td>
</tr>
- {% endif %}
+ @endif
</tfoot>
</table>
diff --git a/resources/views/reports/category/partials/avg-income.twig b/resources/views/reports/category/partials/avg-income.twig
index f2ca8553a9..316668ed92 100644
--- a/resources/views/reports/category/partials/avg-income.twig
+++ b/resources/views/reports/category/partials/avg-income.twig
@@ -11,20 +11,20 @@
{% for row in result %}
{% if loop.index > listLength %}
<tr class="overListLength">
- {% else %}
+ @else
<tr>
- {% endif %}
+ @endif
<td data-sortable="false">
<a href="{{ route('accounts.show', row.source_account_id) }}">
{{ row.source_account_name }}
</a>
</td>
<td data-value="{{ row.avg }}" class="text-right">
- {{ formatAmountBySymbol(row.avg, row.currency_symbol, row.currency_decimal_places) }}
+ {{ format_amount_by_symbol(row.avg, row.currency_symbol, row.currency_decimal_places) }}
</td>
<td data-value="{{ row.sum }}" class="text-right">
- {{ formatAmountBySymbol(row.sum, row.currency_symbol, row.currency_decimal_places) }}
+ {{ format_amount_by_symbol(row.sum, row.currency_symbol, row.currency_decimal_places) }}
</td>
<td data-value="{{ row.transactions }}">
@@ -41,6 +41,6 @@
<a href="#" class="listLengthTrigger">{{ trans('firefly.show_full_list',{number:incomeTopLength}) }}</a>
</td>
</tr>
- {% endif %}
+ @endif
</tfoot>
</table>
diff --git a/resources/views/reports/category/partials/categories.twig b/resources/views/reports/category/partials/categories.twig
index 4530ab4740..99f2aed558 100644
--- a/resources/views/reports/category/partials/categories.twig
+++ b/resources/views/reports/category/partials/categories.twig
@@ -18,20 +18,20 @@
<td class="text-right">&mdash;</td>
<td class="text-right">&mdash;</td>
</tr>
- {% endif %}
+ @endif
{% for currency in category.currencies %}
<tr>
<td data-value="{{ category.name }} ({{ currency.currency_name }})">
<a href="{{ route('categories.show', category.id) }}" title="{{ category.name }}">{{ category.name }} ({{ currency.currency_name }})</a>
</td>
<td data-value="{{ currency.spent }}" class="text-right">
- {{ formatAmountBySymbol(currency.spent, currency.currency_symbol, currency.currency_decimal_places) }}
+ {{ format_amount_by_symbol(currency.spent, currency.currency_symbol, currency.currency_decimal_places) }}
</td>
<td data-value="{{ currency.earned }}" class="text-right">
- {{ formatAmountBySymbol(currency.earned, currency.currency_symbol, currency.currency_decimal_places) }}
+ {{ format_amount_by_symbol(currency.earned, currency.currency_symbol, currency.currency_decimal_places) }}
</td>
<td data-value="{{ currency.sum }}" class="text-right">
- {{ formatAmountBySymbol(currency.sum, currency.currency_symbol, currency.currency_decimal_places) }}
+ {{ format_amount_by_symbol(currency.sum, currency.currency_symbol, currency.currency_decimal_places) }}
</td>
</tr>
{% endfor %}
@@ -42,13 +42,13 @@
<tr>
<td>{{ 'sum'|_ }} ({{ sum.currency_name }})</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.spent_sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.spent_sum, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.earned_sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.earned_sum, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.total_sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.total_sum, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
</tr>
{% endfor %}
diff --git a/resources/views/reports/category/partials/top-expenses.twig b/resources/views/reports/category/partials/top-expenses.twig
index 095e226e0e..a6de7fe6ea 100644
--- a/resources/views/reports/category/partials/top-expenses.twig
+++ b/resources/views/reports/category/partials/top-expenses.twig
@@ -12,9 +12,9 @@
{% for row in result %}
{% if loop.index > listLength %}
<tr class="overListLength">
- {% else %}
+ @else
<tr>
- {% endif %}
+ @endif
<td data-sortable="false">
<a href="{{ route('transactions.show', row.transaction_group_id) }}">
{{ row.description }}
@@ -36,7 +36,7 @@
</td>
<td data-value="{{ row.amount }}" class="text-right">
- {{ formatAmountBySymbol(row.amount, row.currency_symbol, row.currency_decimal_places) }}
+ {{ format_amount_by_symbol(row.amount, row.currency_symbol, row.currency_decimal_places) }}
</td>
</tr>
@@ -49,6 +49,6 @@
<a href="#" class="listLengthTrigger">{{ trans('firefly.show_full_list',{number:incomeTopLength}) }}</a>
</td>
</tr>
- {% endif %}
+ @endif
</tfoot>
</table>
diff --git a/resources/views/reports/category/partials/top-income.twig b/resources/views/reports/category/partials/top-income.twig
index 07a961d356..838d2e07ed 100644
--- a/resources/views/reports/category/partials/top-income.twig
+++ b/resources/views/reports/category/partials/top-income.twig
@@ -12,9 +12,9 @@
{% for row in result %}
{% if loop.index > listLength %}
<tr class="overListLength">
- {% else %}
+ @else
<tr>
- {% endif %}
+ @endif
<td data-sortable="false">
<a href="{{ route('transactions.show', row.transaction_group_id) }}">
{{ row.description }}
@@ -36,7 +36,7 @@
</td>
<td data-value="{{ row.amount }}" class="text-right">
- {{ formatAmountBySymbol(row.amount, row.currency_symbol, row.currency_decimal_places) }}
+ {{ format_amount_by_symbol(row.amount, row.currency_symbol, row.currency_decimal_places) }}
</td>
</tr>
@@ -49,6 +49,6 @@
<a href="#" class="listLengthTrigger">{{ trans('firefly.show_full_list',{number:incomeTopLength}) }}</a>
</td>
</tr>
- {% endif %}
+ @endif
</tfoot>
</table>
diff --git a/resources/views/reports/double/partials/accounts-per-asset.twig b/resources/views/reports/double/partials/accounts-per-asset.twig
index b0c6cd98c3..5abfbddee1 100644
--- a/resources/views/reports/double/partials/accounts-per-asset.twig
+++ b/resources/views/reports/double/partials/accounts-per-asset.twig
@@ -14,13 +14,13 @@
<a href="{{ route('accounts.show', [account.account_id]) }}" title="{{ account.account_name }}">{{ account.account_name }}</a>
</td>
<td class="text-right">
- {{ formatAmountBySymbol(account.spent, account.currency_symbol, account.currency_decimal_places) }}
+ {{ format_amount_by_symbol(account.spent, account.currency_symbol, account.currency_decimal_places) }}
</td>
<td class="text-right">
- {{ formatAmountBySymbol(account.earned, account.currency_symbol, account.currency_decimal_places) }}
+ {{ format_amount_by_symbol(account.earned, account.currency_symbol, account.currency_decimal_places) }}
</td>
<td class="text-right">
- {{ formatAmountBySymbol(account.sum, account.currency_symbol, account.currency_decimal_places) }}
+ {{ format_amount_by_symbol(account.sum, account.currency_symbol, account.currency_decimal_places) }}
</td>
</tr>
{% endfor %}
@@ -30,13 +30,13 @@
<tr>
<td>{{ 'sum'|_ }} ({{ sum.currency_name }})</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.spent, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.spent, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.earned, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.earned, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
</tr>
{% endfor %}
diff --git a/resources/views/reports/double/partials/accounts.twig b/resources/views/reports/double/partials/accounts.twig
index aa3e20d816..20b1391f3d 100644
--- a/resources/views/reports/double/partials/accounts.twig
+++ b/resources/views/reports/double/partials/accounts.twig
@@ -13,25 +13,25 @@
<td>
{% if account.source_name == account.dest_name %}
{{ account.source_name }}
- {% else %}
+ @else
{{ account.source_name }} / {{ account.dest_name }}
- {% endif %}
+ @endif
{% if account.source_iban != '' and account.dest_iban != '' %}
{% if account.source_iban == account.dest_iban %}
({{ account.source_iban }})
- {% else %}
+ @else
({{ account.source_iban }} / ({{ account.dest_iban }}))
- {% endif %}
- {% endif %}
+ @endif
+ @endif
</td>
<td class="text-right">
- {{ formatAmountBySymbol(account.spent, account.currency_symbol, account.currency_decimal_places) }}
+ {{ format_amount_by_symbol(account.spent, account.currency_symbol, account.currency_decimal_places) }}
</td>
<td class="text-right">
- {{ formatAmountBySymbol(account.earned, account.currency_symbol, account.currency_decimal_places) }}
+ {{ format_amount_by_symbol(account.earned, account.currency_symbol, account.currency_decimal_places) }}
</td>
<td class="text-right">
- {{ formatAmountBySymbol(account.sum, account.currency_symbol, account.currency_decimal_places) }}
+ {{ format_amount_by_symbol(account.sum, account.currency_symbol, account.currency_decimal_places) }}
</td>
</tr>
{% endfor %}
@@ -41,13 +41,13 @@
<tr>
<td>{{ 'sum'|_ }} ({{ sum.currency_name }})</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.spent, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.spent, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.earned, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.earned, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
</tr>
{% endfor %}
diff --git a/resources/views/reports/double/partials/avg-expenses.twig b/resources/views/reports/double/partials/avg-expenses.twig
index e54986d557..4ae4951014 100644
--- a/resources/views/reports/double/partials/avg-expenses.twig
+++ b/resources/views/reports/double/partials/avg-expenses.twig
@@ -11,20 +11,20 @@
{% for row in result %}
{% if loop.index > listLength %}
<tr class="overListLength">
- {% else %}
+ @else
<tr>
- {% endif %}
+ @endif
<td data-sortable="false">
<a href="{{ route('accounts.show', row.source_account_id) }}">
{{ row.source_account_name }}
</a>
</td>
<td data-value="{{ row.avg }}" class="text-right">
- {{ formatAmountBySymbol(row.avg, row.currency_symbol, row.currency_decimal_places) }}
+ {{ format_amount_by_symbol(row.avg, row.currency_symbol, row.currency_decimal_places) }}
</td>
<td data-value="{{ row.sum }}" class="text-right">
- {{ formatAmountBySymbol(row.sum, row.currency_symbol, row.currency_decimal_places) }}
+ {{ format_amount_by_symbol(row.sum, row.currency_symbol, row.currency_decimal_places) }}
</td>
<td data-value="{{ row.transactions }}">
@@ -41,6 +41,6 @@
<a href="#" class="listLengthTrigger">{{ trans('firefly.show_full_list',{number:incomeTopLength}) }}</a>
</td>
</tr>
- {% endif %}
+ @endif
</tfoot>
</table>
diff --git a/resources/views/reports/double/partials/avg-income.twig b/resources/views/reports/double/partials/avg-income.twig
index 69de2720e4..a3a2231dea 100644
--- a/resources/views/reports/double/partials/avg-income.twig
+++ b/resources/views/reports/double/partials/avg-income.twig
@@ -11,20 +11,20 @@
{% for row in result %}
{% if loop.index > listLength %}
<tr class="overListLength">
- {% else %}
+ @else
<tr>
- {% endif %}
+ @endif
<td data-sortable="false">
<a href="{{ route('accounts.show', row.destination_account_id) }}">
{{ row.destination_account_name }}
</a>
</td>
<td data-value="{{ row.avg }}" class="text-right">
- {{ formatAmountBySymbol(row.avg, row.currency_symbol, row.currency_decimal_places) }}
+ {{ format_amount_by_symbol(row.avg, row.currency_symbol, row.currency_decimal_places) }}
</td>
<td data-value="{{ row.sum }}" class="text-right">
- {{ formatAmountBySymbol(row.sum, row.currency_symbol, row.currency_decimal_places) }}
+ {{ format_amount_by_symbol(row.sum, row.currency_symbol, row.currency_decimal_places) }}
</td>
<td data-value="{{ row.transactions }}">
@@ -41,6 +41,6 @@
<a href="#" class="listLengthTrigger">{{ trans('firefly.show_full_list',{number:incomeTopLength}) }}</a>
</td>
</tr>
- {% endif %}
+ @endif
</tfoot>
</table>
diff --git a/resources/views/reports/double/partials/top-expenses.twig b/resources/views/reports/double/partials/top-expenses.twig
index 7c15afcf7d..9d91e38999 100644
--- a/resources/views/reports/double/partials/top-expenses.twig
+++ b/resources/views/reports/double/partials/top-expenses.twig
@@ -12,9 +12,9 @@
{% for row in result %}
{% if loop.index > listLength %}
<tr class="overListLength">
- {% else %}
+ @else
<tr>
- {% endif %}
+ @endif
<td data-sortable="false">
<a href="{{ route('transactions.show', row.transaction_group_id) }}">
{{ row.description }}
@@ -37,7 +37,7 @@
<td data-value="{{ row.amount }}" class="text-right">
- {{ formatAmountBySymbol(row.amount, row.currency_symbol, row.currency_decimal_places) }}
+ {{ format_amount_by_symbol(row.amount, row.currency_symbol, row.currency_decimal_places) }}
</td>
</tr>
@@ -50,6 +50,6 @@
<a href="#" class="listLengthTrigger">{{ trans('firefly.show_full_list',{number:incomeTopLength}) }}</a>
</td>
</tr>
- {% endif %}
+ @endif
</tfoot>
</table>
diff --git a/resources/views/reports/double/partials/top-income.twig b/resources/views/reports/double/partials/top-income.twig
index 7c15afcf7d..9d91e38999 100644
--- a/resources/views/reports/double/partials/top-income.twig
+++ b/resources/views/reports/double/partials/top-income.twig
@@ -12,9 +12,9 @@
{% for row in result %}
{% if loop.index > listLength %}
<tr class="overListLength">
- {% else %}
+ @else
<tr>
- {% endif %}
+ @endif
<td data-sortable="false">
<a href="{{ route('transactions.show', row.transaction_group_id) }}">
{{ row.description }}
@@ -37,7 +37,7 @@
<td data-value="{{ row.amount }}" class="text-right">
- {{ formatAmountBySymbol(row.amount, row.currency_symbol, row.currency_decimal_places) }}
+ {{ format_amount_by_symbol(row.amount, row.currency_symbol, row.currency_decimal_places) }}
</td>
</tr>
@@ -50,6 +50,6 @@
<a href="#" class="listLengthTrigger">{{ trans('firefly.show_full_list',{number:incomeTopLength}) }}</a>
</td>
</tr>
- {% endif %}
+ @endif
</tfoot>
</table>
diff --git a/resources/views/reports/double/report.twig b/resources/views/reports/double/report.twig
index b4c5be2992..30d7235e4b 100644
--- a/resources/views/reports/double/report.twig
+++ b/resources/views/reports/double/report.twig
@@ -122,7 +122,7 @@
<div class="col-lg-12">
<div class="box" id="incomeAndExpensesChart">
<div class="card-header">
- <h3 class="card-title">{{ 'income_and_expenses'|_ }} ({{ account.name }}) {% if account.iban %}({{ account.iban }}){% endif %}</h3>
+ <h3 class="card-title">{{ 'income_and_expenses'|_ }} ({{ account.name }}) {% if account.iban %}({{ account.iban }})@endif</h3>
</div>
<div class="card-body">
<canvas class="main_double_canvas"
diff --git a/resources/views/reports/options/double.twig b/resources/views/reports/options/double.twig
index 4babc4e177..a257bb24c7 100644
--- a/resources/views/reports/options/double.twig
+++ b/resources/views/reports/options/double.twig
@@ -3,7 +3,7 @@
<div class="col-sm-9">
<select id="inputDoubleAccounts" name="double[]" multiple="multiple" class="form-control">
{% for account in set %}
- <option value="{{ account.id }}" label="{{ account.name }}{% if account.iban !='' %} ({{ account.iban }}){% endif %}">{{ account.name }}{% if account.iban !='' %} ({{ account.iban }}){% endif %}</option>
+ <option value="{{ account.id }}" label="{{ account.name }}{% if account.iban !='' %} ({{ account.iban }})@endif">{{ account.name }}{% if account.iban !='' %} ({{ account.iban }})@endif</option>
{% endfor %}
</select>
</div>
diff --git a/resources/views/reports/partials/accounts.twig b/resources/views/reports/partials/accounts.twig
index df501c7f3f..367d2a5080 100644
--- a/resources/views/reports/partials/accounts.twig
+++ b/resources/views/reports/partials/accounts.twig
@@ -14,14 +14,14 @@
<a href="{{ route('accounts.show',account.id) }}" title="{{ account.name }}">{{ account.name }}</a>
</td>
<td class="text-right hidden-xs" data-value="{{ account.start_balance }}">
- {{ formatAmountBySymbol(account.start_balance, account.currency_symbol, account.currency_decimal_places) }}
+ {{ format_amount_by_symbol(account.start_balance, account.currency_symbol, account.currency_decimal_places) }}
</td>
<td class="text-right hidden-xs" data-value="{{ account.end_balance }}">
- {{ formatAmountBySymbol(account.end_balance, account.currency_symbol, account.currency_decimal_places) }}
+ {{ format_amount_by_symbol(account.end_balance, account.currency_symbol, account.currency_decimal_places) }}
</td>
<td class="text-right"
data-value="{{ (account.end_balance - account.start_balance) }}">
- {{ formatAmountBySymbol(account.end_balance - account.start_balance, account.currency_symbol, account.currency_decimal_places) }}
+ {{ format_amount_by_symbol(account.end_balance - account.start_balance, account.currency_symbol, account.currency_decimal_places) }}
</td>
</tr>
{% endfor %}
@@ -34,13 +34,13 @@
&nbsp;
</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.start, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.start, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.end, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.end, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.difference, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.difference, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
</tr>
{% endfor %}
diff --git a/resources/views/reports/partials/balance.twig b/resources/views/reports/partials/balance.twig
index 5726bbbdb2..0a166ec5f4 100644
--- a/resources/views/reports/partials/balance.twig
+++ b/resources/views/reports/partials/balance.twig
@@ -6,7 +6,7 @@
{% if account.sum != 0 %}
<th class="text-right hidden-xs"><a href="{{ route('accounts.show',account.id) }}"
title="{{ account.iban|default(account.name) }}">{{ account.name }}</a></th>
- {% endif %}
+ @endif
{% endfor %}
<th class="text-right">{{ 'sum'|_ }}</th>
</tr>
@@ -20,30 +20,30 @@
<a href="{{ route('budgets.show', [budget.budget_id]) }}">{{ budget.budget_name }}</a>
</td>
{% for account in report.accounts %}
- {% if budget.spent[account.id] %}
+ {% if budget.spent[$account->id] %}
<td class="text-right">
- {{ formatAmountBySymbol(budget.spent[account.id].spent, budget.spent[account.id].currency_symbol, budget.spent[account.id].currency_decimal_places) }}
+ {{ format_amount_by_symbol(budget.spent[$account->id].spent, budget.spent[$account->id].currency_symbol, budget.spent[$account->id].currency_decimal_places) }}
<span data-location="budget-entry"
data-budget-id="{{ budget.budget_id }}"
data-account-id="{{ account.id }}"
- data-currency-id="{{ budget.spent[account.id].currency_id }}"
+ data-currency-id="{{ budget.spent[$account->id].currency_id }}"
class="fa fa-info-circle text-muted firefly-info-button"></span>
</td>
- {% else %}
- {% if report.accounts[account.id].sum != 0 %}
+ @else
+ {% if report.accounts[$account->id].sum != 0 %}
<td>&nbsp;</td>
- {% endif %}
- {% endif %}
+ @endif
+ @endif
{% endfor %}
<td class="text-right">
{% for sum in report.sums[budget.budget_id] %}
- {{ formatAmountBySymbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }}
<br/>
{% endfor %}
</td>
</tr>
- {% endif %}
+ @endif
{% endfor %}
</tbody>
<tfoot>
@@ -52,9 +52,9 @@
{% for account in report.accounts %}
{% if account.sum != 0 %}
<td class="text-right">
- {{ formatAmountBySymbol(account.sum, account.currency_symbol, account.currency_decimal_places) }}
+ {{ format_amount_by_symbol(account.sum, account.currency_symbol, account.currency_decimal_places) }}
</td>
- {% endif %}
+ @endif
{% endfor %}
</tr>
</tfoot>
diff --git a/resources/views/reports/partials/bills.twig b/resources/views/reports/partials/bills.twig
index 93c410c0b8..33e6fe1586 100644
--- a/resources/views/reports/partials/bills.twig
+++ b/resources/views/reports/partials/bills.twig
@@ -16,10 +16,10 @@
<a href="{{ route('subscriptions.show',bill.id) }}">{{ bill.name }}</a>
</td>
<td class="hidden-xs text-right">
- {{ formatAmountBySymbol(bill.amount_min, bill.currency_symbol, bill.currency_decimal_places) }}
+ {{ format_amount_by_symbol(bill.amount_min, bill.currency_symbol, bill.currency_decimal_places) }}
</td>
<td class="hidden-xs text-right">
- {{ formatAmountBySymbol(bill.amount_max, bill.currency_symbol, bill.currency_decimal_places) }}
+ {{ format_amount_by_symbol(bill.amount_max, bill.currency_symbol, bill.currency_decimal_places) }}
</td>
<td data-value="{{ bill.expected_dates[0].format('Y-m-d')|default('0000-00-00') }}">
{% for date in bill.expected_dates %}
@@ -33,16 +33,16 @@
{% set hitCount = hitCount+1 %}
<a title="{{ journal.date.isoFormat(monthAndDayFormat) }}"
href="{{ route('transactions.show', [journal.transaction_group_id]) }}">{{ journal.description }}</a>,
- {{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }}
+ {{ format_amount_by_symbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }}
<br/>
{% endfor %}
{% endfor %}
{% if hitCount == 0 %}
<em>{{ 'notCharged'|_ }}</em>
- {% endif %}
+ @endif
</td>
</tr>
- {% endif %}
+ @endif
{% endfor %}
@@ -64,18 +64,18 @@
{{ formatAmountByCurrency(line.getCurrency, line.getAmount) }}
</a>
</td>
- {% endif %}
+ @endif
{# if not but is active, show "not yet charged #}
{% if not line.isHit and line.isActive %}
<td data-value="0" class="bg-success">{{ 'notCharged'|_ }}</td>
- {% endif %}
+ @endif
{% if not line.isActive and not line.isHit %}
<td data-value="-1">&nbsp;</td>
- {% endif %}
+ @endif
<td data-value="{{ (line.getMax - line.getAmount) }}" class="text-right hidden-xs">
{% if line.isHit %}
{{ formatAmountByCurrency(line.getCurrency, (line.getMax + line.getAmount)) }}
- {% endif %}
+ @endif
</td>
</tr>
diff --git a/resources/views/reports/partials/budget-period.twig b/resources/views/reports/partials/budget-period.twig
index 23ac2d74b4..063ccccd0c 100644
--- a/resources/views/reports/partials/budget-period.twig
+++ b/resources/views/reports/partials/budget-period.twig
@@ -15,9 +15,9 @@
<td data-value="{{ info.name }}">
{% if info.id != 0 %}
<a class="btn btn-outline-secondary btn-xs" href="{{ route('budgets.show', [info.id]) }}"><span class="fa fa-external-link"></span></a>
- {% else %}
+ @else
<a class="btn btn-outline-secondary btn-xs" href="{{ route('budgets.no-budget') }}"><span class="fa fa-external-link"></span></a>
- {% endif %}
+ @endif
</td>
<td data-value="{{ info.name }}">
<a title="{{ info.name }}" href="#" data-budget="{{ info.id }}" data-currency="{{ info.currency_id }}" class="budget-chart-activate">{{ info.name }}</a>
@@ -25,20 +25,20 @@
{% for key, period in periods %}
{% if(info.entries[key]) %}
<td data-value="{{ info.entries[key] }}" class="text-right">
- {{ formatAmountBySymbol(info.entries[key], info.currency_symbol, info.currency_decimal_places) }}
+ {{ format_amount_by_symbol(info.entries[key], info.currency_symbol, info.currency_decimal_places) }}
</td>
- {% else %}
+ @else
<td data-value="0" class="text-right">
- {{ formatAmountBySymbol(0, info.currency_symbol, info.currency_decimal_places) }}
+ {{ format_amount_by_symbol(0, info.currency_symbol, info.currency_decimal_places) }}
</td>
- {% endif %}
+ @endif
{% endfor %}
<td data-value="{{ info.avg }}" class="text-right">
- {{ formatAmountBySymbol(info.avg, info.currency_symbol, info.currency_decimal_places) }}
+ {{ format_amount_by_symbol(info.avg, info.currency_symbol, info.currency_decimal_places) }}
</td>
<td data-value="{{ info.sum }}" class="text-right">
- {{ formatAmountBySymbol(info.sum, info.currency_symbol, info.currency_decimal_places) }}
+ {{ format_amount_by_symbol(info.sum, info.currency_symbol, info.currency_decimal_places) }}
</td>
</tr>
{% endfor %}
diff --git a/resources/views/reports/partials/budgets.twig b/resources/views/reports/partials/budgets.twig
index fc4b85a0c9..e91134f613 100644
--- a/resources/views/reports/partials/budgets.twig
+++ b/resources/views/reports/partials/budgets.twig
@@ -20,11 +20,11 @@
<td data-value="zzz">
<em>{{ 'no_budget'|_ }} ({{ budget_limit.currency_name }})</em>
</td>
- {% else %}
+ @else
<td data-value="{{ budget.budget_name }}">
<a href="{{ route('budgets.show', [budget.budget_id]) }}">{{ budget.budget_name }}</a>
</td>
- {% endif %}
+ @endif
<!-- date, hidden on mobile -->
<td class="hidden-xs" data-value="{{ budget_limit.start_date.format('Y-m-d')|default('0000-00-00') }}">
{% if null != budget_limit.budget_limit_id %}
@@ -33,14 +33,14 @@
&mdash;
{{ budget_limit.end_date.isoFormat(monthAndDayFormat) }}
</a>
- {% endif %}
+ @endif
</td>
<!-- budgeted, hidden on mobile -->
<td data-value="{{ budget_limit.budgeted|default(0) }}" class="text-right hidden-xs">
{% if null != budget_limit.budgeted %}
- {{ formatAmountBySymbol(budget_limit.budgeted, budget_limit.currency_symbol, budget_limit.currency_decimal_places) }}
- {% endif %}
+ {{ format_amount_by_symbol(budget_limit.budgeted, budget_limit.currency_symbol, budget_limit.currency_decimal_places) }}
+ @endif
</td>
<!-- percentage, hidden -->
<td data-value="{{ budget_limit.budgeted_pct|default(0) }}" class="hidden-xs">
@@ -50,7 +50,7 @@
<!-- spent, visible on mobile -->
<td data-value="{{ budget_limit.spent|default(0) }}" class="text-right">
- {{ formatAmountBySymbol(budget_limit.spent, budget_limit.currency_symbol, budget_limit.currency_decimal_places) }}
+ {{ format_amount_by_symbol(budget_limit.spent, budget_limit.currency_symbol, budget_limit.currency_decimal_places) }}
</td>
<!-- percentage, hidden -->
<td data-value="{{ budget_limit.spent_pct|default(0) }}" class="hidden-xs">
@@ -61,22 +61,22 @@
<td class="hidden-xs">
{% if budget_limit.spent != 0 %}
<span class="fa text-muted fa-info-circle firefly-info-button"
- data-location="budget-spent-amount" data-currency-id="{{ budget_limit.currency_id }}" data-budget-id="{% if '' == budget.budget_id %}0{% else %}{{ budget.budget_id }}{% endif %}"></span>
- {% endif %}
+ data-location="budget-spent-amount" data-currency-id="{{ budget_limit.currency_id }}" data-budget-id="{% if '' == budget.budget_id %}0@else{{ budget.budget_id }}@endif"></span>
+ @endif
</td>
<!-- left, hidden on mobile -->
<td data-value="{{ budget_limit.left|default(0) }}" class="text-right hidden-xs">
{% if null != budget_limit.left %}
- {{ formatAmountBySymbol(budget_limit.left, budget_limit.currency_symbol, budget_limit.currency_decimal_places) }}
- {% endif %}
+ {{ format_amount_by_symbol(budget_limit.left, budget_limit.currency_symbol, budget_limit.currency_decimal_places) }}
+ @endif
</td>
<!-- overspent, visible. -->
<td data-value="{{ budget_limit.overspent|default(0) }}" class="text-right">
{% if null != budget_limit.overspent %}
- {{ formatAmountBySymbol(budget_limit.overspent, budget_limit.currency_symbol, budget_limit.currency_decimal_places) }}
- {% endif %}
+ {{ format_amount_by_symbol(budget_limit.overspent, budget_limit.currency_symbol, budget_limit.currency_decimal_places) }}
+ @endif
</td>
</tr>
{% endfor %}
@@ -86,13 +86,13 @@
{% for sum in report.sums %}
<tr>
<td colspan="2"><em>{{ 'sum'|_ }} ({{ sum.currency_name }})</em></td>
- <td class="text-right">{{ formatAmountBySymbol(sum.budgeted, sum.currency_symbol, sum.currency_decimal_places) }}</td>
+ <td class="text-right">{{ format_amount_by_symbol(sum.budgeted, sum.currency_symbol, sum.currency_decimal_places) }}</td>
<td>&nbsp;</td>
- <td class="text-right">{{ formatAmountBySymbol(sum.spent, sum.currency_symbol, sum.currency_decimal_places) }}</td>
+ <td class="text-right">{{ format_amount_by_symbol(sum.spent, sum.currency_symbol, sum.currency_decimal_places) }}</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
- <td class="text-right">{{ formatAmountBySymbol(sum.left, sum.currency_symbol, sum.currency_decimal_places) }}</td>
- <td class="text-right">{{ formatAmountBySymbol(sum.overspent, sum.currency_symbol, sum.currency_decimal_places) }}</td>
+ <td class="text-right">{{ format_amount_by_symbol(sum.left, sum.currency_symbol, sum.currency_decimal_places) }}</td>
+ <td class="text-right">{{ format_amount_by_symbol(sum.overspent, sum.currency_symbol, sum.currency_decimal_places) }}</td>
</tr>
{% endfor %}
diff --git a/resources/views/reports/partials/categories.twig b/resources/views/reports/partials/categories.twig
index 6ca6967c13..df9d1f0ee8 100644
--- a/resources/views/reports/partials/categories.twig
+++ b/resources/views/reports/partials/categories.twig
@@ -12,15 +12,15 @@
{% for category in report.categories %}
{% if loop.index > listLength %}
<tr class="overListLength">
- {% else %}
+ @else
<tr>
- {% endif %}
+ @endif
<td data-value="{{ category.title }}">
<a href="{{ route('categories.show', category.id) }}">{{ category.title }}</a>
</td>
- <td data-value="{{ category.spent }}" class="text-right">{{ formatAmountBySymbol(category.spent, category.currency_symbol, category.currency_decimal_places, true) }}</td>
- <td data-value="{{ category.earned }}" class="text-right">{{ formatAmountBySymbol(category.earned, category.currency_symbol, category.currency_decimal_places, true) }}</td>
- <td data-value="{{ category.sum }}" class="text-right">{{ formatAmountBySymbol(category.sum, category.currency_symbol, category.currency_decimal_places, true) }}</td>
+ <td data-value="{{ category.spent }}" class="text-right">{{ format_amount_by_symbol(category.spent, category.currency_symbol, category.currency_decimal_places, true) }}</td>
+ <td data-value="{{ category.earned }}" class="text-right">{{ format_amount_by_symbol(category.earned, category.currency_symbol, category.currency_decimal_places, true) }}</td>
+ <td data-value="{{ category.sum }}" class="text-right">{{ format_amount_by_symbol(category.sum, category.currency_symbol, category.currency_decimal_places, true) }}</td>
<td class="twenty-px">
<span class="fa fa-info-circle text-muted firefly-info-button" data-location="category-entry" data-category-id="{{ category.id }}" data-currency-id="{{ category.currency_id }}"
></span>
@@ -35,18 +35,18 @@
<a href="#" class="listLengthTrigger">{{ trans('firefly.show_full_list',{number:incomeTopLength}) }}</a>
</td>
</tr>
- {% endif %}
+ @endif
{% for sum in report.sums %}
<tr>
<td><em>{{ 'sum'|_ }} ({{ sum.currency_name }})</em></td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.spent, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.spent, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.earned, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.earned, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
</tr>
{% endfor %}
diff --git a/resources/views/reports/partials/category-period.twig b/resources/views/reports/partials/category-period.twig
index 1d680434bd..3aba3547c6 100644
--- a/resources/views/reports/partials/category-period.twig
+++ b/resources/views/reports/partials/category-period.twig
@@ -14,9 +14,9 @@
<td data-value="{{ info.title }}">
{% if info.id != 0 %}
<a class="btn btn-outline-secondary btn-xs" href="{{ route('categories.show', [info.id]) }}"><span class="fa fa-external-link"></span></a>
- {% else %}
+ @else
<a class="btn btn-outline-secondary btn-xs" href="{{ route('categories.no-category') }}"><span class="fa fa-external-link"></span></a>
- {% endif %}
+ @endif
</td>
<td data-value="{{ info.title }}">
<a title="{{ info.title }}" href="#" data-currency="{{ info.currency_id }}" data-category="{{ info.id }}" class="category-chart-activate">{{ info.title }}</a>
@@ -25,25 +25,25 @@
{# income first #}
{% if(info.entries[key]) %}
<td data-value="{{ info.entries[key] }}" class="text-right">
- {{ formatAmountBySymbol(info.entries[key], info.currency_symbol, info.currency_decimal_places) }}
+ {{ format_amount_by_symbol(info.entries[key], info.currency_symbol, info.currency_decimal_places) }}
</td>
- {% else %}
+ @else
<td data-value="0" class="text-right">
- {{ formatAmountBySymbol(0, info.currency_symbol, info.currency_decimal_places) }}
+ {{ format_amount_by_symbol(0, info.currency_symbol, info.currency_decimal_places) }}
</td>
- {% endif %}
+ @endif
{% endfor %}
{# if sum of income, display: #}
{% if info.sum %}
<td data-value="{{ info.sum }}" class="text-right">
- {{ formatAmountBySymbol(info.sum, info.currency_symbol, info.currency_decimal_places) }}
+ {{ format_amount_by_symbol(info.sum, info.currency_symbol, info.currency_decimal_places) }}
</td>
- {% else %}
+ @else
<td data-value="0" class="text-right">
- {{ formatAmountBySymbol(0, info.currency_symbol, info.currency_decimal_places) }}
+ {{ format_amount_by_symbol(0, info.currency_symbol, info.currency_decimal_places) }}
</td>
- {% endif %}
+ @endif
</tr>
{% endfor %}
</tbody>
diff --git a/resources/views/reports/partials/exp-budgets.twig b/resources/views/reports/partials/exp-budgets.twig
index 4467ed77b4..9df8d54a73 100644
--- a/resources/views/reports/partials/exp-budgets.twig
+++ b/resources/views/reports/partials/exp-budgets.twig
@@ -8,21 +8,21 @@
<tbody>
{% for budgetId, entry in together %}
<tr>
- <td data-value="{% if entry.budget == null %}zzzzzzzzzzz{% else %}{{ entry.budget }}{% endif %}">
+ <td data-value="{% if entry.budget == null %}zzzzzzzzzzz@else{{ entry.budget }}@endif">
{% if entry.budget == null %}
<a href="{{ route('budgets.no-budget') }}">{{ 'no_budget_squared'|_ }}</a>
- {% else %}
+ @else
<a href="{{ route('budgets.show', budgetId) }}">{{ entry.budget }}</a>
- {% endif %}
+ @endif
</td>
<td data-value="{{ entry.spent.grand_total }}">
{% if entry.spent.per_currency|length ==0 %}
{{ '0'|formatAmount }}
- {% else %}
+ @else
{% for expense in entry.spent.per_currency %}
- {{ formatAmountBySymbol(expense.sum, expense.currency.symbol, expense.currency.dp) }}<br/>
+ {{ format_amount_by_symbol(expense.sum, expense.currency.symbol, expense.currency.dp) }}<br/>
{% endfor %}
- {% endif %}
+ @endif
</td>
</tr>
{% endfor %}
diff --git a/resources/views/reports/partials/exp-categories.twig b/resources/views/reports/partials/exp-categories.twig
index c3078206b0..57eb135385 100644
--- a/resources/views/reports/partials/exp-categories.twig
+++ b/resources/views/reports/partials/exp-categories.twig
@@ -9,31 +9,31 @@
<tbody>
{% for categoryId, entry in together %}
<tr>
- <td data-value="{% if entry.category == null %}zzzzzzzzzzz{% else %}{{ entry.category }}{% endif %}">
+ <td data-value="{% if entry.category == null %}zzzzzzzzzzz@else{{ entry.category }}@endif">
{% if entry.category == null %}
<a href="{{ route('categories.no-category') }}">{{ 'noCategory'|_ }}</a>
- {% else %}
+ @else
<a href="{{ route('categories.show', categoryId) }}">{{ entry.category }}</a>
- {% endif %}
+ @endif
</td>
<td data-value="{{ entry.spent.grand_total }}">
{% if entry.spent.per_currency|length ==0 %}
{{ '0'|formatAmount }}
- {% else %}
+ @else
{% for expense in entry.spent.per_currency %}
- {{ formatAmountBySymbol(expense.sum, expense.currency.symbol, expense.currency.dp) }}<br/>
+ {{ format_amount_by_symbol(expense.sum, expense.currency.symbol, expense.currency.dp) }}<br/>
{% endfor %}
- {% endif %}
+ @endif
</td>
<td data-value="{{ entry.earned.grand_total }}">
{% if entry.earned.per_currency|length ==0 %}
{{ '0'|formatAmount }}
- {% else %}
+ @else
{% for income in entry.earned.per_currency %}
- {{ formatAmountBySymbol(income.sum * -1, income.currency.symbol, income.currency.dp) }}<br/>
+ {{ format_amount_by_symbol(income.sum * -1, income.currency.symbol, income.currency.dp) }}<br/>
{% endfor %}
- {% endif %}
+ @endif
</td>
</tr>
{% endfor %}
diff --git a/resources/views/reports/partials/exp-not-grouped.twig b/resources/views/reports/partials/exp-not-grouped.twig
index c7a8899983..f4bdbe67d8 100644
--- a/resources/views/reports/partials/exp-not-grouped.twig
+++ b/resources/views/reports/partials/exp-not-grouped.twig
@@ -13,17 +13,17 @@
<td data-value="{{ amounts.spent.grand_sum }}">
{% if amounts.spent.per_currency|length == 0 %}
{{ '0'|formatAmount }}
- {% endif %}
+ @endif
{% for expense in amounts.spent.per_currency %}
- {{ formatAmountBySymbol(expense.sum, expense.currency.symbol, expense.currency.dp) }}<br/>
+ {{ format_amount_by_symbol(expense.sum, expense.currency.symbol, expense.currency.dp) }}<br/>
{% endfor %}
</td>
<td data-value="{{ amounts.earned.grand_sum }}">
{% if amounts.earned.per_currency|length == 0 %}
{{ '0'|formatAmount }}
- {% endif %}
+ @endif
{% for income in amounts.earned.per_currency %}
- {{ formatAmountBySymbol(income.sum * -1, income.currency.symbol, income.currency.dp) }}<br/>
+ {{ format_amount_by_symbol(income.sum * -1, income.currency.symbol, income.currency.dp) }}<br/>
{% endfor %}
</td>
</tr>
diff --git a/resources/views/reports/partials/income-expenses.twig b/resources/views/reports/partials/income-expenses.twig
index f3eac4d401..05a77a2d02 100644
--- a/resources/views/reports/partials/income-expenses.twig
+++ b/resources/views/reports/partials/income-expenses.twig
@@ -11,9 +11,9 @@
{% for account in report.accounts %}
{% if loop.index > listLength %}
<tr class="overListLength">
- {% else %}
+ @else
<tr>
- {% endif %}
+ @endif
<td data-value="{{ account.name }}">
<a href="{{ route('accounts.show',account.id) }}">{{ account.name }}</a>
{% if account.count > 1 %}
@@ -21,17 +21,17 @@
<small>
{{ account.count }} {{ 'transactions'|_|lower }}
</small>
- {% endif %}
+ @endif
</td>
<td data-value="{{ account.sum }}" class="text-right">
- {{ formatAmountBySymbol(account.sum, account.currency_symbol, account.currency_decimal_places) }}
+ {{ format_amount_by_symbol(account.sum, account.currency_symbol, account.currency_decimal_places) }}
</td>
<td class="text-right hidden-xs" data-value="{{ account.average }}">
{% if account.count > 1 %}
- {{ formatAmountBySymbol(account.average, account.currency_symbol, account.currency_decimal_places) }}
- {% else %}
+ {{ format_amount_by_symbol(account.average, account.currency_symbol, account.currency_decimal_places) }}
+ @else
&mdash;
- {% endif %}
+ @endif
</td>
<td>
<span class="fa text-muted fa-info-circle firefly-info-button" data-location="{{ type }}"
@@ -48,12 +48,12 @@
<a href="#" class="listLengthTrigger">{{ trans('firefly.show_full_list', {number:incomeTopLength}) }}</a>
</td>
</tr>
- {% endif %}
+ @endif
{% for sum in report.sums %}
<tr>
<td><em>{{ 'sum'|_ }} ({{ sum.currency_name }})</em></td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td>&nbsp;</td>
</tr>
diff --git a/resources/views/reports/partials/journals-audit.twig b/resources/views/reports/partials/journals-audit.twig
index 6593776997..44b9ed70d8 100644
--- a/resources/views/reports/partials/journals-audit.twig
+++ b/resources/views/reports/partials/journals-audit.twig
@@ -48,23 +48,23 @@
<td class="hide-icon">
{% if journal.transaction_type_type == 'Withdrawal' %}
<span class="bi bi-arrow-left" title="{{ trans('firefly.Withdrawal') }}"></span>
- {% endif %}
+ @endif
{% if journal.transaction_type_type == 'Deposit' %}
<span class="bi bi-arrow-right" title="{{ trans('firefly.Deposit') }}"></span>
- {% endif %}
+ @endif
{% if journal.transaction_type_type == 'Transfer' %}
<span class="bi bi-arrow-left-right" title="{{ trans('firefly.Deposit') }}"></span>
- {% endif %}
+ @endif
{% if journal.transaction_type_type == 'Reconciliation' %}
<span class="bi bi-calculator" title="{{ trans('firefly.reconciliation_transaction') }}"></span>
- {% endif %}
+ @endif
{% if journal.transaction_type_type == 'Opening balance' %}
<span class="bi bi-star" title="{{ trans('firefly.Opening balance') }}"></span>
- {% endif %}
+ @endif
</td>
@@ -72,45 +72,45 @@
<a href="{{ route('transactions.show',journal.transaction_group_id) }}">
{% if journal.group_title|length > 0 %}
{{ journal.group_title }} ({{ journal.description }})
- {% else %}
+ @else
{{ journal.description }}
- {% endif %}
+ @endif
</a>
</td>
<td class="text-right hide-balance_before">
- {{ formatAmountBySymbol(journal.balance_before, auditData[account.id].currency.symbol, auditData[account.id].currency.decimal_places) }}
+ {{ format_amount_by_symbol(journal.balance_before, auditData[$account->id].currency.symbol, auditData[$account->id].currency.decimal_places) }}
</td>
<td class="text-right hide-amount">
- {% if auditData[account.id].currency.id == journal.currency_id %}
+ {% if auditData[$account->id].currency.id == journal.currency_id %}
{% if account.id == journal.destination_account_id and journal.transaction_type_type == 'Opening balance' %}
- {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }}
+ {{ format_amount_by_symbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }}
{% elseif account.id == journal.destination_account_id and journal.transaction_type_type == 'Deposit' %}
- {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }}
+ {{ format_amount_by_symbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }}
{% elseif account.id == journal.destination_account_id and journal.transaction_type_type == 'Transfer' %}
- {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }}
- {% else %}
- {{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }}
- {% endif %}
- {% endif %}
+ {{ format_amount_by_symbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }}
+ @else
+ {{ format_amount_by_symbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }}
+ @endif
+ @endif
- {% if auditData[account.id].currency.id == journal.foreign_currency_id %}
+ {% if auditData[$account->id].currency.id == journal.foreign_currency_id %}
{% if account.id == journal.destination_account_id and journal.transaction_type_type == 'Opening balance' %}
- {{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }}
+ {{ format_amount_by_symbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }}
{% elseif account.id == journal.destination_account_id and journal.transaction_type_type == 'Deposit' %}
- {{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }}
+ {{ format_amount_by_symbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }}
{% elseif account.id == journal.destination_account_id and journal.transaction_type_type == 'Transfer' %}
- {{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }}
- {% else %}
- {{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }}
- {% endif %}
- {% endif %}
+ {{ format_amount_by_symbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }}
+ @else
+ {{ format_amount_by_symbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }}
+ @endif
+ @endif
</td>
<td class="text-right hide-balance_after">
- {{ formatAmountBySymbol(journal.balance_after, auditData[account.id].currency.symbol, auditData[account.id].currency.decimal_places) }}
+ {{ format_amount_by_symbol(journal.balance_after, auditData[$account->id].currency.symbol, auditData[$account->id].currency.decimal_places) }}
</td>
<td class="hide-date">{{ journal.date.isoFormat(monthAndDayFormat) }}</td>
@@ -125,17 +125,17 @@
<td class="hide-budget">
{% if journal.budget_id %}
<a href="{{ route('budgets.show', [journal.budget_id]) }}" title="{{ journal.budget_name }}">{{ journal.budget_name }}</a>
- {% endif %}
+ @endif
</td>
<td class="hide-category">
{% if journal.category_id %}
<a href="{{ route('categories.show', [journal.category_id]) }}" title="{{ journal.category_name }}">{{ journal.category_name }}</a>
- {% endif %}
+ @endif
</td>
<td class="hide-bill">
{% if journal.bill_id %}
<a href="{{ route('subscriptions.show', [journal.bill_id]) }}" title="{{ journal.bill_name }}">{{ journal.bill_name }}</a>
- {% endif %}
+ @endif
</td>
<!-- new optional fields (2x) -->
@@ -154,32 +154,32 @@
<td class="hide-interest_date">
{% if null != journal.interest_date %}
{{ journal.interest_date.isoFormat(monthAndDayFormat) }}
- {% endif %}
+ @endif
</td>
<td class="hide-book_date">
{% if null != journal.book_date %}
{{ journal.book_date.isoFormat(monthAndDayFormat) }}
- {% endif %}
+ @endif
</td>
<td class="hide-process_date">
{% if null != journal.process_date %}
{{ journal.process_date.isoFormat(monthAndDayFormat) }}
- {% endif %}
+ @endif
</td>
<td class="hide-due_date">
{% if null != journal.due_date %}
{{ journal.due_date.isoFormat(monthAndDayFormat) }}
- {% endif %}
+ @endif
</td>
<td class="hide-payment_date">
{% if null != journal.payment_date %}
{{ journal.payment_date.isoFormat(monthAndDayFormat) }}
- {% endif %}
+ @endif
</td>
<td class="hide-invoice_date">
{% if null != journal.invoice_date %}
{{ journal.invoice_date.isoFormat(monthAndDayFormat) }}
- {% endif %}
+ @endif
</td>
</tr>
diff --git a/resources/views/reports/partials/operations.twig b/resources/views/reports/partials/operations.twig
index 70dc36bb87..a166925d80 100644
--- a/resources/views/reports/partials/operations.twig
+++ b/resources/views/reports/partials/operations.twig
@@ -12,13 +12,13 @@
<tr>
<td>{{ sum.currency_name }} ({{ sum.currency_symbol }})</td>
<td data-value="{{ sum.in }}">
- {{ formatAmountBySymbol(sum.in, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.in, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td data-value="{{ sum.out }}">
- {{ formatAmountBySymbol(sum.out, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.out, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td data-value="{{ sum.sum }}">
- {{ formatAmountBySymbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
</tr>
{% endfor %}
diff --git a/resources/views/reports/partials/top-transactions.twig b/resources/views/reports/partials/top-transactions.twig
index 5a64c8075d..6fcfea5c6a 100644
--- a/resources/views/reports/partials/top-transactions.twig
+++ b/resources/views/reports/partials/top-transactions.twig
@@ -21,10 +21,10 @@
<td class="text-right" data-value="{{ transaction.amount}}"><span
class="mr-2">
- {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ {{ format_amount_by_symbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ @endif
</span></td>
</tr>
{% endfor %}
diff --git a/resources/views/reports/tag/partials/account-per-tag.twig b/resources/views/reports/tag/partials/account-per-tag.twig
index 26fa65d6f1..19d2418ac5 100644
--- a/resources/views/reports/tag/partials/account-per-tag.twig
+++ b/resources/views/reports/tag/partials/account-per-tag.twig
@@ -17,11 +17,11 @@
{% for tag in tags %}
<td class="text-right">
{% if currency.tags[tag.id] %}
- <span title="{{ 'earned'|_ }}: {{ formatAmountBySymbol(currency.tags[tag.id].earned, currency.currency_symbol, currency.currency_decimal_places, false) }}, {{ 'spent'|_ }}: {{ formatAmountBySymbol(currency.tags[tag.id].spent, currency.currency_symbol, currency.currency_decimal_places, false) }}"
- {{ formatAmountBySymbol(currency.tags[tag.id].sum, currency.currency_symbol, currency.currency_decimal_places) }}
- {% else %}
+ <span title="{{ 'earned'|_ }}: {{ format_amount_by_symbol(currency.tags[tag.id].earned, currency.currency_symbol, currency.currency_decimal_places, false) }}, {{ 'spent'|_ }}: {{ format_amount_by_symbol(currency.tags[tag.id].spent, currency.currency_symbol, currency.currency_decimal_places, false) }}"
+ {{ format_amount_by_symbol(currency.tags[tag.id].sum, currency.currency_symbol, currency.currency_decimal_places) }}
+ @else
&mdash;
- {% endif %}
+ @endif
</td>
{% endfor %}
</tr>
diff --git a/resources/views/reports/tag/partials/accounts.twig b/resources/views/reports/tag/partials/accounts.twig
index c493e6c549..3a8c9f5036 100644
--- a/resources/views/reports/tag/partials/accounts.twig
+++ b/resources/views/reports/tag/partials/accounts.twig
@@ -15,13 +15,13 @@
<a href="{{ route('accounts.show', account.id) }}" title="{{ account.iban }}">{{ account.name }} ({{ currency.currency_name }})</a>
</td>
<td data-value="{{ currency.spent }}" class="text-right">
- {{ formatAmountBySymbol(currency.spent, currency.currency_symbol, currency.currency_decimal_places) }}
+ {{ format_amount_by_symbol(currency.spent, currency.currency_symbol, currency.currency_decimal_places) }}
</td>
<td data-value="{{ currency.earned }}" class="text-right">
- {{ formatAmountBySymbol(currency.earned, currency.currency_symbol, currency.currency_decimal_places) }}
+ {{ format_amount_by_symbol(currency.earned, currency.currency_symbol, currency.currency_decimal_places) }}
</td>
<td data-value="{{ currency.sum }}" class="text-right">
- {{ formatAmountBySymbol(currency.sum, currency.currency_symbol, currency.currency_decimal_places) }}
+ {{ format_amount_by_symbol(currency.sum, currency.currency_symbol, currency.currency_decimal_places) }}
</td>
</tr>
{% endfor %}
@@ -32,13 +32,13 @@
<tr>
<td>{{ 'sum'|_ }} ({{ sum.currency_name }})</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.spent_sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.spent_sum, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.earned_sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.earned_sum, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.total_sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.total_sum, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
</tr>
{% endfor %}
diff --git a/resources/views/reports/tag/partials/avg-expenses.twig b/resources/views/reports/tag/partials/avg-expenses.twig
index 69de2720e4..a3a2231dea 100644
--- a/resources/views/reports/tag/partials/avg-expenses.twig
+++ b/resources/views/reports/tag/partials/avg-expenses.twig
@@ -11,20 +11,20 @@
{% for row in result %}
{% if loop.index > listLength %}
<tr class="overListLength">
- {% else %}
+ @else
<tr>
- {% endif %}
+ @endif
<td data-sortable="false">
<a href="{{ route('accounts.show', row.destination_account_id) }}">
{{ row.destination_account_name }}
</a>
</td>
<td data-value="{{ row.avg }}" class="text-right">
- {{ formatAmountBySymbol(row.avg, row.currency_symbol, row.currency_decimal_places) }}
+ {{ format_amount_by_symbol(row.avg, row.currency_symbol, row.currency_decimal_places) }}
</td>
<td data-value="{{ row.sum }}" class="text-right">
- {{ formatAmountBySymbol(row.sum, row.currency_symbol, row.currency_decimal_places) }}
+ {{ format_amount_by_symbol(row.sum, row.currency_symbol, row.currency_decimal_places) }}
</td>
<td data-value="{{ row.transactions }}">
@@ -41,6 +41,6 @@
<a href="#" class="listLengthTrigger">{{ trans('firefly.show_full_list',{number:incomeTopLength}) }}</a>
</td>
</tr>
- {% endif %}
+ @endif
</tfoot>
</table>
diff --git a/resources/views/reports/tag/partials/avg-income.twig b/resources/views/reports/tag/partials/avg-income.twig
index e54986d557..4ae4951014 100644
--- a/resources/views/reports/tag/partials/avg-income.twig
+++ b/resources/views/reports/tag/partials/avg-income.twig
@@ -11,20 +11,20 @@
{% for row in result %}
{% if loop.index > listLength %}
<tr class="overListLength">
- {% else %}
+ @else
<tr>
- {% endif %}
+ @endif
<td data-sortable="false">
<a href="{{ route('accounts.show', row.source_account_id) }}">
{{ row.source_account_name }}
</a>
</td>
<td data-value="{{ row.avg }}" class="text-right">
- {{ formatAmountBySymbol(row.avg, row.currency_symbol, row.currency_decimal_places) }}
+ {{ format_amount_by_symbol(row.avg, row.currency_symbol, row.currency_decimal_places) }}
</td>
<td data-value="{{ row.sum }}" class="text-right">
- {{ formatAmountBySymbol(row.sum, row.currency_symbol, row.currency_decimal_places) }}
+ {{ format_amount_by_symbol(row.sum, row.currency_symbol, row.currency_decimal_places) }}
</td>
<td data-value="{{ row.transactions }}">
@@ -41,6 +41,6 @@
<a href="#" class="listLengthTrigger">{{ trans('firefly.show_full_list',{number:incomeTopLength}) }}</a>
</td>
</tr>
- {% endif %}
+ @endif
</tfoot>
</table>
diff --git a/resources/views/reports/tag/partials/tags.twig b/resources/views/reports/tag/partials/tags.twig
index 69c8b956ba..7497d287c5 100644
--- a/resources/views/reports/tag/partials/tags.twig
+++ b/resources/views/reports/tag/partials/tags.twig
@@ -18,20 +18,20 @@
<td class="text-right">&mdash;</td>
<td class="text-right">&mdash;</td>
</tr>
- {% endif %}
+ @endif
{% for currency in tag.currencies %}
<tr>
<td data-value="{{ tag.name }} ({{ currency.currency_name }})">
<a href="{{ route('tags.show', [tag.id]) }}" title="{{ tag.name }}">{{ tag.name }} ({{ currency.currency_name }})</a>
</td>
<td data-value="{{ currency.spent }}" class="text-right">
- {{ formatAmountBySymbol(currency.spent, currency.currency_symbol, currency.currency_decimal_places) }}
+ {{ format_amount_by_symbol(currency.spent, currency.currency_symbol, currency.currency_decimal_places) }}
</td>
<td data-value="{{ currency.earned }}" class="text-right">
- {{ formatAmountBySymbol(currency.earned, currency.currency_symbol, currency.currency_decimal_places) }}
+ {{ format_amount_by_symbol(currency.earned, currency.currency_symbol, currency.currency_decimal_places) }}
</td>
<td data-value="{{ currency.sum }}" class="text-right">
- {{ formatAmountBySymbol(currency.sum, currency.currency_symbol, currency.currency_decimal_places) }}
+ {{ format_amount_by_symbol(currency.sum, currency.currency_symbol, currency.currency_decimal_places) }}
</td>
</tr>
{% endfor %}
@@ -42,13 +42,13 @@
<tr>
<td>{{ 'sum'|_ }} ({{ sum.currency_name }})</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.spent_sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.spent_sum, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.earned_sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.earned_sum, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
<td class="text-right">
- {{ formatAmountBySymbol(sum.total_sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {{ format_amount_by_symbol(sum.total_sum, sum.currency_symbol, sum.currency_decimal_places) }}
</td>
</tr>
{% endfor %}
diff --git a/resources/views/reports/tag/partials/top-expenses.twig b/resources/views/reports/tag/partials/top-expenses.twig
index afd849a71b..9e61edc71b 100644
--- a/resources/views/reports/tag/partials/top-expenses.twig
+++ b/resources/views/reports/tag/partials/top-expenses.twig
@@ -12,9 +12,9 @@
{% for row in result %}
{% if loop.index > listLength %}
<tr class="overListLength">
- {% else %}
+ @else
<tr>
- {% endif %}
+ @endif
<td data-sortable="false">
<a href="{{ route('transactions.show', row.transaction_group_id) }}">
{{ row.description }}
@@ -36,7 +36,7 @@
</td>
<td data-value="{{ row.amount }}" class="text-right">
- {{ formatAmountBySymbol(row.amount, row.currency_symbol, row.currency_decimal_places) }}
+ {{ format_amount_by_symbol(row.amount, row.currency_symbol, row.currency_decimal_places) }}
</td>
</tr>
@@ -49,6 +49,6 @@
<a href="#" class="listLengthTrigger">{{ trans('firefly.show_full_list',{number:incomeTopLength}) }}</a>
</td>
</tr>
- {% endif %}
+ @endif
</tfoot>
</table>
diff --git a/resources/views/reports/tag/partials/top-income.twig b/resources/views/reports/tag/partials/top-income.twig
index 4142553e48..8525180772 100644
--- a/resources/views/reports/tag/partials/top-income.twig
+++ b/resources/views/reports/tag/partials/top-income.twig
@@ -12,9 +12,9 @@
{% for row in result %}
{% if loop.index > listLength %}
<tr class="overListLength">
- {% else %}
+ @else
<tr>
- {% endif %}
+ @endif
<td data-sortable="false">
<a href="{{ route('transactions.show', row.transaction_group_id) }}">
{{ row.description }}
@@ -36,7 +36,7 @@
</td>
<td data-value="{{ row.amount }}" class="text-right">
- {{ formatAmountBySymbol(row.amount, row.currency_symbol, row.currency_decimal_places) }}
+ {{ format_amount_by_symbol(row.amount, row.currency_symbol, row.currency_decimal_places) }}
</td>
</tr>
@@ -49,6 +49,6 @@
<a href="#" class="listLengthTrigger">{{ trans('firefly.show_full_list',{number:incomeTopLength}) }}</a>
</td>
</tr>
- {% endif %}
+ @endif
</tfoot>
</table>
diff --git a/resources/views/rules/index.blade.php b/resources/views/rules/index.blade.php
index 4c4024604e..de7ea23d12 100644
--- a/resources/views/rules/index.blade.php
+++ b/resources/views/rules/index.blade.php
@@ -86,7 +86,7 @@ $shownDemo = true
<td>
<div class="btn-group btn-group-sm test_buttons">
{{-- show which transactions would match --}}
- <a href="{{ route('rules.search',$rule->id) }}" class="btn btn-outline-secondary {% if false == rule.strict %}test_rule_triggers{% endif %}" data-id="{{ $rule->id }}" title="{{ __('firefly.test_rule_triggers') }}"><span data-id="{{ $rule->id }}" class="bi bi-flask"></span></a>
+ <a href="{{ route('rules.search',$rule->id) }}" class="btn btn-outline-secondary {% if false == rule.strict %}test_rule_triggers@endif" data-id="{{ $rule->id }}" title="{{ __('firefly.test_rule_triggers') }}"><span data-id="{{ $rule->id }}" class="bi bi-flask"></span></a>
@if($rule->active)
{{-- actually execute rule --}}
<a href="{{ route('rules.select-transactions',$rule->id) }}" class="btn btn-outline-secondary" title=" {{ trans('firefly.apply_rule_selection', ['title' => $rule->title]) }}"><span class="bi bi-power "></span></a>
diff --git a/resources/views/rules/old-index.twig b/resources/views/rules/old-index.twig
index f13847bc9a..f4b03f9870 100644
--- a/resources/views/rules/old-index.twig
+++ b/resources/views/rules/old-index.twig
@@ -19,7 +19,7 @@
{% include 'partials.empty' with {objectType: 'default', type: 'rules',route: route('rules.create')} %}
{# make FF ignore demo for now. #}
{% set shownDemo = true %}
- {% endif %}
+ @endif
{% for ruleGroup in ruleGroups %}
<div class="row">
@@ -29,9 +29,9 @@
<h3 class="card-title">
{% if ruleGroup.active %}
{{ ruleGroup.title }}
- {% else %}
+ @else
<s>{{ ruleGroup.title }}</s> ({{ 'inactive'|_|lower }})
- {% endif %}
+ @endif
</h3>
@@ -50,12 +50,12 @@
{% if ruleGroup.order > 1 %}
<li><a href="#" class="move-group" data-direction="up" data-id="{{ ruleGroup.id }}"><span
class="fa fa-arrow-up"></span> {{ 'move_rule_group_up'|_ }}</a></li>
- {% endif %}
+ @endif
{% if ruleGroup.order < ruleGroups|length %}
<li><a href="#" class="move-group" data-direction="down" data-id="{{ ruleGroup.id }}"><span
class="fa fa-arrow-down"></span> {{ 'move_rule_group_down'|_ }}
</a></li>
- {% endif %}
+ @endif
</ul>
</div>
</div>
@@ -104,11 +104,11 @@
<td>
<div class="btn-group btn-group-sm test_buttons">
{# show which transactions would match #}
- <a href="{{ route('rules.search',rule.id) }}" class="btn btn-outline-secondary {% if false == rule.strict %}test_rule_triggers{% endif %}" data-id="{{ rule.id }}" title="{{ 'test_rule_triggers'|_ }}"><span data-id="{{ rule.id }}" class="fa fa-flask"></span></a>
+ <a href="{{ route('rules.search',rule.id) }}" class="btn btn-outline-secondary {% if false == rule.strict %}test_rule_triggers@endif" data-id="{{ rule.id }}" title="{{ 'test_rule_triggers'|_ }}"><span data-id="{{ rule.id }}" class="fa fa-flask"></span></a>
{% if rule.active %}
{# actually execute rule #}
<a href="{{ route('rules.select-transactions',rule.id) }}" class="btn btn-outline-secondary" title=" {{ trans('firefly.apply_rule_selection', {title: rule.title}) }}"><span class="fa fa-power-off "></span></a>
- {% endif %}
+ @endif
{# duplicate rule #}
<a href="#" class="btn btn-outline-secondary duplicate-rule" data-id="{{ rule.id }}" title=" {{ trans('firefly.duplicate_rule', {title: rule.title}) }}"><span class="bi bi-copy"></span></a>
@@ -117,21 +117,21 @@
<td class="markdown">
{% if rule.active %}
{{ rule.title }}
- {% else %}
+ @else
<s>{{ rule.title }}</s> ({{ 'inactive'|_|lower }})
- {% endif %}
+ @endif
{% if rule.stop_processing %}
<span class="fa fa-stop-circle-o"></span>
- {% endif %}
+ @endif
{% if rule.description != "" %}
<small class="hidden-xs"
{% if not rule.active %}
class="text-muted"
- {% endif %}
+ @endif
><br/>{{ rule.description|default('')|markdown }}</small>
- {% endif %}
- <small>({% if rule.strict %}<span class="text-danger">{{ 'rule_is_strict'|_ }}</span>{% else %}<span class="text-success">{{ 'rule_is_not_strict'|_ }}</span>{% endif %})</small>
+ @endif
+ <small>({% if rule.strict %}<span class="text-danger">{{ 'rule_is_strict'|_ }}</span>@else<span class="text-success">{{ 'rule_is_not_strict'|_ }}</span>@endif)</small>
</td>
<td class="hidden-xs">
{% if rule.ruleTriggers.count() > 0 %}
@@ -141,21 +141,21 @@
<li
{% if not rule.active %}
class="text-muted"
- {% endif %}
+ @endif
data-id="{{ trigger.id }}">
{{ trans(('firefly.rule_trigger_' ~ get_root_search_operator(trigger.trigger_type)), {trigger_value: trigger.trigger_value}) }}
{% if trigger.stop_processing %}
<span class="fa fa-stop-circle-o"></span>
- {% endif %}
+ @endif
</li>
- {% endif %}
+ @endif
{% endfor %}
</ul>
<ul class="small rule-triggers-show hidden pointer" data-id="{{ rule.id }}">
<li data-id="{{ rule.id }}">{{ 'show_triggers'|_ }}</li>
</ul>
- {% endif %}
+ @endif
</td>
<td class="hidden-xs">
{% if rule.ruleActions.count() > 0 %}
@@ -164,11 +164,11 @@
<li
{% if not rule.active %}
class="text-muted"
- {% endif %}
+ @endif
data-id="{{ action.id }}">{{ trans(('firefly.rule_action_' ~ action.action_type), {action_value: action.action_value}) }}
{% if action.stop_processing %}
<span class="fa fa-stop-circle-o"></span>
- {% endif %}
+ @endif
</li>
{% endfor %}
</ul>
@@ -176,17 +176,17 @@
<li>{{ 'show_actions'|_ }}</li>
</ul>
- {% endif %}
+ @endif
</td>
</tr>
{% endfor %}
</tbody>
</table>
- {% else %}
+ @else
<p>
<em>{{ 'no_rules_in_group'|_ }}</em>
</p>
- {% endif %}
+ @endif
<p>
<br/>
<a href="{{ route('rules.create', ruleGroup.id) }}"
diff --git a/resources/views/rules/partials/action.twig b/resources/views/rules/partials/action.twig
index e18c9c1a74..4d888eb4a2 100644
--- a/resources/views/rules/partials/action.twig
+++ b/resources/views/rules/partials/action.twig
@@ -6,7 +6,7 @@
{# TODO error when invalid name #}
<select name="actions[{{ count }}][type]" class="form-control">
{% for key,type in allRuleActions() %}
- <option value="{{ key }}" label="{{ type }}" {% if key == oldAction %} selected{% endif %}>{{ type }}</option>
+ <option value="{{ key }}" label="{{ type }}" {% if key == oldAction %} selected@endif>{{ type }}</option>
{% endfor %}
</select>
</td>
@@ -18,13 +18,13 @@
<p class="text-danger">
{{ errors.first('actions.'~count~'.value') }}
</p>
- {% endif %}
+ @endif
</td>
<td class="twenty">
<div class="checkbox">
<label>
<input type="checkbox" name="actions[{{ count }}][stop_processing]" value="1"
- {% if oldChecked %}checked{% endif %}
+ {% if oldChecked %}checked@endif
/>
</label>
</div>
diff --git a/resources/views/rules/partials/trigger.twig b/resources/views/rules/partials/trigger.twig
index b5a774fe10..0d0ac4bec7 100644
--- a/resources/views/rules/partials/trigger.twig
+++ b/resources/views/rules/partials/trigger.twig
@@ -8,7 +8,7 @@
<option value="{{ key }}" label="{{ type }}"
{% if key == oldTrigger %}
selected
- {% endif %}
+ @endif
>{{ type }}</option>
{% endfor %}
</select>
@@ -17,7 +17,7 @@
<div class="checkbox">
<label>
<input type="checkbox" name="triggers[{{ count }}][prohibited]" value="1"
- {% if oldProhibited %}checked{% endif %}
+ {% if oldProhibited %}checked@endif
/>
</label>
</div>
@@ -29,13 +29,13 @@
<p class="text-danger">
{{ errors.first('triggers.'~count~'.value') }}
</p>
- {% endif %}
+ @endif
</td>
<td class="twenty">
<div class="checkbox">
<label>
<input type="checkbox" class="trigger-stop-processing" name="triggers[{{ count }}][stop_processing]" value="1"
- {% if oldChecked %}checked{% endif %}
+ {% if oldChecked %}checked@endif
/>
</label>
</div>
diff --git a/resources/views/rules/rule-group/delete.twig b/resources/views/rules/rule-group/delete.twig
index 3764865c00..fed6575d94 100644
--- a/resources/views/rules/rule-group/delete.twig
+++ b/resources/views/rules/rule-group/delete.twig
@@ -36,14 +36,14 @@
<p>
{{ RuleForm.ruleGroupListWithEmpty('move_rules_before_delete',null, {'hidden': ruleGroup.id}) }}
</p>
- {% else %}
+ @else
<input type="hidden" name="move_rules_before_delete" value="0"/>
- {% endif %}
+ @endif
</div>
<div class="card-footer">
<input type="submit" name="submit" value="{{ trans('form.deletePermanently') }}" class="btn btn-danger pull-right"/>
- <a href="{{ URL.previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
+ <a href="{{ URL::previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
</div>
diff --git a/resources/views/rules/rule/create.twig b/resources/views/rules/rule/create.twig
index 1974edaf83..7dd011b5ef 100644
--- a/resources/views/rules/rule/create.twig
+++ b/resources/views/rules/rule/create.twig
@@ -9,8 +9,8 @@
<form method="POST" action="{{ route('rules.store') }}" accept-charset="UTF-8" class="form-horizontal" id="store">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
<input type="hidden" name="rule_group_id" value="{{ ruleGroup.id }}"/>
- <input type="hidden" name="return_to_bill" value="{% if returnToBill %}true{% else %}false{% endif %}"/>
- <input type="hidden" name="bill_id" value="{% if bill %}{{ bill.id }}{% else %}0{% endif %}"/>
+ <input type="hidden" name="return_to_bill" value="{% if returnToBill %}true@elsefalse@endif"/>
+ <input type="hidden" name="bill_id" value="{% if bill %}{{ bill.id }}@else0@endif"/>
<input type="hidden" name="active" value="1"/>
{% if bill %}
@@ -28,7 +28,7 @@
</div>
</div>
</div>
- {% endif %}
+ @endif
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12">
<div class="box box-primary" id="mandatory">
diff --git a/resources/views/rules/rule/delete.twig b/resources/views/rules/rule/delete.twig
index 0a64e8ad29..5891a102b0 100644
--- a/resources/views/rules/rule/delete.twig
+++ b/resources/views/rules/rule/delete.twig
@@ -25,7 +25,7 @@
</div>
<div class="card-footer">
<input type="submit" name="submit" value="{{ trans('form.deletePermanently') }}" class="btn btn-danger pull-right"/>
- <a href="{{ URL.previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
+ <a href="{{ URL::previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
</div>
</div>
</div>
diff --git a/resources/views/search/index.twig b/resources/views/search/index.twig
index 43af6f7810..145d310f36 100644
--- a/resources/views/search/index.twig
+++ b/resources/views/search/index.twig
@@ -30,13 +30,13 @@
{% if ruleId > 0 and ruleChanged %}
<a href="{{ route('rules.edit', [ruleId]) }}?from_query={{ fullQuery }}"
class="btn btn-outline-secondary">{{ trans('firefly.update_rule_from_query', {rule: rule.title}) }}</a>
- {% endif %}
+ @endif
<a href="{{ route('rules.create') }}?from_query={{ fullQuery }}" class="btn btn-outline-secondary">{{ 'create_rule_from_query'|_ }}</a>
</div>
</div>
{% if 0 != ruleId %}
<input type="hidden" name="rule" value="{{ ruleId }}"/>
- {% endif %}
+ @endif
</form>
<p>
{{ trans('firefly.search_for_overview') |raw }}
@@ -50,7 +50,7 @@
|join(' ')
})|raw -}}
</li>
- {% endif %}
+ @endif
{% if excludedWords|length > 0 %}
<li>
{{- trans('firefly.search_for_excluded_words', {
@@ -59,15 +59,15 @@
|join(' ')
})|raw -}}
</li>
- {% endif %}
+ @endif
{% for operator in operators %}
{% if operator.prohibited %}
<li>{{- trans('firefly.search_modifier_not_'~operator.type, {value: operator.value}) -}}</li>
- {% endif %}
+ @endif
{% if not operator.prohibited %}
<li>{{- trans('firefly.search_modifier_'~operator.type, {value: operator.value}) -}}</li>
- {% endif %}
+ @endif
{% endfor %}
</ul>
@@ -78,7 +78,7 @@
<li class="text-danger">{{ operator.type }}:{{ operator.value }}</li>
{% endfor %}
</ul>
- {% endif %}
+ @endif
</div>
</div>
</div>
@@ -88,7 +88,7 @@
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="box search_box">
<div class="card-header">
- <h3 class="card-title">{{ 'transactions'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.transactions') }}</h3>
</div>
<div class="card-body">
<p class="search_ongoing text-center">
@@ -139,7 +139,7 @@
</div>
</div>
</div>
- {% endif %}
+ @endif
{% if query|length == 0 and excludedWords|length == 0 and words|length == 0 and operators|length == 0 %}
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
@@ -154,7 +154,7 @@
</div>
</div>
- {% endif %}
+ @endif
@endsection
@section('scripts')
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
diff --git a/resources/views/search/search.twig b/resources/views/search/search.twig
index 4a3e8ddb0f..47eeb641ed 100644
--- a/resources/views/search/search.twig
+++ b/resources/views/search/search.twig
@@ -3,9 +3,9 @@
{{ trans('firefly.search_found_more_transactions', {count: groups.count(), time: searchTime}) }}
{% elseif 0 == groups.count() %}
{{ trans_choice('firefly.search_found_transactions', 0, {time: searchTime}) }}
- {% else %}
+ @else
{{ trans_choice('firefly.search_found_transactions', groups.count(), {time: searchTime}) }}
- {% endif %}
+ @endif
</p>
{% include 'list.groups' %}
diff --git a/resources/views/settings/link/delete.twig b/resources/views/settings/link/delete.twig
index 8cfff61045..9391d718ec 100644
--- a/resources/views/settings/link/delete.twig
+++ b/resources/views/settings/link/delete.twig
@@ -28,7 +28,7 @@
<p>
{{ Lang.choice('form.also_delete_connections', count, {count: count}) }}
</p>
- {% endif %}
+ @endif
{% if count > 0 %}
<p class="text-success">
{{ 'save_connections_by_moving'|_ }}
@@ -37,15 +37,15 @@
<p>
{{ Html::select('move_link_type_before_delete', moveTo).class('form-control') }}
</p>
- {% else %}
+ @else
<input type="hidden" name="move_link_type_before_delete" value="0"/>
- {% endif %}
+ @endif
</div>
<div class="card-footer">
<input type="submit" name="submit" value="{{ trans('form.deletePermanently') }}"
class="btn pull-right btn-danger"/>
- <a href="{{ URL.previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
+ <a href="{{ URL::previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
</div>
</div>
</div>
diff --git a/resources/views/settings/link/index.twig b/resources/views/settings/link/index.twig
index a33ea68cd5..4c8d463db9 100644
--- a/resources/views/settings/link/index.twig
+++ b/resources/views/settings/link/index.twig
@@ -32,7 +32,7 @@
<a class="btn btn-danger btn-xs" href="{{ route('settings.links.delete',linkType.id) }}"><span
class="bi bi-trash"></span></a>
</div>
- {% endif %}
+ @endif
</td>
<td>
<strong>{{ journalLinkTranslation('name', linkType.name) }}</strong>
diff --git a/resources/views/settings/notifications/index.twig b/resources/views/settings/notifications/index.twig
index 495c795e30..5e40df1dc2 100644
--- a/resources/views/settings/notifications/index.twig
+++ b/resources/views/settings/notifications/index.twig
@@ -19,7 +19,7 @@
{% for notification, value in notifications %}
<div class="checkbox">
<label>
- <input value="1" {% if true == value %}checked{% endif %} type="checkbox" name="notification_{{ notification }}"> {{ trans('firefly.owner_notification_check_'~notification) }}
+ <input value="1" {% if true == value %}checked@endif type="checkbox" name="notification_{{ notification }}"> {{ trans('firefly.owner_notification_check_'~notification) }}
</label>
</div>
{% endfor %}
@@ -59,11 +59,11 @@
<li>
{% if true == info.enabled and true == forcedAvailability[name] %}
☑️ {{ trans('firefly.notification_channel_name_'~name) }}
- {% if 0 == info.ui_configurable %}({{ 'configure_channel_in_env'|_ }}) {% endif %}
- {% endif %}
+ {% if 0 == info.ui_configurable %}({{ 'configure_channel_in_env'|_ }}) @endif
+ @endif
{% if false == info.enabled or false == forcedAvailability[name] %}
⚠️ {{ trans('firefly.notification_channel_name_'~name) }} ({{ 'channel_not_available'|_ }})
- {% endif %}
+ @endif
</li>
{% endfor %}
</ul>
@@ -75,7 +75,7 @@
<button type="submit" name="test_submit" value="{{ name }}" class="btn btn-outline-secondary">
{{ trans('firefly.test_notification_channel_name_'~name) }}
</button>
- {% endif %}
+ @endif
{% endfor %}
</div>
</div>
diff --git a/resources/views/settings/users/delete.twig b/resources/views/settings/users/delete.twig
index a0a17c3b27..3a11f64d2f 100644
--- a/resources/views/settings/users/delete.twig
+++ b/resources/views/settings/users/delete.twig
@@ -27,7 +27,7 @@
<div class="card-footer">
<input type="submit" name="submit"
value="{{ trans('form.deletePermanently') }}" class="btn btn-danger pull-right delete-user"/>
- <a href="{{ URL.previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
+ <a href="{{ URL::previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
</div>
diff --git a/resources/views/settings/users/edit.twig b/resources/views/settings/users/edit.twig
index c740e8e305..507fb8e37a 100644
--- a/resources/views/settings/users/edit.twig
+++ b/resources/views/settings/users/edit.twig
@@ -23,16 +23,16 @@
{{ ExpandedForm::text('email',user.email,{'helpText': trans('firefly.admin_update_email')}) }}
{{ ExpandedForm.password('password') }}
{{ ExpandedForm.password('password_confirmation') }}
- {% else %}
+ @else
<input type="hidden" name="email" value="{{ user.email }}"/>
<input type="hidden" name="password" value=""/>
<input type="hidden" name="password_confirmation" value=""/>
- {% endif %}
+ @endif
{{ ExpandedForm::checkbox('blocked') }}
{{ ExpandedForm::select('blocked_code', codes, user.blocked_code) }}
{% if user.id != currentUser.id %}
{{ ExpandedForm::checkbox('is_owner',1,isAdmin) }}
- {% endif %}
+ @endif
</div>
</div>
</div>
diff --git a/resources/views/settings/users/index.twig b/resources/views/settings/users/index.twig
index 701d34d2da..74f914fea5 100644
--- a/resources/views/settings/users/index.twig
+++ b/resources/views/settings/users/index.twig
@@ -28,7 +28,7 @@
</form>
</div>
</div>
- {% endif %}
+ @endif
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="card">
@@ -71,38 +71,38 @@
{{ user.updated_at.isoFormat(monthAndDayFormat) }}
{{ user.updated_at.format('H:i') }}
</td>
- <td class="hidden-xs" data-value="{% if user.isAdmin %}1{% else %}0{% endif %}">
+ <td class="hidden-xs" data-value="{% if user.isAdmin %}1@else0@endif">
{% if user.isAdmin %}
<small class="text-success"><span class="bi bi-check"></span></small>
- {% else %}
+ @else
<small class="text-danger"><span class="bi bi-x"></span></small>
- {% endif %}
+ @endif
</td>
- <td class="hidden-xs" data-value="{% if user.has2FA %}1{% else %}0{% endif %}">
+ <td class="hidden-xs" data-value="{% if user.has2FA %}1@else0@endif">
{% if user.has2FA %}
<small class="text-success"><span class="bi bi-check"></span></small>
- {% else %}
+ @else
<small class="text-danger"><span class="bi bi-x"></span></small>
- {% endif %}
+ @endif
</td>
- <td data-value="{% if user.blocked %}1{% else %}0{% endif %}">
+ <td data-value="{% if user.blocked %}1@else0@endif">
{% if user.blocked == 1 %}
<small class="text-danger"><span class="bi bi-check"
title="{{ 'yes'|_ }}"></span></small>
- {% else %}
+ @else
<small class="text-success"><span class="bi bi-x"
title="{{ 'no'|_ }}"></span></small>
- {% endif %}
+ @endif
</td>
<td class="hidden-xs">
<small>
{% if user.blocked == 1 %}
{% if user.blocked_code == "" %}
<em>~</em>
- {% else %}
+ @else
{{ user.blocked_code }}
- {% endif %}
- {% endif %}
+ @endif
+ @endif
</small>
</td>
</tr>
@@ -158,9 +158,9 @@
<td>
{% if invitee.redeemed %}
<em><s>{{ 'code_already_used'|_ }}</s></em>
- {% else %}
+ @else
<input type="text" class="form-control" readonly value="{{ route('invite', [invitee.invite_code]) }}">
- {% endif %}
+ @endif
</td>
</tr>
{% endfor %}
@@ -171,7 +171,7 @@
</div>
</div>
- {% endif %}
+ @endif
@endsection
@section('styles')
<link rel="stylesheet" href="v1/css/bootstrap-sortable.css?v={{ $FF_BUILD_TIME }}" type="text/css" media="all"
diff --git a/resources/views/settings/users/show.twig b/resources/views/settings/users/show.twig
index 5273c73a39..eb6b2df35f 100644
--- a/resources/views/settings/users/show.twig
+++ b/resources/views/settings/users/show.twig
@@ -33,9 +33,9 @@
<td>
{% if information.is_admin %}
<small class="text-success"><span class="bi bi-check"></span></small> {{ 'yes'|_ }}
- {% else %}
+ @else
<small class="text-danger"><span class="bi bi-x"></span></small> {{ 'no'|_ }}
- {% endif %}
+ @endif
</td>
</tr>
<tr>
@@ -43,9 +43,9 @@
<td>
{% if information.has_2fa %}
<small class="text-success"><span class="bi bi-check"></span></small> {{ 'yes'|_ }}
- {% else %}
+ @else
<small class="text-danger"><span class="bi bi-x"></span></small> {{ 'no'|_ }}
- {% endif %}
+ @endif
</td>
</tr>
<tr>
@@ -56,13 +56,13 @@
{% if information.blocked_code == "" %}
<em>~</em>
- {% else %}
+ @else
{{ information.blocked_code }}
- {% endif %}
+ @endif
- {% else %}
+ @else
<small class="text-success"><span class="bi bi-x" title="{{ 'no'|_ }}"></span></small> {{ 'no'|_ }}
- {% endif %}
+ @endif
</td>
</tr>
</tbody>
diff --git a/resources/views/tags/delete.twig b/resources/views/tags/delete.twig
index bd3540e22a..cd350796f4 100644
--- a/resources/views/tags/delete.twig
+++ b/resources/views/tags/delete.twig
@@ -26,12 +26,12 @@
<p>
{% if tag.transactionjournals.count() > 0 %}
{{ Lang.choice('form.tag_keep_transactions', tag.transactionjournals.count(), {count: tag.transactionjournals.count()}) }}
- {% endif %}
+ @endif
</p>
</div>
<div class="card-footer">
<input type="submit" name="submit" value="{{ trans('form.deletePermanently') }}" class="btn pull-right btn-danger"/>
- <a href="{{ URL.previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
+ <a href="{{ URL::previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
</div>
</div>
</div>
diff --git a/resources/views/tags/show.twig b/resources/views/tags/show.twig
index 7fc1205663..8a468db99d 100644
--- a/resources/views/tags/show.twig
+++ b/resources/views/tags/show.twig
@@ -36,7 +36,7 @@
</td>
<td>{{ tag.description }}</td>
</tr>
- {% endif %}
+ @endif
{% if tag.date %}
<tr>
<td>
@@ -46,7 +46,7 @@
{{ tag.date.isoFormat(monthAndDayFormat) }}
</td>
</tr>
- {% endif %}
+ @endif
{# total amount #}
{% set currentSum = 0 %}
@@ -59,11 +59,11 @@
<td class="forty">{{ trans('list.sum') }}</td>
<td>
{% for set in sums %}
- {{ formatAmountBySymbol(set.Withdrawal + set.Transfer + set.Deposit, set.currency_symbol, set.currency_decimal_places, true) }}{% if loop.index != sums|length %},{% endif %}
+ {{ format_amount_by_symbol(set.Withdrawal + set.Transfer + set.Deposit, set.currency_symbol, set.currency_decimal_places, true) }}{% if loop.index != sums|length %},@endif
{% endfor %}
</td>
</tr>
- {% endif %}
+ @endif
{# total expense excl. transfer #}
{% set currentSum = 0 %}
@@ -75,11 +75,11 @@
<td class="forty">{{ trans('list.sum_excluding_transfers') }}</td>
<td>
{% for set in sums %}
- {{ formatAmountBySymbol(set.Withdrawal + set.Deposit, set.currency_symbol, set.currency_decimal_places, true) }}{% if loop.index != sums|length %},{% endif %}
+ {{ format_amount_by_symbol(set.Withdrawal + set.Deposit, set.currency_symbol, set.currency_decimal_places, true) }}{% if loop.index != sums|length %},@endif
{% endfor %}
</td>
</tr>
- {% endif %}
+ @endif
{# withdrawals #}
{% set currentSum = 0 %}
@@ -91,11 +91,11 @@
<td class="forty">{{ trans('list.sum_withdrawals') }}</td>
<td>
{% for set in sums %}
- {{ formatAmountBySymbol(set.Withdrawal, set.currency_symbol, set.currency_decimal_places, true) }}{% if loop.index != sums|length %},{% endif %}
+ {{ format_amount_by_symbol(set.Withdrawal, set.currency_symbol, set.currency_decimal_places, true) }}{% if loop.index != sums|length %},@endif
{% endfor %}
</td>
</tr>
- {% endif %}
+ @endif
{# deposits #}
{% set currentSum = 0 %}
@@ -107,11 +107,11 @@
<td class="forty">{{ trans('list.sum_deposits') }}</td>
<td>
{% for set in sums %}
- {{ formatAmountBySymbol(set.Deposit, set.currency_symbol, set.currency_decimal_places, true) }}{% if loop.index != sums|length %},{% endif %}
+ {{ format_amount_by_symbol(set.Deposit, set.currency_symbol, set.currency_decimal_places, true) }}{% if loop.index != sums|length %},@endif
{% endfor %}
</td>
</tr>
- {% endif %}
+ @endif
{# transfers #}
{% set currentSum = 0 %}
@@ -123,11 +123,11 @@
<td class="forty">{{ trans('list.sum_transfers') }}</td>
<td>
{% for set in sums %}
- {{ formatAmountBySymbol(set.Transfer, set.currency_symbol, set.currency_decimal_places, true) }}{% if loop.index != sums|length %},{% endif %}
+ {{ format_amount_by_symbol(set.Transfer, set.currency_symbol, set.currency_decimal_places, true) }}{% if loop.index != sums|length %},@endif
{% endfor %}
</td>
</tr>
- {% endif %}
+ @endif
{# reconciliation #}
{% set currentSum = 0 %}
@@ -139,11 +139,11 @@
<td class="forty">{{ trans('list.sum_reconciliations') }}</td>
<td>
{% for set in sums %}
- {{ formatAmountBySymbol(set.Reconciliation, set.currency_symbol, set.currency_decimal_places, true) }}{% if loop.index != sums|length %},{% endif %}
+ {{ format_amount_by_symbol(set.Reconciliation, set.currency_symbol, set.currency_decimal_places, true) }}{% if loop.index != sums|length %},@endif
{% endfor %}
</td>
</tr>
- {% endif %}
+ @endif
{#
{% if sums.Transfer != 0 %}
@@ -151,13 +151,13 @@
<td>{{ trans('list.sum_transfers') }}</td>
<td> {{ sums.Transfer|formatAmount }}</td>
</tr>
- {% endif %}
+ @endif
{% if sums.Reconciliation != 0 %}
<tr>
<td>{{ trans('list.sum_reconciliations') }}</td>
<td> {{ sums.Reconciliation|formatAmount }}</td>
</tr>
- {% endif %}
+ @endif
#}
</table>
</div>
@@ -177,7 +177,7 @@
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'location'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.location') }}</h3>
<div class="box-tools pull-right">
<div class="btn-group">
<button class="btn btn-box-tool dropdown-toggle" data-toggle="dropdown"><span
@@ -194,11 +194,11 @@
</div>
</div>
<div class="card-body">
- {% if(location) %}
+ @if($location)
<div id="location_map" class="map-size"></div>
- {% else %}
+ @else
<p>{{ 'no_location_set'|_ }}</p>
- {% endif %}
+ @endif
</div>
</div>
</div>
@@ -218,21 +218,21 @@
</div>
</div>
</div>
- {% endif %}
+ @endif
- {% if periods|length > 0 %}
+ @if(count($periods) > 0)
<div class="row">
<div class="col-lg-offset-10 col-lg-2 col-md-offset-10 col-md-2 col-sm-12 col-xs-12">
<p class="small text-center"><a
href="{{ route('tags.show',[tag.id,'all']) }}">{{ 'showEverything'|_ }}</a></p>
</div>
</div>
- {% endif %}
+ @endif
<div class="row">
- <div class="{% if periods|length > 0 %}col-lg-10 col-md-10 col-sm-12 col-xs-12{% else %}col-lg-12 col-md-12 col-sm-12 col-xs-12{% endif %}">
+ <div class="@if(count($periods) > 0)col-lg-10 col-md-10 col-sm-12 col-xs-12@elsecol-lg-12 col-md-12 col-sm-12 col-xs-12@endif">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'transactions'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.transactions') }}</h3>
<div class="box-tools pull-right">
@@ -253,38 +253,38 @@
<div class="card-body">
{% include 'list.groups' with {showBudget:true, showCategory: true} %}
- {% if periods|length > 0 %}
+ @if(count($periods) > 0)
<p>
<span class="bi bi-calendar"></span>
<a href="{{ route('tags.show', [tag.id,'all']) }}">
- {{ 'show_all_no_filter'|_ }}
+ {{ __('firefly.show_all_no_filter') }}
</a>
</p>
- {% else %}
+ @else
<p>
<span class="bi bi-calendar"></span>
<a href="{{ route('tags.show', [tag.id]) }}">
- {{ 'show_the_current_period_and_overview'|_ }}
+ {{ __('firefly.show_the_current_period_and_overview') }}
</a>
</p>
- {% endif %}
+ @endif
</div>
</div>
</div>
- {% if periods|length > 0 %}
+ @if(count($periods) > 0)
<div class="col-lg-2 col-md-2 col-sm-12 col-xs-12">
{% include 'list.periods' %}
</div>
- {% endif %}
+ @endif
</div>
- {% if periods|length > 0 %}
+ @if(count($periods) > 0)
<div class="row">
<div class="col-lg-offset-10 col-lg-2 col-md-offset-10 col-md-2 col-sm-12 col-xs-12">
<p class="small text-center"><a href="{{ route('tags.show',[tag.id]) }}">{{ 'showEverything'|_ }}</a>
</p>
</div>
</div>
- {% endif %}
+ @endif
@endsection
@section('styles')
@@ -297,7 +297,7 @@
var latitude = {{ location.latitude|default("52.3167") }};
var longitude = {{ location.longitude|default("5.5500") }};
var zoomLevel = {{ location.zoom_level|default("6") }};
- {% endif %}
+ @endif
</script>
<script src="v1/lib/leaflet/leaflet.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script src="v1/js/ff/tags/show.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
diff --git a/resources/views/transactions/bulk/edit.twig b/resources/views/transactions/bulk/edit.twig
index a59e1278f3..dc6f548763 100644
--- a/resources/views/transactions/bulk/edit.twig
+++ b/resources/views/transactions/bulk/edit.twig
@@ -43,23 +43,23 @@
{{ journal.description }}</a></td>
<td>
{% if journal.transaction_type_type == 'Deposit' %}
- {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }}
+ {{ format_amount_by_symbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }}
{% if null != journal.foreign_amount %}
- ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
+ @endif
{% elseif journal.transaction_type_type == 'Transfer' %}
<span class="text-info money-transfer">
- {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places, false) }}
+ {{ format_amount_by_symbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places, false) }}
{% if null != journal.foreign_amount %}
- ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places, false) }})
- {% endif %}
+ ({{ format_amount_by_symbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places, false) }})
+ @endif
</span>
- {% else %}
- {{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }}
+ @else
+ {{ format_amount_by_symbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }}
{% if null != journal.foreign_amount %}
- ({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
- {% endif %}
- {% endif %}
+ ({{ format_amount_by_symbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
+ @endif
+ @endif
</td>
@@ -67,12 +67,12 @@
<td>
{% if journal.category_id != null %}
<a href="{{ route('categories.show', [journal.category_id]) }}" title="{{ journal.category_name }}">{{ journal.category_name }}</a>
- {% endif %}
+ @endif
</td>
<td>
{% if journal.budget_id != null %}
<a href="{{ route('budgets.show', [journal.budget_id]) }}" title="{{ journal.budget_name }}">{{ journal.budget_name }}</a>
- {% endif %}
+ @endif
</td>
<td>
{% for tag in journal.tags %}
@@ -81,13 +81,13 @@
<span class="bi bi-tag"></span>
{{ tag.name }}</a>
</span>
- {% endif %}
+ @endif
{% endfor %}
</td>
<td>
{% if journal.journals_in_group > 1 %}
<span title="{{ 'part_of_split'|_ }}" class="text-danger fa fa-exclamation-triangle"></span>
- {% endif %}
+ @endif
</td>
</tr>
{% endfor %}
diff --git a/resources/views/transactions/convert.twig b/resources/views/transactions/convert.twig
index 404e040b6a..eab5b44c05 100644
--- a/resources/views/transactions/convert.twig
+++ b/resources/views/transactions/convert.twig
@@ -22,37 +22,37 @@
{% if sourceType.type == 'Withdrawal' and destinationType.type == 'Deposit' %}
{{ trans_choice('firefly.convert_expl_w_d', groupArray.transactions|length) }}
{{ trans_choice('firefly.convert_select_sources', groupArray.transactions|length) }}
- {% endif %}
+ @endif
{# TWO: WITHDRAWAL TO TRANSFER #}
{% if sourceType.type == 'Withdrawal' and destinationType.type == 'Transfer' %}
{{ trans_choice('firefly.convert_expl_w_t', groupArray.transactions|length) }}
{{ trans_choice('firefly.convert_select_destinations', groupArray.transactions|length) }}
- {% endif %}
+ @endif
{# THREE: DEPOSIT TO WITHDRAWAL #}
{% if sourceType.type == 'Deposit' and destinationType.type == 'Withdrawal' %}
{{ trans_choice('firefly.convert_expl_d_w', groupArray.transactions|length) }}
{{ trans_choice('firefly.convert_select_destinations', groupArray.transactions|length) }}
- {% endif %}
+ @endif
{# FOUR: DEPOSIT TO TRANSFER #}
{% if sourceType.type == 'Deposit' and destinationType.type == 'Transfer' %}
{{ trans_choice('firefly.convert_expl_d_t', groupArray.transactions|length) }}
{{ trans_choice('firefly.convert_select_sources', groupArray.transactions|length) }}
- {% endif %}
+ @endif
{# FIVE: TRANSFER TO WITHDRAWAL #}
{% if sourceType.type == 'Transfer' and destinationType.type == 'Withdrawal' %}
{{ trans_choice('firefly.convert_expl_t_w', groupArray.transactions|length) }}
{{ trans_choice('firefly.convert_select_destinations', groupArray.transactions|length) }}
- {% endif %}
+ @endif
{# SIX: TRANSFER TO DEPOSIT #}
{% if sourceType.type == 'Transfer' and destinationType.type == 'Deposit' %}
{{ trans_choice('firefly.convert_expl_t_d', groupArray.transactions|length) }}
{{ trans_choice('firefly.convert_select_sources', groupArray.transactions|length) }}
- {% endif %}
+ @endif
</p>
<table class="table">
@@ -73,7 +73,7 @@
{# NEW DESTINATION = Asset, SOURCE MUST BE [Revenue, Cash, Loan, Debt, Mortgage] #}
{% if transaction.source_type == 'Asset account' %}
{{ Html::select('source_id['~transaction.transaction_journal_id~']', validDepositSources).class('form-control') }}
- {% endif %}
+ @endif
{# NEW DESTINATION = [Loan, Debt, Mortgage], SOURCE MUST BE [Revenue] #}
{% if
@@ -85,11 +85,11 @@
placeholder="Source account"
name="source_name[{{ transaction.transaction_journal_id }}]"
type="text"
- value="{% if transaction.destination_type != "Cash account" %}{{ preFilled.source_name[transaction.transaction_journal_id]|default(transaction.destination_name) }}{% endif %}"
+ value="{% if transaction.destination_type != "Cash account" %}{{ preFilled.source_name[transaction.transaction_journal_id]|default(transaction.destination_name) }}@endif"
class="form-control tt-input input-revenue"
spellcheck="false" dir="auto">
- {% endif %}
- {% endif %}
+ @endif
+ @endif
{# TWO: WITHDRAWAL TO TRANSFER #}
{% if sourceType.type == 'Withdrawal' and destinationType.type == 'Transfer' %}
@@ -100,7 +100,7 @@
<input type="hidden"
name="source_id[{{ transaction.transaction_journal_id }}]"
value="{{ transaction.source_id }}">
- {% endif %}
+ @endif
{# THREE: DEPOSIT TO WITHDRAWAL #}
{% if sourceType.type == 'Deposit' and destinationType.type == 'Withdrawal' %}
@@ -111,23 +111,23 @@
<input type="hidden"
name="source_id[{{ transaction.transaction_journal_id }}]"
value="{{ transaction.destination_id }}">
- {% endif %}
+ @endif
{# FOUR: DEPOSIT TO TRANSFER #}
{% if sourceType.type == 'Deposit' and destinationType.type == 'Transfer' %}
{# if new destination is asset, then asset #}
{% if transaction.destination_type == 'Asset account' %}
{{ Html::select('source_id['~transaction.transaction_journal_id~']', assets).class('form-control') }}
- {% endif %}
+ @endif
{% if transaction.destination_type == 'Loan' or
transaction.destination_type == 'Debt' or
transaction.destination_type == 'Mortgage' %}
{{ Html::select('source_id['~transaction.transaction_journal_id~']', liabilities).class('form-control') }}
- {% endif %}
+ @endif
{# if new destination liability, then liability. #}
- {% endif %}
+ @endif
{# FIVE: TRANSFER TO WITHDRAWAL #}
{% if sourceType.type == 'Transfer' and destinationType.type == 'Withdrawal' %}
@@ -138,7 +138,7 @@
<input type="hidden"
name="source_id[{{ transaction.transaction_journal_id }}]"
value="{{ transaction.source_id }}">
- {% endif %}
+ @endif
{# SIX: TRANSFER TO DEPOSIT #}
{% if sourceType.type == 'Transfer' and destinationType.type == 'Deposit' %}
@@ -146,7 +146,7 @@
{% if
transaction.source_type == 'Asset account' %}
{{ Html::select('source_id['~transaction.transaction_journal_id~']', validDepositSources).class('form-control') }}
- {% endif %}
+ @endif
{# NEW DESTINATION = [Debt, Mortgage, Load], SOURCE MUST BE [Revenue] #}
{% if
transaction.source_type == 'Loan' or
@@ -157,12 +157,12 @@
placeholder="Source account"
name="source_name[{{ transaction.transaction_journal_id }}]"
type="text"
- value="{% if transaction.destination_type != "Cash account" %}{{ transaction.source_name }}{% endif %}"
+ value="{% if transaction.destination_type != "Cash account" %}{{ transaction.source_name }}@endif"
class="form-control tt-input"
spellcheck="false" dir="auto">
- {% endif %}
+ @endif
- {% endif %}
+ @endif
</td>
<td>
@@ -175,7 +175,7 @@
<input type="hidden"
name="destination_id[{{ transaction.transaction_journal_id }}]"
value="{{ transaction.source_id }}">
- {% endif %}
+ @endif
{# TWO: WITHDRAWAL TO TRANSFER #}
{% if sourceType.type == 'Withdrawal' and destinationType.type == 'Transfer' %}
@@ -185,13 +185,13 @@
transaction.source_type == 'Debt' or
transaction.source_type == 'Mortgage' %}
{{ Html::select('destination_id['~transaction.transaction_journal_id~']', liabilities).class('form-control') }}
- {% endif %}
+ @endif
{# if the source is an asset, destination can only be an asset. #}
{% if transaction.source_type == 'Asset account' %}
{{ Html::select('destination_id['~transaction.transaction_journal_id~']', assets).class('form-control') }}
- {% endif %}
- {% endif %}
+ @endif
+ @endif
{# THREE: DEPOSIT TO WITHDRAWAL #}
{% if sourceType.type == 'Deposit' and destinationType.type == 'Withdrawal' %}
@@ -199,7 +199,7 @@
{# if new source is Asset, destination must be [Expense, Loan, Debt or Mortgage] #}
{% if transaction.destination_type == 'Asset account' %}
{{ Html::select('destination_id['~transaction.transaction_journal_id~']', validWithdrawalDests).class('form-control') }}
- {% endif %}
+ @endif
{% if transaction.destination_type == 'Loan' or
transaction.destination_type == 'Debt' or
transaction.destination_type == 'Mortgage' %}
@@ -210,11 +210,11 @@
placeholder="Destination account"
name="destination_name[{{ transaction.transaction_journal_id }}]"
type="text"
- value="{% if transaction.source_type != "Cash account" %}{{ transaction.source_name }}{% endif %}"
+ value="{% if transaction.source_type != "Cash account" %}{{ transaction.source_name }}@endif"
class="form-control tt-input"
spellcheck="false" dir="auto">
- {% endif %}
- {% endif %}
+ @endif
+ @endif
{# FOUR: DEPOSIT TO TRANSFER #}
{% if sourceType.type == 'Deposit' and destinationType.type == 'Transfer' %}
@@ -225,14 +225,14 @@
<input type="hidden"
name="destination_id[{{ transaction.transaction_journal_id }}]"
value="{{ transaction.destination_id }}">
- {% endif %}
+ @endif
{# FIVE: TRANSFER TO WITHDRAWAL #}
{% if sourceType.type == 'Transfer' and destinationType.type == 'Withdrawal' %}
{% if transaction.source_type == 'Asset account' %}
{{ Html::select('destination_id['~transaction.transaction_journal_id~']', validWithdrawalDests).class('form-control') }}
- {% endif %}
+ @endif
{% if transaction.source_type == 'Loan' or
transaction.source_type == 'Debt' or
transaction.source_type == 'Mortgage' %}
@@ -241,11 +241,11 @@
placeholder="Destination account"
name="destination_name[{{ transaction.transaction_journal_id }}]"
type="text"
- value="{% if transaction.source_type != "Cash account" %}{{ transaction.destination_name }}{% endif %}"
+ value="{% if transaction.source_type != "Cash account" %}{{ transaction.destination_name }}@endif"
class="form-control tt-input"
spellcheck="false" dir="auto">
- {% endif %}
- {% endif %}
+ @endif
+ @endif
{# SIX: TRANSFER TO DEPOSIT #}
{% if sourceType.type == 'Transfer' and destinationType.type == 'Deposit' %}
@@ -256,25 +256,25 @@
<input type="hidden"
name="destination_id[{{ transaction.transaction_journal_id }}]"
value="{{ transaction.destination_id }}">
- {% endif %}
+ @endif
</td>
<td>
{% if transaction.transaction_type_type == 'Deposit' %}
- {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ {{ format_amount_by_symbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ @endif
{% elseif transaction.transaction_type_type == 'Transfer' %}
- <span class="text-info money-transfer">{{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places, false) }}
+ <span class="text-info money-transfer">{{ format_amount_by_symbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places, false) }}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }})
- {% endif %}</span>
- {% else %}
- {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }})
+ @endif</span>
+ @else
+ {{ format_amount_by_symbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}
{% if null != transaction.foreign_amount %}
- ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
- {% endif %}
- {% endif %}
+ ({{ format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ @endif
+ @endif
</td>
</tr>
{% endfor %}
diff --git a/resources/views/transactions/links/delete.twig b/resources/views/transactions/links/delete.twig
index 31fa8a21b3..89ed61f597 100644
--- a/resources/views/transactions/links/delete.twig
+++ b/resources/views/transactions/links/delete.twig
@@ -24,7 +24,7 @@
</div>
<div class="card-footer">
<input type="submit" name="submit" value="{{ trans('form.deletePermanently') }}" class="btn pull-right btn-danger"/>
- <a href="{{ URL.previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
+ <a href="{{ URL::previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
</div>
</div>
</div>
diff --git a/resources/views/transactions/mass/delete.twig b/resources/views/transactions/mass/delete.twig
index bfb4e7da11..92b80d9f5f 100644
--- a/resources/views/transactions/mass/delete.twig
+++ b/resources/views/transactions/mass/delete.twig
@@ -42,22 +42,22 @@
<td>
{% if journal.transaction_type_type == 'Withdrawal' %}
<span class="bi bi-arrow-left" title="{{ trans('firefly.Withdrawal') }}"></span>
- {% endif %}
+ @endif
{% if journal.transaction_type_type == 'Deposit' %}
<span class="bi bi-arrow-right" title="{{ trans('firefly.Deposit') }}"></span>
- {% endif %}
+ @endif
{% if journal.transaction_type_type == 'Transfer' %}
<span class="bi bi-arrow-left-right" title="{{ trans('firefly.Deposit') }}"></span>
- {% endif %}
+ @endif
{% if journal.transaction_type_type == 'Reconciliation' %}
<span class="bi bi-calculator" title="{{ trans('firefly.reconciliation_transaction') }}"></span>
- {% endif %}
+ @endif
{% if journal.transaction_type_type == 'Opening balance' %}
<span class="bi bi-star" title="{{ trans('firefly.Opening balance') }}"></span>
- {% endif %}
+ @endif
</td>
<td>
<a href="{{ route('transactions.show',journal.transaction_group_id) }}"
@@ -65,22 +65,22 @@
</td>
<td>
{% if journal.transaction_type_type == 'Deposit' %}
- {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }}
+ {{ format_amount_by_symbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }}
{% if null != journal.foreign_amount %}
- ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
+ @endif
{% elseif journal.transaction_type_type == 'Transfer' %}
- <span class="text-info money-transfer">{{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places, false) }}
+ <span class="text-info money-transfer">{{ format_amount_by_symbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places, false) }}
{% if null != journal.foreign_amount %}
- ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places, false) }})
- {% endif %}
+ ({{ format_amount_by_symbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places, false) }})
+ @endif
</span>
- {% else %}
- {{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }}
+ @else
+ {{ format_amount_by_symbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }}
{% if null != journal.foreign_amount %}
- ({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
- {% endif %}
- {% endif %}
+ ({{ format_amount_by_symbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
+ @endif
+ @endif
</td>
<td>
{{ journal.date.isoFormat(monthAndDayFormat) }}
diff --git a/resources/views/transactions/mass/edit.twig b/resources/views/transactions/mass/edit.twig
index a964069b19..c5c53a8956 100644
--- a/resources/views/transactions/mass/edit.twig
+++ b/resources/views/transactions/mass/edit.twig
@@ -64,29 +64,29 @@
<input type="hidden" name="foreign_currency_id[{{ journal.transaction_journal_id }}]"
value="{{ journal.foreign_currency_id }}">
</div>
- {% endif %}
- {% endif %}
+ @endif
+ @endif
<span class="text-sm">
{% if journal.reconciled != false %}
{% if journal.transaction_type_type == 'Deposit' %}
- {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }}
+ {{ format_amount_by_symbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }}
{% if null != journal.foreign_amount %}
- ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
- {% endif %}
+ ({{ format_amount_by_symbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
+ @endif
{% elseif journal.transaction_type_type == 'Transfer' %}
<span class="text-info money-transfer">
- {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places, false) }}
+ {{ format_amount_by_symbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places, false) }}
{% if null != journal.foreign_amount %}
- ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places, false) }})
- {% endif %}
+ ({{ format_amount_by_symbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places, false) }})
+ @endif
</span>
- {% else %}
- {{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }}
+ @else
+ {{ format_amount_by_symbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }}
{% if null != journal.foreign_amount %}
- ({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
- {% endif %}
- {% endif %}
- {% endif %}
+ ({{ format_amount_by_symbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
+ @endif
+ @endif
+ @endif
</span>
</td>
<td>
@@ -100,52 +100,52 @@
<td class="position-relative">
{% if journal.reconciled == true %}
<a href="{{ route('accounts.show', [journal.source_account_id]) }}">{{ journal.source_account_name }}</a>
- {% endif %}
+ @endif
{% if journal.reconciled == false %}
{# SOURCE ACCOUNT ID FOR TRANSFER OR WITHDRAWAL #}
{% if journal.transaction_type_type == 'Transfer' or journal.transaction_type_type == 'Withdrawal' %}
<select class="form-control input-sm" name="source_id[{{ journal.transaction_journal_id }}]">
{% for account in withdrawalSources %}
- <option value="{{ account.id }}"{% if account.id == journal.source_account_id %} selected{% endif %}
+ <option value="{{ account.id }}"{% if account.id == journal.source_account_id %} selected@endif
label="{{ account.name }}">{{ account.name }}</option>
{% endfor %}
</select>
- {% endif %}
+ @endif
{# SOURCE ACCOUNT NAME FOR DEPOSIT #}
{% if journal.transaction_type_type == 'Deposit' %}
<input class="form-control input-sm" spellcheck="false"
- placeholder="{% if journal.source_type != 'Cash account' %}{{ journal.source_account_name }}{% endif %}"
+ placeholder="{% if journal.source_type != 'Cash account' %}{{ journal.source_account_name }}@endif"
autocomplete="off"
name="source_name[{{ journal.transaction_journal_id }}]" type="text"
- value="{% if journal.source_type != 'Cash account' %}{{ journal.source_account_name }}{% endif %}">
- {% endif %}
- {% endif %}
+ value="{% if journal.source_type != 'Cash account' %}{{ journal.source_account_name }}@endif">
+ @endif
+ @endif
</td>
<td class="position-relative">
{% if journal.reconciled == true %}
<a href="{{ route('accounts.show', [journal.destination_account_id]) }}">{{ journal.destination_account_name }}</a>
- {% endif %}
+ @endif
{% if journal.reconciled == false %}
{# DESTINATION ACCOUNT NAME FOR TRANSFER AND DEPOSIT #}
{% if journal.transaction_type_type == 'Transfer' or journal.transaction_type_type == 'Deposit' %}
<select class="form-control input-sm" name="destination_id[{{ journal.transaction_journal_id }}]">
{% for account in depositDestinations %}
- <option value="{{ account.id }}"{% if account.id == journal.destination_account_id %} selected="selected"{% endif %}
+ <option value="{{ account.id }}"{% if account.id == journal.destination_account_id %} selected="selected"@endif
label="{{ account.name }}">{{ account.name }}</option>
{% endfor %}
</select>
- {% endif %}
+ @endif
{# DESTINATION ACCOUNT NAME FOR WITHDRAWAL #}
{% if journal.transaction_type_type == 'Withdrawal' %}
<input class="form-control input-sm" spellcheck="false"
- placeholder="{% if journal.destination_type != 'Cash account' %}{{ journal.destination_account_name }}{% endif %}"
+ placeholder="{% if journal.destination_type != 'Cash account' %}{{ journal.destination_account_name }}@endif"
name="destination_name[{{ journal.transaction_journal_id }}]" type="text" autocomplete="off"
- value="{% if journal.destination_type != 'Cash account' %}{{ journal.destination_account_name }}{% endif %}">
- {% endif %}
- {% endif %}
+ value="{% if journal.destination_type != 'Cash account' %}{{ journal.destination_account_name }}@endif">
+ @endif
+ @endif
</td>
{# category #}
<td class="position-relative">
@@ -157,15 +157,15 @@
{% if journal.transaction_type_type == 'Withdrawal' %}
<select class="form-control input-sm" name="budget_id[{{ journal.transaction_journal_id }}]">
<option value="0" label="({{ 'no_budget'|_ }})"
- {% if journal.budget_id == 0 %}selected="selected"{% endif %}
+ {% if journal.budget_id == 0 %}selected="selected"@endif
>{{ 'no_budget'|_ }}
</option>
{% for budget in budgets %}
- <option value="{{ budget.id }}"{% if budget.id == journal.budget_id %} selected="selected"{% endif %}
+ <option value="{{ budget.id }}"{% if budget.id == journal.budget_id %} selected="selected"@endif
label="{{ budget.name }}">{{ budget.name }}</option>
{% endfor %}
</select>
- {% endif %}
+ @endif
</td>
</tr>
{% endfor %}
diff --git a/resources/views/transactions/old-index.twig b/resources/views/transactions/old-index.twig
index 1315f93e08..ee0ab98d6e 100644
--- a/resources/views/transactions/old-index.twig
+++ b/resources/views/transactions/old-index.twig
@@ -7,15 +7,15 @@
@section('content')
{# upper show-all instruction #}
- {% if periods|length > 0 %}
+ @if(count($periods) > 0)
<div class="row">
<div class="col-lg-offset-10 col-lg-2 col-md-offset-10 col-md-2 col-sm-12 col-xs-12">
<p class="small text-center"><a href="{{ route('transactions.index.all',[objectType]) }}">{{ 'showEverything'|_ }}</a></p>
</div>
</div>
- {% endif %}
+ @endif
- {% if periods|length > 0 %}
+ @if(count($periods) > 0)
{% set boxSize = 'col-lg-4 col-md-6 col-sm-12 col-xs-12' %}
<div class="row">
@@ -42,7 +42,7 @@
</div>
</div>
</div>
- {% endif %}
+ @endif
{% if objectType != 'withdrawal' %}
<div class="{{ boxSize }}">
<div class="card">
@@ -54,7 +54,7 @@
</div>
</div>
</div>
- {% endif %}
+ @endif
{# for all #}
<div class="{{ boxSize }}">
<div class="card">
@@ -67,11 +67,11 @@
</div>
</div>
</div>
- {% endif %}
+ @endif
{# list with journals #}
<div class="row">
- <div class="{% if periods|length > 0 %}col-lg-10 col-md-10 col-sm-12{% else %}col-lg-12 col-md-12 col-sm-12{% endif %}">
+ <div class="@if(count($periods) > 0)col-lg-10 col-md-10 col-sm-12@elsecol-lg-12 col-md-12 col-sm-12@endif">
<div class="card">
<div class="card-header">
<h3 class="card-title">{{ subTitle }}</h3>
@@ -85,45 +85,45 @@
</div>
<div class="card-footer">
{# links for other views #}
- {% if periods|length > 0 %}
+ @if(count($periods) > 0)
<p>
<span class="bi bi-calendar"></span>
- <a href="{{ route('transactions.index.all', [objectType]) }}">{{ 'show_all_no_filter'|_ }}</a>
+ <a href="{{ route('transactions.index.all', [objectType]) }}">{{ __('firefly.show_all_no_filter') }}</a>
</p>
- {% else %}
+ @else
<p>
<span class="bi bi-calendar"></span>
- <a href="{{ route('transactions.index', [objectType]) }}">{{ 'show_the_current_period_and_overview'|_ }}</a>
+ <a href="{{ route('transactions.index', [objectType]) }}">{{ __('firefly.show_the_current_period_and_overview') }}</a>
</p>
- {% endif %}
+ @endif
</div>
</div>
</div>
{# boxes with info #}
- {% if periods|length > 0 %}
+ @if(count($periods) > 0)
<div class="col-lg-2 col-md-2 col-sm-12 col-xs-12">
{% include 'list.periods' %}
</div>
- {% endif %}
+ @endif
</div>
{# lower show-all instruction #}
- {% if periods|length > 0 %}
+ @if(count($periods) > 0)
<div class="row">
<div class="col-lg-offset-10 col-lg-2 col-md-offset-10 col-md-2 col-sm-12 col-xs-12">
<p class="small text-center"><a href="{{ route('transactions.index.all', [objectType]) }}">{{ 'showEverything'|_ }}</a></p>
</div>
</div>
- {% endif %}
+ @endif
@endsection
@section('scripts')
{# required for groups.twig #}
<script type="text/javascript" src="v1/js/ff/list/groups.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
<script type="text/javascript" nonce="{{ $JS_NONCE }}">
- var showAll = {% if periods|length > 0 %}false{% else %}true{% endif %};
+ var showAll = @if(count($periods) > 0)false@elsetrue@endif;
var categoryChartUrl = '{{ route('chart.transactions.categories', [objectType, start.format('Y-m-d'), end.format('Y-m-d')]) }}';
var budgetChartUrl = '{{ route('chart.transactions.budgets', [start.format('Y-m-d'), end.format('Y-m-d')]) }}';
diff --git a/resources/views/transactions/show.twig b/resources/views/transactions/show.twig
index e00dbfeba9..139190195f 100644
--- a/resources/views/transactions/show.twig
+++ b/resources/views/transactions/show.twig
@@ -22,7 +22,7 @@
{% if groupArray.transactions[0].type != 'reconciliation' and groupArray.transactions[0].type != 'opening balance' and groupArray.transactions[0].type != 'liability credit' %}
<li><a href="{{ route('transactions.delete', [transactionGroup.id]) }}"><span
class="bi bi-trash"></span> {{ __('firefly.delete') }}</a></li>
- {% endif %}
+ @endif
{% if groupArray.transactions[0].type != 'reconciliation' and groupArray.transactions[0].type != 'opening balance' and groupArray.transactions[0].type != 'liability credit' %}
<li role="separator" class="divider"></li>
@@ -31,19 +31,19 @@
<li>
<a href="{{ route('transactions.convert.index', ['withdrawal', transactionGroup.id]) }}"><span
class="bi bi-arrow-left-right"></span> {{ 'convert_to_withdrawal'|_ }}</a></li>
- {% endif %}
+ @endif
{% if groupArray.transactions[0].type != 'deposit' %}
<li>
<a href="{{ route('transactions.convert.index', ['deposit', transactionGroup.id]) }}"><span
class="bi bi-arrow-left-right"></span> {{ 'convert_to_deposit'|_ }}</a></li>
- {% endif %}
+ @endif
{% if groupArray.transactions[0].type != 'transfer' %}
<li>
<a href="{{ route('transactions.convert.index', ['transfer', transactionGroup.id]) }}"><span
class="bi bi-arrow-left-right"></span> {{ 'convert_to_transfer'|_ }}</a></li>
- {% endif %}
+ @endif
{# clone #}
@@ -53,8 +53,8 @@
class="bi bi-copy"></span> {{ 'clone'|_ }}</a></li>
<li><a href="#" class="clone-transaction-and-edit" data-id="{{ transactionGroup.id }}"><span
class="bi bi-copy"></span> {{ 'clone_and_edit'|_ }}</a></li>
- {% endif %}
- {% endif %}
+ @endif
+ @endif
</ul>
</div>
@@ -75,19 +75,19 @@
<td>
{% if splits == 1 %}
{{ first.description }}
- {% else %}
+ @else
{{ transactionGroup.title }}
- {% endif %}
+ @endif
</td>
</tr>
<tr>
<td class="thirty">{{ trans('list.date') }}</td>
<td>
- <span class="date-time" data-date="{{ first.date.toIso8601ZuluString() }}" title="{{ first.date.isoFormat(dateTimeFormat) }}{% if(first.date_tz != '') %} ({{ trans('firefly.stored_in_tz', {timezone: first.date_tz }) }}, {{ trans('firefly.displayed_in_tz', {timezone: config('app.timezone') }) }}){% endif %}">
+ <span class="date-time" data-date="{{ first.date.toIso8601ZuluString() }}" title="{{ first.date.isoFormat(dateTimeFormat) }}{% if(first.date_tz != '') %} ({{ trans('firefly.stored_in_tz', {timezone: first.date_tz }) }}, {{ trans('firefly.displayed_in_tz', {timezone: config('app.timezone') }) }})@endif">
{{ first.date.isoFormat(dateTimeFormat) }}
{% if(first.date_tz != '') %}
({{ trans('firefly.stored_in_tz', {timezone: first.date_tz }) }})
- {% endif %}
+ @endif
</span>
</td>
</tr>
@@ -106,7 +106,7 @@
{% include 'list.ale' with {logEntries: groupLogEntries} %}
</div>
</div>
- {% endif %}
+ @endif
</div>
<div class="col-lg-6">
@@ -126,17 +126,17 @@
{% for account in accounts['source'] %}
{% if 'Cash account' == account.type %}
<span class="text-success">({{ 'cash'|_ }})</span>
- {% else %}
+ @else
<a href="{{ route('accounts.show',account.id) }}"
title="{{ account.iban|default(account.name) }}">
{{ account.name }}
</a>
- {% endif %}
- {% if loop.index0 != accounts['source']|length -1 %}, {% endif %}
+ @endif
+ {% if loop.index0 != accounts['source']|length -1 %}, @endif
{% endfor %}
</td>
</tr>
- {% endif %}
+ @endif
{% if first.transaction_type_type != 'Deposit' or splits == 1 %}
<tr>
@@ -148,37 +148,37 @@
{% for account in accounts['destination'] %}
{% if 'Cash account' == account.type %}
<span class="text-success">({{ 'cash'|_ }})</span>
- {% else %}
+ @else
<a href="{{ route('accounts.show',account.id) }}"
title="{{ account.iban|default(account.name) }}">
{{ account.name }}
</a>
- {% endif %}
- {% if loop.index0 != accounts['destination']|length -1 %}, {% endif %}
+ @endif
+ {% if loop.index0 != accounts['destination']|length -1 %}, @endif
{% endfor %}
</td>
</tr>
- {% endif %}
+ @endif
<tr>
<td class="thirty">{{ 'total_amount'|_ }}</td>
<td>
{% for amount in amounts %}
{% if first.transaction_type_type == 'Withdrawal' %}
- {% if amount.approximate %}~ {% endif %}{{ formatAmountBySymbol(amount.amount,amount.symbol, amount.decimal_places) }}{% if loop.index0 != amounts|length -1 %}, {% endif %}
+ {% if amount.approximate %}~ @endif{{ format_amount_by_symbol(amount.amount,amount.symbol, amount.decimal_places) }}{% if loop.index0 != amounts|length -1 %}, @endif
{% elseif first.transaction_type_type == 'Deposit' %}
- {% if amount.approximate %}~ {% endif %}{{ formatAmountBySymbol(amount.amount*-1,amount.symbol, amount.decimal_places) }}{% if loop.index0 != amounts|length -1 %}, {% endif %}
+ {% if amount.approximate %}~ @endif{{ format_amount_by_symbol(amount.amount*-1,amount.symbol, amount.decimal_places) }}{% if loop.index0 != amounts|length -1 %}, @endif
{% elseif first.transaction_type_type == 'Transfer' %}
<span class="text-info money-transfer">
- {% if amount.approximate %}~ {% endif %}{{ formatAmountBySymbol(amount.amount*-1, amount.symbol, amount.decimal_places, false) }}{% if loop.index0 != amounts|length -1 %}, {% endif %}
+ {% if amount.approximate %}~ @endif{{ format_amount_by_symbol(amount.amount*-1, amount.symbol, amount.decimal_places, false) }}{% if loop.index0 != amounts|length -1 %}, @endif
</span>
{% elseif first.transaction_type_type == 'Opening balance' %}
{# Opening balance stored amount is always negative: find out which way the money goes #}
{% if groupArray.transactions[0].source_account_type == 'Initial balance account' %}
- {{ formatAmountBySymbol(amount.amount*-1,amount.symbol, amount.decimal_places) }}
- {% else %}
- {{ formatAmountBySymbol(amount.amount,amount.symbol, amount.decimal_places) }}
- {% endif %}
- {% endif %}
+ {{ format_amount_by_symbol(amount.amount*-1,amount.symbol, amount.decimal_places) }}
+ @else
+ {{ format_amount_by_symbol(amount.amount,amount.symbol, amount.decimal_places) }}
+ @endif
+ @endif
{% endfor %}
</td>
</tr>
@@ -197,14 +197,14 @@
<h3>{{ 'splits'|_ }}</h3>
</div>
</div>
- {% endif %}
+ @endif
{% set boxSize=6 %}
{% if(splits == 2) %}
{% set boxSize=6 %}
- {% endif %}
+ @endif
{% if (splits > 2) %}
{% set boxSize = 4 %}
- {% endif %}
+ @endif
<div class="row">
{% for index, journal in selectedGroup.transactions %}
<div class="col-lg-{{ boxSize }}">
@@ -214,12 +214,12 @@
{{ journal.description }}
{% if journal.reconciled %}
<span class="bi bi-check"></span>
- {% endif %}
+ @endif
{% if splits > 1 %}
<small>
{{ index+1 }} / {{ splits }}
</small>
- {% endif %}
+ @endif
</h3>
@@ -235,11 +235,11 @@
{% if groupArray.transactions[0].type != 'reconciliation' and groupArray.transactions[0].type != 'opening balance' and groupArray.transactions[0].type != 'liability credit' %}
<li><a href="{{ route('transactions.delete', [transactionGroup.id]) }}"><span
class="bi bi-trash"></span> {{ __('firefly.delete') }}</a></li>
- {% endif %}
+ @endif
{% if journal.reconciled %}
<li><a class="reconcile-button" href="{{ route('transactions.unreconcile', [journal.transaction_journal_id]) }}"><span
class="fa fa-history"></span> {{ 'unreconcile'|_ }}</a></li>
- {% endif %}
+ @endif
{% if groupArray.transactions[0].type != 'reconciliation' and groupArray.transactions[0].type != 'opening balance' and groupArray.transactions[0].type != 'liability credit' %}
<li role="separator" class="divider"></li>
@@ -249,20 +249,20 @@
<a href="{{ route('transactions.convert.index', ['withdrawal', transactionGroup.id]) }}"><span
class="bi bi-arrow-left-right"></span> {{ 'convert_to_withdrawal'|_ }}</a>
</li>
- {% endif %}
+ @endif
{% if groupArray.transactions[0].type != 'deposit' %}
<li>
<a href="{{ route('transactions.convert.index', ['deposit', transactionGroup.id]) }}"><span
class="bi bi-arrow-left-right"></span> {{ 'convert_to_deposit'|_ }}</a></li>
- {% endif %}
+ @endif
{% if groupArray.transactions[0].type != 'transfer' %}
<li>
<a href="{{ route('transactions.convert.index', ['transfer', transactionGroup.id]) }}"><span
class="bi bi-arrow-left-right"></span> {{ 'convert_to_transfer'|_ }}</a>
</li>
- {% endif %}
+ @endif
{# clone #}
{% if groupArray.transactions[0].type != 'opening balance' and groupArray.transactions[0].type != 'reconciliation' %}
@@ -271,7 +271,7 @@
class="bi bi-copy"></span> {{ 'clone'|_ }}</a></li>
<li><a href="#" data-id="{{ transactionGroup.id }}" class="clone-transaction-and-edit"><span
class="bi bi-copy"></span> {{ 'clone_and_edit'|_ }}</a></li>
- {% endif %}
+ @endif
<li><a href="#" class="link-modal"
data-journal="{{ journal.transaction_journal_id }}"><span
@@ -285,7 +285,7 @@
<a href="{{ route('recurring.create-from-journal', [journal.transaction_journal_id]) }}"><span
class="fa fa-paint-brush"></span>{{ 'create_recurring_from_transaction'|_ }}
</a></li>
- {% endif %}
+ @endif
</ul>
</div>
</div>
@@ -295,72 +295,72 @@
<td colspan="2">
{% if 'Cash account' == journal.source_account_type %}
<span class="text-success">({{ 'cash'|_ }})</span>
- {% else %}
+ @else
<a href="{{ route('accounts.show', journal.source_account_id) }}"
title="{{ journal.source_iban|default(journal.source_account_name) }}">{{ journal.source_account_name }}</a> &rarr;
- {% endif %}
+ @endif
{% if first.transaction_type_type == 'Withdrawal' %}
- {{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }}
+ {{ format_amount_by_symbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }}
{% elseif first.transaction_type_type == 'Deposit' %}
- {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }}
+ {{ format_amount_by_symbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }}
{% elseif first.transaction_type_type == 'Transfer' or first.transaction_type_type == 'Opening balance' %}
<span class="text-info money-transfer">
- {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places, false) }}
+ {{ format_amount_by_symbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places, false) }}
</span>
{% elseif first.transaction_type_type == 'Liability credit' %}
<span class="text-info money-transfer">
- {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places, false) }}
+ {{ format_amount_by_symbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places, false) }}
</span>
- {% endif %}
+ @endif
<!-- do primary currency amount, if foreign amount is not the same. -->
{% if null != journal.pc_amount and primaryCurrency.id != journal.currency_id and primaryCurrency.id != journal.foreign_currency_id %}
{% if first.transaction_type_type == 'Withdrawal' %}
- (~ {{ formatAmountBySymbol(journal.pc_amount, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
+ (~ {{ format_amount_by_symbol(journal.pc_amount, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
{% elseif first.transaction_type_type == 'Deposit' %}
- (~ {{ formatAmountBySymbol(journal.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
+ (~ {{ format_amount_by_symbol(journal.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
{% elseif first.transaction_type_type == 'Transfer' %}
<span class="text-info money-transfer">
- (~ {{ formatAmountBySymbol(journal.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places, false) }})
+ (~ {{ format_amount_by_symbol(journal.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places, false) }})
</span>
- {% endif %}
- {% endif %}
+ @endif
+ @endif
<!-- do foreign amount -->
{% if null != journal.foreign_amount %}
{% if first.transaction_type_type == 'Withdrawal' %}
- ({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
+ ({{ format_amount_by_symbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
{% elseif first.transaction_type_type == 'Deposit' %}
- ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
+ ({{ format_amount_by_symbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
{% elseif first.transaction_type_type == 'Transfer' %}
<span class="text-info money-transfer">
- ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places, false) }})
+ ({{ format_amount_by_symbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places, false) }})
</span>
- {% endif %}
- {% endif %}
+ @endif
+ @endif
<!-- do foreign PC amount -->
{% if null != journal.pc_foreign_amount %}
{% if first.transaction_type_type == 'Withdrawal' %}
- ({{ formatAmountBySymbol(journal.pc_foreign_amount, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
+ ({{ format_amount_by_symbol(journal.pc_foreign_amount, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
{% elseif first.transaction_type_type == 'Deposit' %}
- ({{ formatAmountBySymbol(journal.pc_foreign_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
+ ({{ format_amount_by_symbol(journal.pc_foreign_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})
{% elseif first.transaction_type_type == 'Transfer' %}
<span class="text-info money-transfer">
- ({{ formatAmountBySymbol(journal.pc_foreign_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places, false) }})
+ ({{ format_amount_by_symbol(journal.pc_foreign_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places, false) }})
</span>
- {% endif %}
- {% endif %}
+ @endif
+ @endif
&rarr;
{% if 'Cash account' == journal.destination_account_type %}
<span class="text-success">({{ 'cash'|_ }})</span>
- {% else %}
+ @else
<a href="{{ route('accounts.show', journal.destination_account_id) }}"
title="{{ journal.destination_iban|default(journal.destination_account_name) }}">{{ journal.destination_account_name }}</a>
- {% endif %}
+ @endif
</td>
</tr>
<tr>
@@ -374,7 +374,7 @@
<a href="{{ route('categories.show', [journal.category_id]) }}">{{ journal.category_name }}</a>
</td>
</tr>
- {% endif %}
+ @endif
{% if null != journal.budget_id and first.transaction_type_type == 'Withdrawal' %}
<tr>
<td class="forty">{{ 'budget'|_ }}</td>
@@ -382,7 +382,7 @@
<a href="{{ route('budgets.show', [journal.budget_id]) }}">{{ journal.budget_name }}</a>
</td>
</tr>
- {% endif %}
+ @endif
{% if null != journal.bill_id and first.transaction_type_type == 'Withdrawal' %}
<tr>
<td class="forty">{{ 'bill'|_ }}</td>
@@ -390,7 +390,7 @@
<a href="{{ route('subscriptions.show', [journal.bill_id]) }}">{{ journal.bill_name }}</a>
</td>
</tr>
- {% endif %}
+ @endif
<!-- other fields -->
{% for dateField in ['interest_date','book_date','process_date','due_date','payment_date','invoice_date'] %}
{% if journalHasMeta(journal.transaction_journal_id, dateField) %}
@@ -398,7 +398,7 @@
<td class="forty">{{ trans('list.'~dateField) }}</td>
<td>{{ journalGetMetaDate(journal.transaction_journal_id, dateField).isoFormat(monthAndDayFormat) }}</td>
</tr>
- {% endif %}
+ @endif
{% endfor %}
{% for metaField in ['external_id','bunq_payment_id','internal_reference','sepa_batch_id','sepa_ct_id','sepa_ct_op','sepa_db','sepa_country','sepa_cc','sepa_ep','sepa_ci','external_url'] %}
{% if journalHasMeta(journal.transaction_journal_id, metaField) %}
@@ -410,34 +410,34 @@
<a href="{{ url }}" rel="noopener noreferrer nofollow" target="_blank">
{% if url|length > 60 %}
{{ url|slice(0, 60) ~ '...' }}
- {% else %}
+ @else
{{ url }}
- {% endif %}
+ @endif
</a>
- {% endif %}
+ @endif
{% if 'external_url' != metaField %}
{{ journalGetMetaField(journal.transaction_journal_id, metaField) }}
- {% endif %}
+ @endif
</td>
</tr>
- {% endif %}
+ @endif
{% endfor %}
{% if null != journal.notes and '' != journal.notes %}
<tr>
<td class="forty">{{ trans('list.notes') }}</td>
<td class="markdown">{{ journal.notes|default('')|markdown }}</td>
</tr>
- {% endif %}
+ @endif
{% if journalHasMeta(journal.transaction_journal_id, 'recurring_total') and journalHasMeta(journal.transaction_journal_id, 'recurring_count') %}
{% set recurringTotal = journalGetMetaField(journal.transaction_journal_id, 'recurring_total') %}
{% if 0 == recurringTotal %}
{% set recurringTotal = '∞' %}
- {% endif %}
+ @endif
<tr>
<td class="forty">{{ trans('list.recurring_transaction') }}</td>
<td>{{ trans('firefly.recurring_info', {total: recurringTotal, count: journalGetMetaField(journal.transaction_journal_id, 'recurring_count') }) }}</td>
</tr>
- {% endif %}
+ @endif
{% if journal.tags|length > 0 %}
<tr>
<td class="forty">{{ 'tags'|_ }}</td>
@@ -445,11 +445,11 @@
{% for tag in journal.tags %}
{% if null != tag.id and '' != tag.id %}
<h4 class="inline"><a class="badge text-bg-success" href="{{ route('tags.show', [tag.id]) }}"><span class="bi bi-tag"></span>{{ tag.tag }}</a></h4>
- {% endif %}
+ @endif
{% endfor %}
</td>
</tr>
- {% endif %}
+ @endif
</table>
</div>
</div>
@@ -477,19 +477,19 @@
<td>
{% if link.editable %}
{{ link.link }}
- {% else %}
+ @else
{{ trans('firefly.'~link.link) }}
- {% endif %}
+ @endif
"<a href="{{ route('transactions.show', link.group) }}"
title="{{ link.description }}">{{ link.description }}</a>"
({{ link.amount|raw }})
{% if '' != link.foreign_amount %}
({{ link.foreign_amount|raw }})
- {% endif %}
+ @endif
{% if link.notes != "" %}
({{ link.notes }})
- {% endif %}
+ @endif
</td>
</tr>
{% endfor %}
@@ -497,7 +497,7 @@
</table>
</div>
</div>
- {% endif %}
+ @endif
<!-- Attachments -->
{% if attachments[journal.transaction_journal_id]|length > 0 %}
@@ -509,7 +509,7 @@
{% include 'list.attachments' with {attachments: attachments[journal.transaction_journal_id]} %}
</div>
</div>
- {% endif %}
+ @endif
<!-- Piggy bank events -->
{% if events[journal.transaction_journal_id]|length > 0 %}
@@ -531,7 +531,7 @@
</table>
</div>
</div>
- {% endif %}
+ @endif
{% if logEntries[journal.transaction_journal_id]|length > 0 %}
<div class="card">
<div class="card-header">
@@ -543,7 +543,7 @@
{% include 'list.ale' with {logEntries: logEntries[journal.transaction_journal_id]} %}
</div>
</div>
- {% endif %}
+ @endif
</div>
{% endfor %}
</div>
diff --git a/resources/views/transactions/single/delete.twig b/resources/views/transactions/single/delete.twig
index 4a6a556936..79d00037ac 100644
--- a/resources/views/transactions/single/delete.twig
+++ b/resources/views/transactions/single/delete.twig
@@ -27,13 +27,13 @@
<input type="submit" name="submit" value="{{ trans('form.deletePermanently') }}" class="btn btn-danger pull-right"/>
{% if journal.transactiontype.type == 'Withdrawal' %}
<a href="{{ route('transactions.index','withdrawal') }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
- {% endif %}
+ @endif
{% if journal.transactiontype.type == 'Deposit' %}
<a href="{{ route('transactions.index','deposit') }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
- {% endif %}
+ @endif
{% if journal.transactiontype.type == 'Transfer' %}
<a href="{{ route('transactions.index','transfers') }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
- {% endif %}
+ @endif
</div>
</div>
</div>
diff --git a/resources/views/vendor/passport/authorize.twig b/resources/views/vendor/passport/authorize.twig
index 918ca48dcf..d6f6c0d67a 100644
--- a/resources/views/vendor/passport/authorize.twig
+++ b/resources/views/vendor/passport/authorize.twig
@@ -65,14 +65,14 @@
<p>
{{ trans('firefly.authorization_request_site', {url: client.redirect|phphost})|raw }}
</p>
- {% endif %}
+ @endif
{% if client.user.id != user.id %}
<p class="text-danger">
{{ 'authorization_request_invalid'|_ }}
</p>
- {% endif %}
+ @endif
<!-- Scope List -->
{% if scopes|length > 0 %}
<div class="scopes">
@@ -84,7 +84,7 @@
{% endfor %}
</ul>
</div>
- {% endif %}
+ @endif
<div class="buttons">
<!-- Authorize Button -->
@@ -97,7 +97,7 @@
<button type="submit"
class="btn btn-success btn-approve">{{ 'button_authorize'|_ }}</button>
</form>
- {% endif %}
+ @endif
<!-- Cancel Button -->
<form method="post" action="{{ route('index') }}/oauth/authorize">
diff --git a/resources/views/webhooks/delete.twig b/resources/views/webhooks/delete.twig
index 3f64ca1a47..4b647e36ac 100644
--- a/resources/views/webhooks/delete.twig
+++ b/resources/views/webhooks/delete.twig
@@ -23,7 +23,7 @@
<div class="card-footer">
<input type="submit" id="button" name="submit" value="{{ trans('form.deletePermanently') }}"
class="btn pull-right btn-danger"/>
- <a href="{{ URL.previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
+ <a href="{{ URL::previous() }}" class="btn-outline-secondary btn">{{ trans('form.cancel') }}</a>
</div>
</div>
</div>
@@ -36,7 +36,7 @@
$('#button').click(function() {
var url = "{{ route('index') }}/api/v1/webhooks/{{ webhook.id }}";
$.ajax({url: url, type: 'DELETE'}).done(function() {
- window.location = "{{ URL.previous() }}?webhook_id={{ webhook.id }}&message=deleted";
+ window.location = "{{ URL::previous() }}?webhook_id={{ webhook.id }}&message=deleted";
});
});
});