diff --git a/app/Http/Controllers/Report/AccountController.php b/app/Http/Controllers/Report/AccountController.php
index 4c76ad7795..67d3b9e6bf 100644
--- a/app/Http/Controllers/Report/AccountController.php
+++ b/app/Http/Controllers/Report/AccountController.php
@@ -63,7 +63,7 @@ final class AccountController extends Controller
} catch (Throwable $e) {
Log::error(sprintf('Could not render reports.partials.accounts: %s', $e->getMessage()));
Log::error($e->getTraceAsString());
- $result = 'Could not render view.';
+ $result = sprintf('Could not render view: %s', $e->getMessage());
throw new FireflyException($result, 0, $e);
}
diff --git a/app/Http/Controllers/Report/BillController.php b/app/Http/Controllers/Report/BillController.php
index 03bc1f12f0..9cc102da3c 100644
--- a/app/Http/Controllers/Report/BillController.php
+++ b/app/Http/Controllers/Report/BillController.php
@@ -63,7 +63,7 @@ final class BillController extends Controller
} catch (Throwable $e) {
Log::error(sprintf('Could not render reports.partials.budgets: %s', $e->getMessage()));
Log::error($e->getTraceAsString());
- $result = 'Could not render view.';
+ $result = sprintf('Could not render view: %s', $e->getMessage());
throw new FireflyException($result, 0, $e);
}
diff --git a/app/Http/Controllers/Report/CategoryController.php b/app/Http/Controllers/Report/CategoryController.php
index 7b8e79975b..11d6b70de6 100644
--- a/app/Http/Controllers/Report/CategoryController.php
+++ b/app/Http/Controllers/Report/CategoryController.php
@@ -641,9 +641,11 @@ final class CategoryController extends Controller
public function topExpenses(Collection $accounts, Collection $categories, Carbon $start, Carbon $end)
{
$spent = $this->opsRepository->listExpenses($start, $end, $accounts, $categories);
+ $incomeTopLength = 0;
$result = [];
foreach ($spent as $currency) {
foreach ($currency['categories'] as $category) {
+ $incomeTopLength++;
foreach ($category['transaction_journals'] as $journal) {
$result[] = [
'description' => $journal['description'],
@@ -670,7 +672,7 @@ final class CategoryController extends Controller
array_multisort($amounts, SORT_ASC, $result);
try {
- $result = view('reports.category.partials.top-expenses', ['result' => $result])->render();
+ $result = view('reports.category.partials.top-expenses', ['result' => $result, 'incomeTopLength' => $incomeTopLength])->render();
} catch (Throwable $e) {
Log::debug(sprintf('Could not render reports.partials.budget-period: %s', $e->getMessage()));
$result = sprintf('Could not render view: %s', $e->getMessage());
diff --git a/app/Http/Controllers/Report/OperationsController.php b/app/Http/Controllers/Report/OperationsController.php
index e55f14fcf8..8a4b7692eb 100644
--- a/app/Http/Controllers/Report/OperationsController.php
+++ b/app/Http/Controllers/Report/OperationsController.php
@@ -75,13 +75,14 @@ final class OperationsController extends Controller
}
$report = $this->tasker->getExpenseReport($start, $end, $accounts);
$type = 'expense-entry';
+ $incomeTopLength= count($report['accounts']);
try {
- $result = view('reports.partials.income-expenses', ['report' => $report, 'type' => $type])->render();
+ $result = view('reports.partials.income-expenses', ['report' => $report, 'type' => $type, 'incomeTopLength' => $incomeTopLength])->render();
} catch (Throwable $e) {
Log::error(sprintf('Could not render reports.partials.income-expense: %s', $e->getMessage()));
Log::error($e->getTraceAsString());
- $result = 'Could not render view.';
+ $result = sprintf('Could not render view: %s', $e->getMessage());
throw new FireflyException($result, 0, $e);
}
@@ -115,7 +116,7 @@ final class OperationsController extends Controller
} catch (Throwable $e) {
Log::error(sprintf('Could not render reports.partials.income-expenses: %s', $e->getMessage()));
Log::error($e->getTraceAsString());
- $result = 'Could not render view.';
+ $result = sprintf('Could not render view: %s', $e->getMessage());
throw new FireflyException($result, 0, $e);
}
@@ -170,7 +171,7 @@ final class OperationsController extends Controller
} catch (Throwable $e) {
Log::error(sprintf('Could not render reports.partials.operations: %s', $e->getMessage()));
Log::error($e->getTraceAsString());
- $result = 'Could not render view.';
+ $result = sprintf('Could not render view: %s', $e->getMessage());
throw new FireflyException($result, 0, $e);
}
diff --git a/resources/views/accounts/reconcile/unused-show.blade.php b/resources/views/accounts/reconcile/unused-show.blade.php
index a23a55734f..185ccfdbf2 100644
--- a/resources/views/accounts/reconcile/unused-show.blade.php
+++ b/resources/views/accounts/reconcile/unused-show.blade.php
@@ -66,7 +66,7 @@
{{--
- | {{ 'categories'|_ }} |
+ {{ __('firefly.categories') }} |
{{ journalCategories(journal)|raw }} |
--}}
diff --git a/resources/views/budgets/partials/unused-amount-left.blade.php b/resources/views/budgets/partials/unused-amount-left.blade.php
index 59a8d8914f..d4713448fc 100644
--- a/resources/views/budgets/partials/unused-amount-left.blade.php
+++ b/resources/views/budgets/partials/unused-amount-left.blade.php
@@ -2,21 +2,21 @@
{% for budgetLimit in budget.budgeted %}
{{-- the amount left --}}
- {{ format_amount_by_symbol(budgetLimit.left, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }}
+ {!! format_amount_by_symbol(budgetLimit.left, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }}
{{-- 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 %}
- ({{ format_amount_by_symbol(budgetLimit.left, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})
+ ({!! format_amount_by_symbol(budgetLimit.left, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})
@else
- ({{ format_amount_by_symbol(budgetLimit.left / budgetLimit.active_days_left, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})
+ ({!! format_amount_by_symbol(budgetLimit.left / budgetLimit.active_days_left, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})
@endif
@endif
{{-- if there is nothing left, just format 0.00 --}}
{% if not budgetLimit.in_past and -1 != bccomp('0',budgetLimit.left) %}
- ({{ format_amount_by_symbol('0', budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})
+ ({!! format_amount_by_symbol('0', budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})
@endif
@endforeach
@@ -35,15 +35,15 @@
- {{ format_amount_by_symbol(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 %}
- ({{ format_amount_by_symbol(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) }})
@else
- ({{ format_amount_by_symbol((spentInfo.spent + budgetLimit.amount) / activeDaysLeft, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }})
+ ({!! 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) }})
+ ({!! format_amount_by_symbol(0, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }})
@endif
@@ -52,7 +52,7 @@
{% if spentInfo.currency_id == budgetLimit.currency_id and not budgetLimit.in_range and 0.0 == budgetLimit.total_days %}
- {{ format_amount_by_symbol(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) }}
({{ 'unknown'|_ }})
@endif
@@ -60,9 +60,9 @@
- {{ format_amount_by_symbol(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) }}
- ({{ format_amount_by_symbol((spentInfo.spent + budgetLimit.amount) / budgetLimit.total_days, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }})
+ ({!! format_amount_by_symbol((spentInfo.spent + budgetLimit.amount) / budgetLimit.total_days, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }})
@endif
@endforeach
@@ -76,17 +76,17 @@
{% if null == budget.spent[budgetLimit.currency_id] %}
- {{ format_amount_by_symbol(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 %}
- ({{ format_amount_by_symbol(budgetLimit.amount, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})
+ ({!! 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) }})
+ ({!! format_amount_by_symbol(budgetLimit.amount / activeDaysLeft, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})
@endif
@endif
{% if not budgetLimit.in_range %}
- ({{ format_amount_by_symbol(budgetLimit.amount / budgetLimit.total_days, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})
+ ({!! format_amount_by_symbol(budgetLimit.amount / budgetLimit.total_days, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})
@endif
diff --git a/resources/views/budgets/partials/unused-amount-spent.blade.php b/resources/views/budgets/partials/unused-amount-spent.blade.php
index 8fdf735927..c8d2632000 100644
--- a/resources/views/budgets/partials/unused-amount-spent.blade.php
+++ b/resources/views/budgets/partials/unused-amount-spent.blade.php
@@ -1,10 +1,10 @@
{{-- this is spent in budget limits: --}}
{% for budgetLimit in budget.budgeted %}
- {{ format_amount_by_symbol(budgetLimit.spent, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }}
+ {!! format_amount_by_symbol(budgetLimit.spent, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }}
{% if 0 == budgetLimit.active_days_passed %}
- ({{ format_amount_by_symbol(budgetLimit.spent, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})
+ ({!! format_amount_by_symbol(budgetLimit.spent, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})
@else
- ({{ format_amount_by_symbol(budgetLimit.spent / budgetLimit.active_days_passed, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})
+ ({!! format_amount_by_symbol(budgetLimit.spent / budgetLimit.active_days_passed, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }})
@endif
@endforeach
@@ -12,11 +12,11 @@
{{-- this is spent NOT in budget limits: --}}
{% for spent in budget.spent %}
{% if 0 != bccomp('0', spent.spent_outside) %}
- {{ format_amount_by_symbol(spent.spent_outside, spent.currency_symbol, spent.currency_decimal_places) }}
+ {!! format_amount_by_symbol(spent.spent_outside, spent.currency_symbol, spent.currency_decimal_places) }}
{% if 0 == activeDaysPassed %}
- ({{ format_amount_by_symbol(spent.spent_outside, spent.currency_symbol, spent.currency_decimal_places) }})
+ ({!! format_amount_by_symbol(spent.spent_outside, spent.currency_symbol, spent.currency_decimal_places) }})
@else
- ({{ format_amount_by_symbol(spent.spent_outside / activeDaysPassed, spent.currency_symbol, spent.currency_decimal_places) }})
+ ({!! format_amount_by_symbol(spent.spent_outside / activeDaysPassed, spent.currency_symbol, spent.currency_decimal_places) }})
@endif
@endif
@@ -26,17 +26,17 @@
{% for spentInfo in budget.spent %}
- {{ format_amount_by_symbol(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 %}
- ({{ format_amount_by_symbol(spentInfo.spent, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }})
+ ({!! 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) }})
+ ({!! format_amount_by_symbol(spentInfo.spent / activeDaysPassed, spentInfo.currency_symbol, spentInfo.currency_decimal_places) }})
@endif
@endforeach
{% for budgetLimit in budget.budgeted %}
{% if null == budget.spent[budgetLimit.currency_id] %}
- {{ format_amount_by_symbol(0, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }}
+ {!! format_amount_by_symbol(0, budgetLimit.currency_symbol, budgetLimit.currency_decimal_places) }}
@endif
@endforeach
--}}
diff --git a/resources/views/components/generic/amount.blade.php b/resources/views/components/generic/amount.blade.php
index 44fc0daad8..bf888318c3 100644
--- a/resources/views/components/generic/amount.blade.php
+++ b/resources/views/components/generic/amount.blade.php
@@ -104,12 +104,12 @@
{% elseif transaction.transaction_type_type == 'Reconciliation' %}
@else
- {{ format_amount_by_symbol(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 %}
- ({{ format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ ({!! format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
@endif
{% if convertToPrimary and null != transaction.pc_amount %}
- ({{ format_amount_by_symbol(transaction.pc_amount, $primaryCurrency->symbol, foreign_currency_.decimal_places) }})
+ ({!! format_amount_by_symbol(transaction.pc_amount, $primaryCurrency->symbol, foreign_currency_.decimal_places) }})
@endif
@endif
diff --git a/resources/views/components/lists/subscriptions.blade.php b/resources/views/components/lists/subscriptions.blade.php
index 65080ea62c..e5cf0c0c31 100644
--- a/resources/views/components/lists/subscriptions.blade.php
+++ b/resources/views/components/lists/subscriptions.blade.php
@@ -58,7 +58,7 @@
~ {!! format_amount_by_symbol(($entry['amount_max'] + $entry['amount_min'])/2, $entry['currency_symbol'], $entry['currency_decimal_places']) !!}
@if('0' !== $entry['pc_amount_max'] && null !== $entry['pc_amount_max'])
- (~ {{ format_amount_by_symbol(($entry['pc_amount_max'] + $entry['pc_amount_min'])/2, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
+ (~ {!! format_amount_by_symbol(($entry['pc_amount_max'] + $entry['pc_amount_min'])/2, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
@endif
diff --git a/resources/views/json/piggy-banks-old.blade.php b/resources/views/json/piggy-banks-old.blade.php
index 6877666b17..a1680681ec 100644
--- a/resources/views/json/piggy-banks-old.blade.php
+++ b/resources/views/json/piggy-banks-old.blade.php
@@ -10,20 +10,20 @@
{% if entry.percentage >=20 %}
{% if convertToPrimary and 0 != avg.pc_amount %}
- {{ 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) }})
+ {!! 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) }}
+ {!! format_amount_by_symbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places, false) }}
@endif
@endif
{% if entry.percentage < 20 %}
{% if convertToPrimary and 0 != avg.pc_amount %}
- {{ 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) }})
+ {!! 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) }}
+ {!! format_amount_by_symbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places, false) }}
@endif
@endif
diff --git a/resources/views/json/piggy-banks.blade.php b/resources/views/json/piggy-banks.blade.php
index 53cbe28953..33e44e2fcf 100644
--- a/resources/views/json/piggy-banks.blade.php
+++ b/resources/views/json/piggy-banks.blade.php
@@ -10,22 +10,22 @@
@if($entry['percentage'] > 20)
@if($convertToPrimary && 0 !== $avg['pc_amount'])
- {{ 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) }})
+ {!! 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) }})
@endif
@if(!$convertToPrimary)
- {{ format_amount_by_symbol($entry['amount'], $entry['currency_symbol'], $entry['currency_decimal_places'], false) }}
+ {!! format_amount_by_symbol($entry['amount'], $entry['currency_symbol'], $entry['currency_decimal_places'], false) }}
@endif
@endif
@if($entry['percentage'] <= 20)
@if($convertToPrimary && 0 !== $avg['pc_amount'])
- {{ 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) }})
+ {!! 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) }})
@endif
@if(!$convertToPrimary)
- {{ format_amount_by_symbol($entry['amount'], $entry['currency_symbol'], $entry['currency_decimal_places'], false) }}
+ {!! format_amount_by_symbol($entry['amount'], $entry['currency_symbol'], $entry['currency_decimal_places'], false) }}
@endif
@endif
diff --git a/resources/views/list/accounts.blade.php b/resources/views/list/accounts.blade.php
index 1b2946bf6e..3dca806a34 100644
--- a/resources/views/list/accounts.blade.php
+++ b/resources/views/list/accounts.blade.php
@@ -62,7 +62,7 @@
{{ trans('firefly.liability_direction_'~account.liability_direction~'_short') }} |
{{ account.interest }}% ({{ account.interestPeriod|lower }}) |
@endif
- {{ account.iban }}{% if account.iban == '' %}{{ accountGetMetaField(account, 'account_number') }}@endif |
+ {{ $account['iban'] }}{% if $account['iban'] == '' %}{{ accountGetMetaField(account, 'account_number') }}@endif |
{% if objectType != 'liabilities' %}
@@ -70,11 +70,11 @@
{% if 'balance' == key %}
{% if not convertToPrimary %}
- {{ format_amount_by_symbol(balance, account.currency.symbol, account.currency.decimal_places) }}
+ {!! format_amount_by_symbol(balance, account.currency.symbol, account.currency.decimal_places) }}
@endif
{% elseif 'pc_balance' == key %}
{% if convertToPrimary %}
- {{ format_amount_by_symbol(balance, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }}
+ {!! format_amount_by_symbol(balance, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }}
@endif
@else
({{ formatAmountByCode(balance, key) }})
@@ -88,7 +88,7 @@
|
{% if '-' != account.current_debt %}
- {{ format_amount_by_symbol(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) }}
@endif
|
@@ -119,11 +119,11 @@
{% if 'balance' == key %}
{% if not convertToPrimary %}
- {{ format_amount_by_symbol(balance, account.currency.symbol, account.currency.decimal_places) }}
+ {!! format_amount_by_symbol(balance, account.currency.symbol, account.currency.decimal_places) }}
@endif
{% elseif 'pc_balance' == key %}
{% if convertToPrimary %}
- {{ format_amount_by_symbol(balance, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }}
+ {!! format_amount_by_symbol(balance, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }}
@endif
@else
({{ formatAmountByCode(balance, key) }})
diff --git a/resources/views/list/ale.blade.php b/resources/views/list/ale.blade.php
index 8bf8914cd4..627885babb 100644
--- a/resources/views/list/ale.blade.php
+++ b/resources/views/list/ale.blade.php
@@ -28,14 +28,14 @@
@endif
{% if 'update_amount' == logEntry.action %}
- {{ format_amount_by_symbol(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) }}
→
- {{ format_amount_by_symbol(logEntry.after.amount, logEntry.after.currency_symbol, logEntry.after.decimal_places, true) }}
+ {!! format_amount_by_symbol(logEntry.after.amount, logEntry.after.currency_symbol, logEntry.after.decimal_places, true) }}
@endif
{% if 'update_foreign_amount' == logEntry.action %}
- {{ format_amount_by_symbol(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) }}
→
- {{ format_amount_by_symbol(logEntry.after.amount, logEntry.after.currency_symbol, logEntry.after.decimal_places, true) }}
+ {!! format_amount_by_symbol(logEntry.after.amount, logEntry.after.currency_symbol, logEntry.after.decimal_places, true) }}
@endif
diff --git a/resources/views/list/bills.blade.php b/resources/views/list/bills.blade.php
index de45b64d8a..440dba0c78 100644
--- a/resources/views/list/bills.blade.php
+++ b/resources/views/list/bills.blade.php
@@ -63,11 +63,11 @@
@endif
-
- ~ {{ format_amount_by_symbol((entry.amount_max + entry.amount_min)/2, entry.currency_symbol, entry.currency_decimal_places) }}
+
+ ~ {!! 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 %}
- (~ {{ format_amount_by_symbol((entry.pc_amount_max + entry.pc_amount_min)/2, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
+ (~ {!! format_amount_by_symbol((entry.pc_amount_max + entry.pc_amount_min)/2, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
@endif
|
@@ -180,7 +180,7 @@
{{ __('firefly.sum') }} ({{ sum.currency_name }}) ({{ 'active_exp_bills_only'|_ }})
- {{ format_amount_by_symbol(sum.avg, sum.currency_symbol, sum.currency_decimal_places) }}
+ {!! format_amount_by_symbol(sum.avg, sum.currency_symbol, sum.currency_decimal_places) }}
|
|
|
@@ -195,7 +195,7 @@
{{ __('firefly.sum') }} ({{ sum.currency_name }}) ({{ 'left_to_pay_active_bills'|_ }})
- {{ format_amount_by_symbol(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) }}
|
|
|
@@ -211,7 +211,7 @@
({{ 'active_bills_only'|_ }})
- {{ format_amount_by_symbol(sum.per_period, sum.currency_symbol, sum.currency_decimal_places) }}
+ {!! format_amount_by_symbol(sum.per_period, sum.currency_symbol, sum.currency_decimal_places) }}
|
|
|
@@ -236,7 +236,7 @@
{{ __('firefly.sum') }} ({{ sum.currency_name }}) ({{ 'active_exp_bills_only_total'|_ }})
- {{ format_amount_by_symbol(sum.avg, sum.currency_symbol, sum.currency_decimal_places) }}
+ {!! format_amount_by_symbol(sum.avg, sum.currency_symbol, sum.currency_decimal_places) }}
|
|
|
@@ -252,7 +252,7 @@
({{ 'active_bills_only_total'|_ }})
- {{ format_amount_by_symbol(sum.per_period, sum.currency_symbol, sum.currency_decimal_places) }}
+ {!! format_amount_by_symbol(sum.per_period, sum.currency_symbol, sum.currency_decimal_places) }}
|
|
|
diff --git a/resources/views/list/categories.blade.php b/resources/views/list/categories.blade.php
index 27ce37487c..ca3a14e16a 100644
--- a/resources/views/list/categories.blade.php
+++ b/resources/views/list/categories.blade.php
@@ -15,7 +15,7 @@
{{ 'without_category'|_ }} |
|
- {% for category in categories %}
+ @foreach($categories as $category)
|
diff --git a/resources/views/list/groups-tiny.blade.php b/resources/views/list/groups-tiny.blade.php
index 1323a5982b..71991205b9 100644
--- a/resources/views/list/groups-tiny.blade.php
+++ b/resources/views/list/groups-tiny.blade.php
@@ -8,79 +8,79 @@
{% if transaction.transaction_type_type == 'Deposit' %}
- {{ format_amount_by_symbol(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 %}
- ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ ({!! 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 %}
- ({{ format_amount_by_symbol(transaction.pc_amount*-1, $primaryCurrency->symbol, foreign_currency_.decimal_places) }})
+ ({!! format_amount_by_symbol(transaction.pc_amount*-1, $primaryCurrency->symbol, foreign_currency_.decimal_places) }})
@endif
{% elseif transaction.transaction_type_type == 'Transfer' %}
{{-- transfer away: --}}
{% if transaction.source_account_id == account.id %}
- {{ format_amount_by_symbol(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 %}
- ({{ format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }})
+ ({!! 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 %}
- ({{ format_amount_by_symbol(transaction.pc_amount*-1, $primaryCurrency->symbol, foreign_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*-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 %}
- ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }})
+ ({!! 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 %}
- ({{ format_amount_by_symbol(transaction.pc_amount*-1, $primaryCurrency->symbol, foreign_currency_.decimal_places) }})
+ ({!! format_amount_by_symbol(transaction.pc_amount*-1, $primaryCurrency->symbol, foreign_currency_.decimal_places) }})
@endif
@endif
{{-- transfer to --}}
{% elseif transaction.transaction_type_type == 'Opening balance' %}
{% if transaction.source_account_type == 'Initial balance account' %}
- {{ format_amount_by_symbol(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 %}
- ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ ({!! 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 %}
- ({{ format_amount_by_symbol(transaction.pc_amount*-1, $primaryCurrency->symbol, foreign_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) }}
+ {!! 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) }})
+ ({!! format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
@endif
{% if convertToPrimary and null != transaction.pc_amount %}
- ({{ format_amount_by_symbol(transaction.pc_amount, $primaryCurrency->symbol, foreign_currency_.decimal_places) }})
+ ({!! 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' %}
- {{ format_amount_by_symbol(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 %}
- ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ ({!! 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 %}
- ({{ format_amount_by_symbol(transaction.pc_amount*-1, $primaryCurrency->symbol, foreign_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) }}
+ {!! 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) }})
+ ({!! format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
@endif
{% if convertToPrimary and null != transaction.pc_amount %}
- ({{ format_amount_by_symbol(transaction.pc_amount, $primaryCurrency->symbol, foreign_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) }}
+ {!! 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) }})
+ ({!! format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
@endif
{% if convertToPrimary and null != transaction.pc_amount %}
- ({{ format_amount_by_symbol(transaction.pc_amount, $primaryCurrency->symbol, foreign_currency_.decimal_places) }})
+ ({!! format_amount_by_symbol(transaction.pc_amount, $primaryCurrency->symbol, foreign_currency_.decimal_places) }})
@endif
@endif
diff --git a/resources/views/list/groups.blade.php b/resources/views/list/groups.blade.php
index 0842032fea..36230c8ccb 100644
--- a/resources/views/list/groups.blade.php
+++ b/resources/views/list/groups.blade.php
@@ -62,24 +62,24 @@
|
{% for sum in group.sums %}
{% if group.transaction_type == 'Deposit' %}
- {{ format_amount_by_symbol(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 %}
- (~ {{ format_amount_by_symbol(sum.pc_amount*-1, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
+ (~ {!! 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' %}
- {{ format_amount_by_symbol(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 %}
- (~ {{ format_amount_by_symbol(sum.pc_amount*-1, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
+ (~ {!! format_amount_by_symbol(sum.pc_amount*-1, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
@endif
{% if loop.index != group.sums|length %},@endif
@else
- {{ format_amount_by_symbol(sum.amount, sum.currency_symbol, sum.currency_decimal_places) }}
+ {!! format_amount_by_symbol(sum.amount, sum.currency_symbol, sum.currency_decimal_places) }}
{% if convertToPrimary and 0 != sum.pc_amount %}
- (~ {{ format_amount_by_symbol(sum.pc_amount*-1, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
+ (~ {!! format_amount_by_symbol(sum.pc_amount*-1, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
@endif
{% if loop.index != group.sums|length %},@endif
@endif
@@ -167,94 +167,94 @@
{{-- deposit --}}
{% if transaction.transaction_type_type == 'Deposit' %}
{{-- amount of deposit --}}
- {{ format_amount_by_symbol(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 %}
- ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ ({!! 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 %}
- (~ {{ format_amount_by_symbol(transaction.pc_amount*-1, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
+ (~ {!! format_amount_by_symbol(transaction.pc_amount*-1, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
@endif
{{-- transfer --}}
{% elseif transaction.transaction_type_type == 'Transfer' %}
{{-- amount of transfer --}}
{% if transaction.source_account_id == account.id %}
- {{ format_amount_by_symbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places, false) }}
+ {!! format_amount_by_symbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places, false) }}
@endif
{% if transaction.source_account_id != account.id %}
- {{ format_amount_by_symbol(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) }}
@endif
{{-- foreign amount of transfer --}}
{% if null != transaction.foreign_amount and transaction.source_account_id == account.id %}
- ({{ format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }})
+ ({!! 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 %}
- ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }})
+ ({!! 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 %}
- (~ {{ format_amount_by_symbol(transaction.pc_amount*-1, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
+ (~ {!! format_amount_by_symbol(transaction.pc_amount*-1, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
@endif
{{-- opening balance --}}
{% elseif transaction.transaction_type_type == 'Opening balance' %}
{% if transaction.source_account_type == 'Initial balance account' %}
- {{ format_amount_by_symbol(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 %}
- ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ ({!! 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 %}
- (~ {{ format_amount_by_symbol(transaction.pc_amount*-1, $primaryCurrency->symbol, $primaryCurrency->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) }}
+ {!! 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) }})
+ ({!! format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
@endif
{% if convertToPrimary and 0 != transaction.pc_amount %}
- (~ {{ format_amount_by_symbol(transaction.pc_amount, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
+ (~ {!! 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' %}
- {{ format_amount_by_symbol(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 %}
- ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ ({!! 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 %}
- (~ {{ format_amount_by_symbol(transaction.pc_amount*-1, $primaryCurrency->symbol, $primaryCurrency->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) }}
+ {!! 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) }})
+ ({!! format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
@endif
{% if convertToPrimary and 0 != transaction.pc_amount %}
- (~ {{ format_amount_by_symbol(transaction.pc_amount, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
+ (~ {!! 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' %}
- {{ format_amount_by_symbol(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 %}
- ({{ format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ ({!! format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
@endif
{% if convertToPrimary and 0 != transaction.pc_amount %}
- (~ {{ format_amount_by_symbol(transaction.pc_amount, $primaryCurrency->symbol, $primaryCurrency->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) }}
+ {!! format_amount_by_symbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }}
{% if null != transaction.foreign_amount %}
- ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ ({!! 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 %}
- (~ {{ format_amount_by_symbol(transaction.pc_amount*-1, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
+ (~ {!! format_amount_by_symbol(transaction.pc_amount*-1, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
@endif
@endif
@@ -262,15 +262,15 @@
{{-- THE REST --}}
@else
{{-- amount of withdrawal --}}
- {{ format_amount_by_symbol(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 %}
- ({{ format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ ({!! 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 %}
- (~ {{ format_amount_by_symbol(transaction.pc_amount, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
+ (~ {!! format_amount_by_symbol(transaction.pc_amount, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
@endif
@endif
|
@@ -280,12 +280,12 @@
{% 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 %}
- {{ format_amount_by_symbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ {!! format_amount_by_symbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}
@else
{% if transaction.source_account_type == 'Revenue account' %}
- {{ format_amount_by_symbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ {!! format_amount_by_symbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}
@else
- {{ format_amount_by_symbol(transaction.destination_balance_after, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }}
+ {!! format_amount_by_symbol(transaction.destination_balance_after, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }}
@endif
{{-- if this is a deposit from revenue account, use the destination account currency? For #12043 and #12169 --}}
{{-- otherwise, keep at source account --}}
@@ -298,43 +298,43 @@
{% 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 %}
- {{ format_amount_by_symbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ {!! format_amount_by_symbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}
{% elseif account.id == transaction.destination_account_id %}
- {{ format_amount_by_symbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ {!! format_amount_by_symbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}
@else
-
@endif
@endif
{% if currency.id == transaction.foreign_currency_id and null != transaction.destination_balance_after and null != transaction.destination_balance_after %}
- {{ format_amount_by_symbol(transaction.destination_balance_after, transaction.foreign_currency_symbol ?? transaction.currency_symbol, transaction.foreign_currency_decimal_places ?? transaction.currency_decimal_places) }}
+ {!! format_amount_by_symbol(transaction.destination_balance_after, transaction.foreign_currency_symbol ?? transaction.currency_symbol, transaction.foreign_currency_decimal_places ?? transaction.currency_decimal_places) }}
@endif
{{-- withdrawal into an expense account --}}
@else
{% if account.id == transaction.source_account_id %}
- {{ format_amount_by_symbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ {!! format_amount_by_symbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}
{% elseif account.id == transaction.destination_account_id %}
- {{ format_amount_by_symbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ {!! format_amount_by_symbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}
@else
-
@endif
@endif
{% elseif transaction.transaction_type_type == 'Opening balance' %}
{% if account.id == transaction.source_account_id %}
- {{ format_amount_by_symbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ {!! format_amount_by_symbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}
{% elseif account.id == transaction.destination_account_id %}
- {{ format_amount_by_symbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ {!! format_amount_by_symbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}
@else
-
@endif
{% elseif transaction.transaction_type_type == 'Transfer' %}
{% if account.id == transaction.source_account_id %}
- {{ format_amount_by_symbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ {!! format_amount_by_symbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}
@else
{% if null == transaction.foreign_currency_id %}
- {{ format_amount_by_symbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}
+ {!! format_amount_by_symbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}
@endif
{% if null != transaction.foreign_currency_id %}
- {{ format_amount_by_symbol(transaction.destination_balance_after, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }}
+ {!! format_amount_by_symbol(transaction.destination_balance_after, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }}
@endif
@endif
@else
diff --git a/resources/views/list/periods.blade.php b/resources/views/list/periods.blade.php
index b5699365e3..5f7ff197ad 100644
--- a/resources/views/list/periods.blade.php
+++ b/resources/views/list/periods.blade.php
@@ -18,7 +18,7 @@
{{ __('firefly.spent') }} |
- {{ format_amount_by_symbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places) }}
+ {!! format_amount_by_symbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places) }}
|
@@ -28,13 +28,13 @@
{% for entry in period.earned %}
{% if entry.amount != 0 %}
- | {{ 'earned'|_ }} |
+ {{ __('firefly.earned') }} |
{% if entry.amount < 0 %}
- {{ format_amount_by_symbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}
+ {!! 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) }}
+ {!! format_amount_by_symbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places) }}
@endif
|
@@ -48,7 +48,7 @@
{{ 'transferred'|_ }} |
- {{ format_amount_by_symbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}
+ {!! format_amount_by_symbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}
|
@@ -62,9 +62,9 @@
{% if entry.amount < 0 %}
- {{ format_amount_by_symbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places) }}
+ {!! 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) }}
+ {!! format_amount_by_symbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}
@endif
|
@@ -79,9 +79,9 @@
{% if entry.amount < 0 %}
- {{ format_amount_by_symbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}
+ {!! 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) }}
+ {!! format_amount_by_symbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places) }}
@endif
|
diff --git a/resources/views/list/piggy-banks.blade.php b/resources/views/list/piggy-banks.blade.php
index 10aa30a2b9..e7c8b84c22 100644
--- a/resources/views/list/piggy-banks.blade.php
+++ b/resources/views/list/piggy-banks.blade.php
@@ -47,9 +47,9 @@
- {{ format_amount_by_symbol(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 %}
- ({{ format_amount_by_symbol(piggy.pc_current_amount,$primaryCurrency->symbol,$primaryCurrency->decimal_places) }})
+ ({!! format_amount_by_symbol(piggy.pc_current_amount,$primaryCurrency->symbol,$primaryCurrency->decimal_places) }})
@endif
|
@@ -88,25 +88,25 @@
{% if null != piggy.target_amount and 0 != piggy.target_amount %}
- {{ format_amount_by_symbol(piggy.target_amount,piggy.currency_symbol,piggy.currency_decimal_places) }}
+ {!! format_amount_by_symbol(piggy.target_amount,piggy.currency_symbol,piggy.currency_decimal_places) }}
{% if convertToPrimary and piggy.currency_id != $primaryCurrency->id and null != piggy.pc_target_amount %}
- ({{ format_amount_by_symbol(piggy.pc_target_amount,$primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
+ ({!! format_amount_by_symbol(piggy.pc_target_amount,$primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
@endif
@endif
|
{% if piggy.left_to_save > 0 %}
- {{ format_amount_by_symbol(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) }}
{% if convertToPrimary and piggy.currency_id != $primaryCurrency->id and null != piggy.pc_left_to_save %}
- ({{ format_amount_by_symbol(piggy.pc_left_to_save, $primaryCurrency->symbol,$primaryCurrency->decimal_places) }})
+ ({!! format_amount_by_symbol(piggy.pc_left_to_save, $primaryCurrency->symbol,$primaryCurrency->decimal_places) }})
@endif
@endif
|
{% if piggy.target_date and piggy.save_per_month %}
- {{ format_amount_by_symbol(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 %}
- ({{ format_amount_by_symbol(piggy.pc_save_per_month, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
+ ({!! format_amount_by_symbol(piggy.pc_save_per_month, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
@endif
@endif
|
@@ -120,7 +120,7 @@
|
{% for sum in objectGroup.sums %}
- {{ format_amount_by_symbol(sum.saved, sum.currency_symbol, sum.currency_decimal_places) }}
+ {!! format_amount_by_symbol(sum.saved, sum.currency_symbol, sum.currency_decimal_places) }}
@endforeach
|
| {{-- remove money --}}
@@ -128,17 +128,17 @@
| {{-- add money --}}
{% for sum in objectGroup.sums %}
- {{ format_amount_by_symbol(sum.target, sum.currency_symbol, sum.currency_decimal_places) }}
+ {!! format_amount_by_symbol(sum.target, sum.currency_symbol, sum.currency_decimal_places) }}
@endforeach
|
{% for sum in objectGroup.sums %}
- {{ format_amount_by_symbol(sum.left_to_save, sum.currency_symbol, sum.currency_decimal_places) }}
+ {!! format_amount_by_symbol(sum.left_to_save, sum.currency_symbol, sum.currency_decimal_places) }}
@endforeach
|
{% for sum in objectGroup.sums %}
- {{ format_amount_by_symbol(sum.save_per_month, sum.currency_symbol, sum.currency_decimal_places) }}
+ {!! format_amount_by_symbol(sum.save_per_month, sum.currency_symbol, sum.currency_decimal_places) }}
@endforeach
|
diff --git a/resources/views/partials/menu-sidebar.blade.php b/resources/views/partials/menu-sidebar.blade.php
index 82d9ff0be0..8267496c64 100644
--- a/resources/views/partials/menu-sidebar.blade.php
+++ b/resources/views/partials/menu-sidebar.blade.php
@@ -57,7 +57,7 @@
- {{ 'income'|_ }}
+ {{ __('firefly.income') }}
@@ -161,7 +161,7 @@
- {{ 'categories'|_ }}
+ {{ __('firefly.categories') }}
diff --git a/resources/views/piggy-banks/show.blade.php b/resources/views/piggy-banks/show.blade.php
index 7f6186bd59..de2900649b 100644
--- a/resources/views/piggy-banks/show.blade.php
+++ b/resources/views/piggy-banks/show.blade.php
@@ -105,7 +105,7 @@
| {{ __('firefly.suggested_amount') }} |
- {{ format_amount_by_symbol($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']) }}
|
@endif
diff --git a/resources/views/popup/list/journals.blade.php b/resources/views/popup/list/journals.blade.php
index e6f093172e..1323263e3f 100644
--- a/resources/views/popup/list/journals.blade.php
+++ b/resources/views/popup/list/journals.blade.php
@@ -71,23 +71,23 @@
{% if transaction.transaction_type_type == 'Deposit' %}
- {{ format_amount_by_symbol(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 %}
- ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ ({!! 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' %}
- {{ format_amount_by_symbol(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 %}
- ({{ format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }})
+ ({!! format_amount_by_symbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }})
@endif
{% set sum = (sum + transaction.amount*-1) %}
@else
- {{ format_amount_by_symbol(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 %}
- ({{ format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
+ ({!! format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})
@endif
{% set sum = (sum + transaction.amount) %}
@endif
@@ -143,7 +143,7 @@
| {{ __('firefly.sum') }}: |
{% if sum != 0 %}
- {{ format_amount_by_symbol(sum, symbol, decimal_places) }}
+ {!! format_amount_by_symbol(sum, symbol, decimal_places) }}
@endif
|
diff --git a/resources/views/recurring/old-index.blade.php b/resources/views/recurring/old-index.blade.php
index 9f274dbc8a..f9c56aa547 100644
--- a/resources/views/recurring/old-index.blade.php
+++ b/resources/views/recurring/old-index.blade.php
@@ -74,11 +74,11 @@
{% for rtt in rt.transactions %}
{{-- normal amount + comma --}}
- {{ format_amount_by_symbol(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'] %}
- ({{ format_amount_by_symbol(rtt['foreign_amount'],rtt['foreign_currency_symbol'],rtt['foreign_currency_decimal_places']) }}),
+ ({!! format_amount_by_symbol(rtt['foreign_amount'],rtt['foreign_currency_symbol'],rtt['foreign_currency_decimal_places']) }}),
@endif
{{ rtt['source_name'] }}
→
diff --git a/resources/views/recurring/show.blade.php b/resources/views/recurring/show.blade.php
index 7e0766d9e3..945f00c90c 100644
--- a/resources/views/recurring/show.blade.php
+++ b/resources/views/recurring/show.blade.php
@@ -150,9 +150,9 @@
{{ transaction.destination_name }}
- {{ format_amount_by_symbol(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 %}
- ({{ format_amount_by_symbol(transaction.foreign_amount,transaction.foreign_currency_symbol,transaction.foreign_currency_decimal_places) }})
+ ({!! format_amount_by_symbol(transaction.foreign_amount,transaction.foreign_currency_symbol,transaction.foreign_currency_decimal_places) }})
@endif
|
diff --git a/resources/views/reports/category/month.blade.php b/resources/views/reports/category/month.blade.php
index 83ab9aeaec..20a23fa2bb 100644
--- a/resources/views/reports/category/month.blade.php
+++ b/resources/views/reports/category/month.blade.php
@@ -1,21 +1,20 @@
@extends('layout.v3.session')
-
-
- {{ Breadcrumbs.render(Route.getCurrentRoute.getName, accountIds, categoryIds, start, end) }}
+@section('breadcrumbs')
+ {{ Breadcrumbs::render(Route::getCurrentRoute()->getName(), $accountIds, $categoryIds, $start, $end) }}
@endsection
@section('content')
-
+
{{-- loading indicator --}}
-
+
Loading...
@@ -23,14 +22,14 @@
-
+
{{-- loading indicator --}}
-
+
Loading...
@@ -40,14 +39,14 @@
-
+
{{-- loading indicator --}}
-
+
Loading...
@@ -57,7 +56,7 @@
-
-
+
-
+
@@ -95,7 +94,7 @@
-
-
+
@@ -121,7 +120,7 @@
-
-
+
- {% for category in categories %}
+ @foreach($categories as $category)
@@ -162,14 +161,14 @@
@endforeach
-
+
{{-- loading indicator --}}
-
+
Loading...
@@ -177,14 +176,14 @@
-
+
{{-- loading indicator --}}
-
+
Loading...
@@ -194,14 +193,14 @@
-
+
{{-- loading indicator --}}
-
+
Loading...
@@ -209,14 +208,14 @@
-
+
{{-- loading indicator --}}
-
+
Loading...
@@ -228,6 +227,7 @@
@endsection
@section('scripts')
+ @vite(['js/pages/generic.js'])
@@ -238,27 +238,27 @@
// to report another URL:
var startDate = '{{ $start->format('Ymd') }}';
var endDate = '{{ $end->format('Ymd') }}';
- var accountIds = '{{ accountIds }}';
- var categoryIds = '{{ categoryIds }}';
+ var $accountIds = '{{ $accountIds }}';
+ var categoryIds = '{{ $categoryIds }}';
- var accountsUrl = '{{ route('report-data.category.accounts', [accountIds, categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
- var categoriesUrl = '{{ route('report-data.category.categories', [accountIds, categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
- var accountPerCategoryUrl = '{{ route('report-data.category.account-per-category', [accountIds, categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
+ var accountsUrl = '{{ route('report-data.category.accounts', [$accountIds, $categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
+ var categoriesUrl = '{{ route('report-data.category.categories', [$accountIds, $categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
+ var accountPerCategoryUrl = '{{ route('report-data.category.account-per-category', [$accountIds, $categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
// pie charts:
- var categoryOutUrl = '{{ route('chart.category.category-expense', [accountIds, categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
- var categoryInUrl = '{{ route('chart.category.category-income', [accountIds, categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
- var budgetsOutUrl = '{{ route('chart.category.budget-expense', [accountIds, categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
- var sourceOutUrl = '{{ route('chart.category.source-expense', [accountIds, categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
- var sourceInUrl = '{{ route('chart.category.source-income', [accountIds, categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
- var destOutUrl = '{{ route('chart.category.dest-expense', [accountIds, categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
- var destInUrl = '{{ route('chart.category.dest-income', [accountIds, categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
+ var categoryOutUrl = '{{ route('chart.category.category-expense', [$accountIds, $categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
+ var categoryInUrl = '{{ route('chart.category.category-income', [$accountIds, $categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
+ var budgetsOutUrl = '{{ route('chart.category.budget-expense', [$accountIds, $categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
+ var sourceOutUrl = '{{ route('chart.category.source-expense', [$accountIds, $categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
+ var sourceInUrl = '{{ route('chart.category.source-income', [$accountIds, $categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
+ var destOutUrl = '{{ route('chart.category.dest-expense', [$accountIds, $categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
+ var destInUrl = '{{ route('chart.category.dest-income', [$accountIds, $categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
- var avgExpensesUrl = '{{ route('report-data.category.avg-expenses', [accountIds, categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
- var topExpensesUrl = '{{ route('report-data.category.top-expenses', [accountIds, categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
- var avgIncomeUrl = '{{ route('report-data.category.avg-income', [accountIds, categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
- var topIncomeUrl = '{{ route('report-data.category.top-income', [accountIds, categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
+ var avgExpensesUrl = '{{ route('report-data.category.avg-expenses', [$accountIds, $categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
+ var topExpensesUrl = '{{ route('report-data.category.top-expenses', [$accountIds, $categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
+ var avgIncomeUrl = '{{ route('report-data.category.avg-income', [$accountIds, $categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
+ var topIncomeUrl = '{{ route('report-data.category.top-income', [$accountIds, $categoryIds, $start->format('Ymd'), $end->format('Ymd')]) }}';
diff --git a/resources/views/reports/category/partials/account-per-category.blade.php b/resources/views/reports/category/partials/account-per-category.blade.php
index 71942d61e7..b5397e26a3 100644
--- a/resources/views/reports/category/partials/account-per-category.blade.php
+++ b/resources/views/reports/category/partials/account-per-category.blade.php
@@ -2,24 +2,24 @@
| {{ __('firefly.name') }} |
- {% for category in categories %}
- {{ category.name }} |
+ @foreach($categories as $category)
+ {{ $category['name'] }} |
@endforeach
- {% for account in report %}
- {% for currency in account.currencies %}
+ @foreach($report as $account)
+ @foreach($account['currencies'] as $currency)
- |
- {{ account.name }} ({{ currency.currency_name }})
+ |
+ {{ $account['name'] }} ({{ $currency['currency_name'] }})
|
- {% for category in categories %}
+ @foreach($categories as $category)
- {% if currency.categories[category.id] %}
-
diff --git a/resources/views/reports/category/partials/accounts.blade.php b/resources/views/reports/category/partials/accounts.blade.php
index 5c7dddf5b7..52040ac64f 100644
--- a/resources/views/reports/category/partials/accounts.blade.php
+++ b/resources/views/reports/category/partials/accounts.blade.php
@@ -3,42 +3,42 @@
| {{ __('firefly.name') }} |
{{ __('firefly.spent') }} |
- {{ 'earned'|_ }} |
+ {{ __('firefly.earned') }} |
{{ __('firefly.sum') }} |
- {% for account in report %}
- {% for currency in account.currencies %}
+ @foreach($report as $account)
+ @foreach($account['currencies'] as $currency)
- |
- {{ account.name }} ({{ currency.currency_name }})
+ |
+ {{ $account['name'] }} ({{ $currency['currency_name'] }})
|
-
- {{ format_amount_by_symbol(currency.spent, currency.currency_symbol, currency.currency_decimal_places) }}
+ |
+ {!! format_amount_by_symbol($currency['spent'], $currency['currency_symbol'], $currency['currency_decimal_places']) !!}
|
-
- {{ format_amount_by_symbol(currency.earned, currency.currency_symbol, currency.currency_decimal_places) }}
+ |
+ {!! format_amount_by_symbol($currency['earned'], $currency['currency_symbol'], $currency['currency_decimal_places']) !!}
|
-
- {{ format_amount_by_symbol(currency.sum, currency.currency_symbol, currency.currency_decimal_places) }}
+ |
+ {!! format_amount_by_symbol($currency['sum'], $currency['currency_symbol'], $currency['currency_decimal_places']) !!}
|
@endforeach
@endforeach
- {% for sum in sums %}
+ @foreach($sums as $sum)
- | {{ __('firefly.sum') }} ({{ sum.currency_name }}) |
+ {{ __('firefly.sum') }} ({{ $sum['currency_name'] }}) |
- {{ format_amount_by_symbol(sum.spent_sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {!! format_amount_by_symbol($sum['spent_sum'], $sum['currency_symbol'], $sum['currency_decimal_places']) !!}
|
- {{ format_amount_by_symbol(sum.earned_sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {!! format_amount_by_symbol($sum['earned_sum'], $sum['currency_symbol'], $sum['currency_decimal_places']) !!}
|
- {{ format_amount_by_symbol(sum.total_sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {!! format_amount_by_symbol($sum['total_sum'], $sum['currency_symbol'], $sum['currency_decimal_places']) !!}
|
@endforeach
diff --git a/resources/views/reports/category/partials/avg-expenses.blade.php b/resources/views/reports/category/partials/avg-expenses.blade.php
index c84107c088..1a72faac2c 100644
--- a/resources/views/reports/category/partials/avg-expenses.blade.php
+++ b/resources/views/reports/category/partials/avg-expenses.blade.php
@@ -8,37 +8,37 @@
- {% for row in result %}
- {% if loop.index > listLength %}
+ @foreach($result as $row)
+ @if($loop->index > $listLength)
@else
@endif
|
-
- {{ row.destination_account_name }}
+
+ {{ $row['destination_account_name'] }}
|
-
- {{ format_amount_by_symbol(row.avg, row.currency_symbol, row.currency_decimal_places) }}
+ |
+ {!! format_amount_by_symbol($row['avg'], $row['currency_symbol'], $row['currency_decimal_places']) !!}
|
-
- {{ format_amount_by_symbol(row.sum, row.currency_symbol, row.currency_decimal_places) }}
+ |
+ {!! format_amount_by_symbol($row['sum'], $row['currency_symbol'], $row['currency_decimal_places']) !!}
|
-
- {{ row.transactions }}
+ |
+ {{ $row['transactions'] }}
|
@endforeach
- {% if result|length > listLength %}
+ @if(count($result) > $listLength)
|
- {{ trans('firefly.show_full_list',{number:incomeTopLength}) }}
+ {{ trans('firefly.show_full_list',['number' => $incomeTopLength]) }}
|
@endif
diff --git a/resources/views/reports/category/partials/avg-income.blade.php b/resources/views/reports/category/partials/avg-income.blade.php
index a9bd6d8cea..0c00468cb2 100644
--- a/resources/views/reports/category/partials/avg-income.blade.php
+++ b/resources/views/reports/category/partials/avg-income.blade.php
@@ -2,43 +2,43 @@
| {{ __('firefly.account') }} |
- {{ 'income_average'|_ }} |
+ {{ __('firefly.income_average') }} |
{{ __('firefly.total') }} |
{{ __('firefly.transaction_count') }} |
- {% for row in result %}
- {% if loop.index > listLength %}
+ @foreach($result as $row)
+ @if($loop->index > $listLength)
@else
@endif
|
-
- {{ row.source_account_name }}
+
+ {{ $row['source_account_name'] }}
|
-
- {{ format_amount_by_symbol(row.avg, row.currency_symbol, row.currency_decimal_places) }}
+ |
+ {!! format_amount_by_symbol($row['avg'], $row['currency_symbol'], $row['currency_decimal_places']) !!}
|
-
- {{ format_amount_by_symbol(row.sum, row.currency_symbol, row.currency_decimal_places) }}
+ |
+ {!! format_amount_by_symbol($row['sum'], $row['currency_symbol'], $row['currency_decimal_places']) !!}
|
-
- {{ row.transactions }}
+ |
+ {{ $row['transactions'] }}
|
@endforeach
- {% if result|length > listLength %}
+ @if(count($result) > $listLength)
|
- {{ trans('firefly.show_full_list',{number:incomeTopLength}) }}
+ {{ trans('firefly.show_full_list',['number' => $incomeTopLength]) }}
|
@endif
diff --git a/resources/views/reports/category/partials/categories.blade.php b/resources/views/reports/category/partials/categories.blade.php
index 7bbeeb26b2..9cf1186acf 100644
--- a/resources/views/reports/category/partials/categories.blade.php
+++ b/resources/views/reports/category/partials/categories.blade.php
@@ -3,52 +3,52 @@
| {{ __('firefly.name') }} |
{{ __('firefly.spent') }} |
- {{ 'earned'|_ }} |
+ {{ __('firefly.earned') }} |
{{ __('firefly.sum') }} |
- {% for category in report %}
- {% if category.currencies|length == 0 %}
+ @foreach($report as $category)
+ @if(0 === count($category['currencies']))
- |
- {{ category.name }}
+ |
+ {{ $category['name'] }}
|
— |
— |
— |
@endif
- {% for currency in category.currencies %}
+ @foreach($category['currencies'] as $currency)
- |
- {{ category.name }} ({{ currency.currency_name }})
+ |
+ {{ $category['name'] }} ({{ $currency['currency_name'] }})
|
-
- {{ format_amount_by_symbol(currency.spent, currency.currency_symbol, currency.currency_decimal_places) }}
+ |
+ {!! format_amount_by_symbol($currency['spent'], $currency['currency_symbol'], $currency['currency_decimal_places']) !!}
|
-
- {{ format_amount_by_symbol(currency.earned, currency.currency_symbol, currency.currency_decimal_places) }}
+ |
+ {!! format_amount_by_symbol($currency['earned'], $currency['currency_symbol'], $currency['currency_decimal_places']) !!}
|
-
- {{ format_amount_by_symbol(currency.sum, currency.currency_symbol, currency.currency_decimal_places) }}
+ |
+ {!! format_amount_by_symbol($currency['sum'], $currency['currency_symbol'], $currency['currency_decimal_places']) !!}
|
@endforeach
@endforeach
- {% for sum in sums %}
+ @foreach($sums as $sum)
- | {{ __('firefly.sum') }} ({{ sum.currency_name }}) |
+ {{ __('firefly.sum') }} ({{ $sum['currency_name'] }}) |
- {{ format_amount_by_symbol(sum.spent_sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {!! format_amount_by_symbol($sum['spent_sum'], $sum['currency_symbol'], $sum['currency_decimal_places']) !!}
|
- {{ format_amount_by_symbol(sum.earned_sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {!! format_amount_by_symbol($sum['earned_sum'], $sum['currency_symbol'], $sum['currency_decimal_places']) !!}
|
- {{ format_amount_by_symbol(sum.total_sum, sum.currency_symbol, sum.currency_decimal_places) }}
+ {!! format_amount_by_symbol($sum['total_sum'], $sum['currency_symbol'], $sum['currency_decimal_places']) !!}
|
@endforeach
diff --git a/resources/views/reports/category/partials/top-expenses.blade.php b/resources/views/reports/category/partials/top-expenses.blade.php
index 735a224bdf..859d3dcd4a 100644
--- a/resources/views/reports/category/partials/top-expenses.blade.php
+++ b/resources/views/reports/category/partials/top-expenses.blade.php
@@ -9,44 +9,44 @@
- {% for row in result %}
- {% if loop.index > listLength %}
+ @foreach($result as $row)
+ @if($loop->index > $listLength)
@else
@endif
|
-
- {{ row.description }}
+
+ {{ $row['description'] }}
|
-
- {{ row.date }}
+ |
+ {{ $row['date'] }}
|
-
- {{ row.destination_account_name }}
+
+ {{ $row['destination_account_name'] }}
|
-
- {{ row.category_name }}
+
+ {{ $row['category_name'] }}
|
-
- {{ format_amount_by_symbol(row.amount, row.currency_symbol, row.currency_decimal_places) }}
+ |
+ {!! format_amount_by_symbol($row['amount'], $row['currency_symbol'], $row['currency_decimal_places']) !!}
|
@endforeach
- {% if result|length > listLength %}
+ @if(count($result) > $listLength)
|
- {{ trans('firefly.show_full_list',{number:incomeTopLength}) }}
+ {{ trans('firefly.show_full_list',['number' => $incomeTopLength]) }}
|
@endif
diff --git a/resources/views/reports/category/partials/top-income.blade.php b/resources/views/reports/category/partials/top-income.blade.php
index adf6c1ecef..258e8fe8ea 100644
--- a/resources/views/reports/category/partials/top-income.blade.php
+++ b/resources/views/reports/category/partials/top-income.blade.php
@@ -9,44 +9,44 @@
- {% for row in result %}
- {% if loop.index > listLength %}
+ @foreach($result as $row)
+ @if($loop->index > $listLength)
@else
@endif
|
-
- {{ row.description }}
+
+ {{ $row['description'] }}
|
-
- {{ row.date }}
+ |
+ {{ $row['date'] }}
|
-
- {{ row.source_account_name }}
+
+ {{ row['source_account_name'] }}
|
-
- {{ row.category_name }}
+
+ {{ $row['category_name'] }}
|
-
- {{ format_amount_by_symbol(row.amount, row.currency_symbol, row.currency_decimal_places) }}
+ |
+ {!! format_amount_by_symbol($row['amount'], $row['currency_symbol'], $row['currency_decimal_places']) }}
|
@endforeach
- {% if result|length > listLength %}
+ @if(count($result) > $listLength)
|
- {{ trans('firefly.show_full_list',{number:incomeTopLength}) }}
+ {{ trans('firefly.show_full_list',['number' => $incomeTopLength]) }}
|
@endif
diff --git a/resources/views/reports/default/month.blade.php b/resources/views/reports/default/month.blade.php
index eb2d3dca68..95225574cd 100644
--- a/resources/views/reports/default/month.blade.php
+++ b/resources/views/reports/default/month.blade.php
@@ -1,7 +1,6 @@
@extends('layout.v3.session')
-
-
- {{ Breadcrumbs.render(Route.getCurrentRoute.getName, accountIds, start, end) }}
+@section('breadcrumbs')
+ {{ Breadcrumbs::render(Route::getCurrentRoute()->getName(), $accountIds, $start, $end) }}
@endsection
@section('content')
@@ -9,9 +8,9 @@
{{-- chart --}}
-
+
@@ -23,14 +22,14 @@
{{-- account balances and income vs. expense --}}
-
+
{{-- loading indicator --}}
-
+
Loading...
@@ -38,14 +37,14 @@
-
+
{{-- loading indicator --}}
-
+
Loading...
@@ -57,14 +56,14 @@
{{-- in and out --}}
-
+
{{-- loading indicator --}}
-
+
Loading...
@@ -72,14 +71,14 @@
-
+
{{-- loading indicator --}}
-
+
Loading...
@@ -90,7 +89,7 @@
| |