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')
    -
    +

    {{ __('firefly.accounts') }}

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -23,14 +22,14 @@
    -
    +
    -

    {{ 'categories'|_ }}

    +

    {{ __('firefly.categories') }}

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -40,14 +39,14 @@
    -
    +
    -

    {{ 'account_per_category'|_ }}

    +

    {{ __('firefly.account_per_category') }}

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -57,7 +56,7 @@
    -
    +

    {{ __('firefly.expense_per_category') }}

    @@ -69,9 +68,9 @@
    -
    +
    -

    {{ 'income_per_category'|_ }}

    +

    {{ __('firefly.income_per_category') }}

    @@ -81,9 +80,9 @@
    -
    +
    -

    {{ 'expense_per_budget'|_ }}

    +

    {{ __('firefly.expense_per_budget') }}

    @@ -95,7 +94,7 @@
    -
    +

    {{ __('firefly.expense_per_source_account') }}

    @@ -107,9 +106,9 @@
    -
    +
    -

    {{ 'income_per_source_account'|_ }}

    +

    {{ __('firefly.income_per_source_account') }}

    @@ -121,7 +120,7 @@
    -
    +

    {{ __('firefly.expense_per_destination_account') }}

    @@ -133,9 +132,9 @@
    -
    +
    -

    {{ 'income_per_destination_account'|_ }}

    +

    {{ __('firefly.income_per_destination_account') }}

    @@ -146,15 +145,15 @@
    - {% for category in categories %} + @foreach($categories as $category)
    -

    {{ 'income_and_expenses'|_ }} ({{ category.name }})

    +

    {{ __('firefly.income_and_expenses') }} ({{ $category['name'] }})

    - +
    @@ -162,14 +161,14 @@ @endforeach
    -
    +
    -

    {{ 'average_spending_per_destination'|_ }}

    +

    {{ __('firefly.average_spending_per_destination') }}

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -177,14 +176,14 @@
    -
    +
    -

    {{ 'average_earning_per_source'|_ }}

    +

    {{ __('firefly.average_earning_per_source') }}

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -194,14 +193,14 @@
    -
    +
    -

    {{ __('firefly.expenses') }} ({{ trans('firefly.topX', {number: listLength}) }})

    +

    {{ __('firefly.expenses') }} ({{ trans('firefly.topX',['number' => $listLength]) }})

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -209,14 +208,14 @@
    -
    +
    -

    {{ 'income'|_ }} ({{ trans('firefly.topX', {number: listLength}) }})

    +

    {{ __('firefly.income') }} ({{ trans('firefly.topX', ['number' => $listLength]) }})

    {{-- 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 --}}
    -
    +
    -

    {{ 'accountBalances'|_ }}

    +

    {{ __('firefly.accountBalances') }}

    @@ -23,14 +22,14 @@ {{-- account balances and income vs. expense --}}
    -
    +
    -

    {{ 'accountBalances'|_ }}

    +

    {{ __('firefly.accountBalances') }}

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -38,14 +37,14 @@
    -
    +
    -

    {{ 'incomeVsExpenses'|_ }}

    +

    {{ __('firefly.incomeVsExpenses') }}

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -57,14 +56,14 @@ {{-- in and out --}}
    -
    +
    -

    {{ 'income'|_ }}

    +

    {{ __('firefly.income') }}

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -72,14 +71,14 @@
    -
    +

    {{ __('firefly.expenses') }}

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -90,7 +89,7 @@
    -
    +

    {{ __('firefly.budgets') }}

    @@ -98,7 +97,7 @@
    {{-- loading indicator --}} -
    +
    Loading...
    @@ -108,13 +107,13 @@
    -
    +
    -

    {{ 'categories'|_ }}

    +

    {{ __('firefly.categories') }}

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -124,14 +123,14 @@
    -
    +
    -

    {{ __('firefly.budgets') }} ({{ 'splitByAccount'|_|lower }})

    +

    {{ __('firefly.budgets') }} ({{ strtolower(__('firefly.splitByAccount')) }})

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -142,13 +141,13 @@
    -
    +
    -

    {{ 'bills'|_ }}

    +

    {{ __('firefly.bills') }}

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -161,7 +160,7 @@ @endsection @section('scripts') - + @vite(['js/pages/generic.js']) @@ -173,19 +172,19 @@ // to report another URL: var startDate = '{{ $start->format('Ymd') }}'; var endDate = '{{ $end->format('Ymd') }}'; - var reportType = '{{ reportType }}'; - var accountIds = '{{ accountIds }}'; + var reportType = '{{ $reportType }}'; + var $accountIds = '{{ $accountIds }}'; - var accountReportUrl = '{{ route('report-data.account.general', [accountIds, $start->format('Ymd'), $end->format('Ymd')]) }}'; - var categoryReportUrl = '{{ route('report-data.category.operations', [accountIds, $start->format('Ymd'), $end->format('Ymd')]) }}'; - var budgetReportUrl = '{{ route('report-data.budget.general', [accountIds, $start->format('Ymd'), $end->format('Ymd')]) }}'; - var balanceReportUrl = '{{ route('report-data.balance.general', [accountIds, $start->format('Ymd'), $end->format('Ymd')]) }}'; - var incomeReportUrl = '{{ route('report-data.operations.income', [accountIds, $start->format('Ymd'), $end->format('Ymd')]) }}'; - var expenseReportUrl = '{{ route('report-data.operations.expenses', [accountIds, $start->format('Ymd'), $end->format('Ymd')]) }}'; - var incExpReportUrl = '{{ route('report-data.operations.operations', [accountIds, $start->format('Ymd'), $end->format('Ymd')]) }}'; - var billReportUrl = '{{ route('report-data.bills.overview', [accountIds, $start->format('Ymd'), $end->format('Ymd')]) }}'; + var accountReportUrl = '{{ route('report-data.account.general', [$accountIds, $start->format('Ymd'), $end->format('Ymd')]) }}'; + var categoryReportUrl = '{{ route('report-data.category.operations', [$accountIds, $start->format('Ymd'), $end->format('Ymd')]) }}'; + var budgetReportUrl = '{{ route('report-data.budget.general', [$accountIds, $start->format('Ymd'), $end->format('Ymd')]) }}'; + var balanceReportUrl = '{{ route('report-data.balance.general', [$accountIds, $start->format('Ymd'), $end->format('Ymd')]) }}'; + var incomeReportUrl = '{{ route('report-data.operations.income', [$accountIds, $start->format('Ymd'), $end->format('Ymd')]) }}'; + var expenseReportUrl = '{{ route('report-data.operations.expenses', [$accountIds, $start->format('Ymd'), $end->format('Ymd')]) }}'; + var incExpReportUrl = '{{ route('report-data.operations.operations', [$accountIds, $start->format('Ymd'), $end->format('Ymd')]) }}'; + var billReportUrl = '{{ route('report-data.bills.overview', [$accountIds, $start->format('Ymd'), $end->format('Ymd')]) }}'; - var accountChartUrl = '{{ route('chart.account.report', [accountIds, $start->format('Ymd'), $end->format('Ymd')]) }}'; + var accountChartUrl = '{{ route('chart.account.report', [$accountIds, $start->format('Ymd'), $end->format('Ymd')]) }}'; diff --git a/resources/views/reports/default/multi-year.blade.php b/resources/views/reports/default/multi-year.blade.php index 11f7b05579..ab1af190d7 100644 --- a/resources/views/reports/default/multi-year.blade.php +++ b/resources/views/reports/default/multi-year.blade.php @@ -11,7 +11,7 @@
    -

    {{ 'incomeVsExpenses'|_ }}

    +

    {{ __('firefly.incomeVsExpenses') }}

    @@ -25,12 +25,12 @@
    -

    {{ 'accountBalances'|_ }}

    +

    {{ __('firefly.accountBalances') }}

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -40,12 +40,12 @@
    -

    {{ 'incomeVsExpenses'|_ }}

    +

    {{ __('firefly.incomeVsExpenses') }}

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -59,12 +59,12 @@
    -

    {{ 'income'|_ }}

    +

    {{ __('firefly.income') }}

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -80,7 +80,7 @@
    {{-- loading indicator --}} -
    +
    Loading...
    @@ -119,7 +119,7 @@
    {{-- loading indicator --}} -
    +
    Loading...
    @@ -149,12 +149,12 @@
    -

    {{ 'categories'|_ }} ({{ __('firefly.expenses') }})

    +

    {{ __('firefly.categories') }} ({{ __('firefly.expenses') }})

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -168,12 +168,12 @@
    -

    {{ 'categories'|_ }} ({{ 'income'|_ }})

    +

    {{ __('firefly.categories') }} ({{ __('firefly.income') }})

    {{-- loading indicator --}} -
    +
    Loading...
    diff --git a/resources/views/reports/default/year.blade.php b/resources/views/reports/default/year.blade.php index 1bc90ccb1a..7f46d6019c 100644 --- a/resources/views/reports/default/year.blade.php +++ b/resources/views/reports/default/year.blade.php @@ -11,7 +11,7 @@
    -

    {{ 'incomeVsExpenses'|_ }}

    +

    {{ __('firefly.incomeVsExpenses') }}

    @@ -25,12 +25,12 @@
    -

    {{ 'accountBalances'|_ }}

    +

    {{ __('firefly.accountBalances') }}

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -40,12 +40,12 @@
    -

    {{ 'incomeVsExpenses'|_ }}

    +

    {{ __('firefly.incomeVsExpenses') }}

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -59,12 +59,12 @@
    -

    {{ 'income'|_ }}

    +

    {{ __('firefly.income') }}

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -79,7 +79,7 @@
    {{-- loading indicator --}} -
    +
    Loading...
    @@ -117,7 +117,7 @@
    {{-- loading indicator --}} -
    +
    Loading...
    @@ -147,12 +147,12 @@
    -

    {{ 'categories'|_ }} ({{ __('firefly.expenses') }})

    +

    {{ __('firefly.categories') }} ({{ __('firefly.expenses') }})

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -166,12 +166,12 @@
    -

    {{ 'categories'|_ }} ({{ 'income'|_ }})

    +

    {{ __('firefly.categories') }} ({{ __('firefly.income') }})

    {{-- loading indicator --}} -
    +
    Loading...
    diff --git a/resources/views/reports/double/partials/accounts-per-asset.blade.php b/resources/views/reports/double/partials/accounts-per-asset.blade.php index f548b5b320..7221cef980 100644 --- a/resources/views/reports/double/partials/accounts-per-asset.blade.php +++ b/resources/views/reports/double/partials/accounts-per-asset.blade.php @@ -3,24 +3,24 @@ {{ __('firefly.name') }} {{ __('firefly.spent') }} - {{ 'earned'|_ }} + {{ __('firefly.earned') }} {{ __('firefly.sum') }} - {% for account in report %} + @foreach($report as $account) {{ account.account_name }} - {{ format_amount_by_symbol(account.spent, account.currency_symbol, account.currency_decimal_places) }} + {!! format_amount_by_symbol(account.spent, account.currency_symbol, account.currency_decimal_places) }} - {{ format_amount_by_symbol(account.earned, account.currency_symbol, account.currency_decimal_places) }} + {!! format_amount_by_symbol(account.earned, account.currency_symbol, account.currency_decimal_places) }} - {{ format_amount_by_symbol(account.sum, account.currency_symbol, account.currency_decimal_places) }} + {!! format_amount_by_symbol(account.sum, account.currency_symbol, account.currency_decimal_places) }} @endforeach @@ -30,13 +30,13 @@ {{ __('firefly.sum') }} ({{ sum.currency_name }}) - {{ format_amount_by_symbol(sum.spent, sum.currency_symbol, sum.currency_decimal_places) }} + {!! format_amount_by_symbol(sum.spent, sum.currency_symbol, sum.currency_decimal_places) }} - {{ format_amount_by_symbol(sum.earned, sum.currency_symbol, sum.currency_decimal_places) }} + {!! format_amount_by_symbol(sum.earned, sum.currency_symbol, sum.currency_decimal_places) }} - {{ format_amount_by_symbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }} + {!! format_amount_by_symbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }} @endforeach diff --git a/resources/views/reports/double/partials/accounts.blade.php b/resources/views/reports/double/partials/accounts.blade.php index 97dc2a333e..755f9b44bd 100644 --- a/resources/views/reports/double/partials/accounts.blade.php +++ b/resources/views/reports/double/partials/accounts.blade.php @@ -3,12 +3,12 @@ {{ __('firefly.name') }} {{ __('firefly.spent') }} - {{ 'earned'|_ }} + {{ __('firefly.earned') }} {{ __('firefly.sum') }} - {% for account in report %} + @foreach($report as $account) {% if account.source_name == account.dest_name %} @@ -25,13 +25,13 @@ @endif - {{ format_amount_by_symbol(account.spent, account.currency_symbol, account.currency_decimal_places) }} + {!! format_amount_by_symbol(account.spent, account.currency_symbol, account.currency_decimal_places) }} - {{ format_amount_by_symbol(account.earned, account.currency_symbol, account.currency_decimal_places) }} + {!! format_amount_by_symbol(account.earned, account.currency_symbol, account.currency_decimal_places) }} - {{ format_amount_by_symbol(account.sum, account.currency_symbol, account.currency_decimal_places) }} + {!! format_amount_by_symbol(account.sum, account.currency_symbol, account.currency_decimal_places) }} @endforeach @@ -41,13 +41,13 @@ {{ __('firefly.sum') }} ({{ sum.currency_name }}) - {{ format_amount_by_symbol(sum.spent, sum.currency_symbol, sum.currency_decimal_places) }} + {!! format_amount_by_symbol(sum.spent, sum.currency_symbol, sum.currency_decimal_places) }} - {{ format_amount_by_symbol(sum.earned, sum.currency_symbol, sum.currency_decimal_places) }} + {!! format_amount_by_symbol(sum.earned, sum.currency_symbol, sum.currency_decimal_places) }} - {{ format_amount_by_symbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }} + {!! format_amount_by_symbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }} @endforeach diff --git a/resources/views/reports/double/partials/avg-expenses.blade.php b/resources/views/reports/double/partials/avg-expenses.blade.php index 58767c7283..bb66c4c3c7 100644 --- a/resources/views/reports/double/partials/avg-expenses.blade.php +++ b/resources/views/reports/double/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.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/double/partials/avg-income.blade.php b/resources/views/reports/double/partials/avg-income.blade.php index c84107c088..a815a04017 100644 --- a/resources/views/reports/double/partials/avg-income.blade.php +++ b/resources/views/reports/double/partials/avg-income.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/double/partials/top-expenses.blade.php b/resources/views/reports/double/partials/top-expenses.blade.php index 80562baff1..8927dd0fcb 100644 --- a/resources/views/reports/double/partials/top-expenses.blade.php +++ b/resources/views/reports/double/partials/top-expenses.blade.php @@ -9,45 +9,45 @@ - {% 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.destination_account_name }} + + {{ $row['destination_account_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/double/partials/top-income.blade.php b/resources/views/reports/double/partials/top-income.blade.php index 80562baff1..8927dd0fcb 100644 --- a/resources/views/reports/double/partials/top-income.blade.php +++ b/resources/views/reports/double/partials/top-income.blade.php @@ -9,45 +9,45 @@ - {% 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.destination_account_name }} + + {{ $row['destination_account_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/double/report.blade.php b/resources/views/reports/double/report.blade.php index 6d99440190..319f08ef06 100644 --- a/resources/views/reports/double/report.blade.php +++ b/resources/views/reports/double/report.blade.php @@ -14,7 +14,7 @@
    {{-- loading indicator --}} -
    +
    Loading...
    @@ -30,7 +30,7 @@
    {{-- loading indicator --}} -
    +
    Loading...
    @@ -56,7 +56,7 @@
    -

    {{ 'income_per_category'|_ }}

    +

    {{ __('firefly.income_per_category') }}

    @@ -68,7 +68,7 @@
    -

    {{ 'expense_per_budget'|_ }}

    +

    {{ __('firefly.expense_per_budget') }}

    @@ -122,7 +122,7 @@
    -

    {{ 'income_and_expenses'|_ }} ({{ account.name }}) {% if account.iban %}({{ account.iban }})@endif

    +

    {{ __('firefly.income_and_expenses') }} ({{ $account['name'] }}) {% if $account['iban'] %}({{ $account['iban'] }})@endif

    -

    {{ __('firefly.expenses') }} ({{ trans('firefly.topX', {number: listLength}) }})

    +

    {{ __('firefly.expenses') }} ({{ trans('firefly.topX', ['number' => $listLength]) }})

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -154,11 +154,11 @@
    -

    {{ 'income'|_ }} ({{ trans('firefly.topX', {number: listLength}) }})

    +

    {{ __('firefly.income') }} ({{ trans('firefly.topX', ['number' => $listLength]) }})

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -177,7 +177,7 @@
    {{-- loading indicator --}} -
    +
    Loading...
    @@ -192,7 +192,7 @@
    {{-- loading indicator --}} -
    +
    Loading...
    diff --git a/resources/views/reports/index.blade.php b/resources/views/reports/index.blade.php index 9b61634d6f..cc64c78566 100644 --- a/resources/views/reports/index.blade.php +++ b/resources/views/reports/index.blade.php @@ -87,7 +87,7 @@
    {{-- extra options loading indicator. --}} -
    +
    Loading...
    diff --git a/resources/views/reports/partials/accounts.blade.php b/resources/views/reports/partials/accounts.blade.php index a67e06209c..b8d826bcce 100644 --- a/resources/views/reports/partials/accounts.blade.php +++ b/resources/views/reports/partials/accounts.blade.php @@ -2,45 +2,45 @@ {{ __('firefly.name') }} - {{ 'balanceStart'|_ }} - {{ 'balanceEnd'|_ }} - {{ 'difference'|_ }} + {{ __('firefly.balanceStart') }} + {{ __('firefly.balanceEnd') }} + {{ __('firefly.difference') }} - {% for account in accountReport.accounts %} + @foreach($accountReport['accounts'] as $account) - - {{ account.name }} + + {{ $account['name'] }} - - {{ format_amount_by_symbol(account.start_balance, account.currency_symbol, account.currency_decimal_places) }} + + {!! format_amount_by_symbol($account['start_balance'], $account['currency_symbol'], $account['currency_decimal_places']) !!} - - {{ format_amount_by_symbol(account.end_balance, account.currency_symbol, account.currency_decimal_places) }} + + {!! format_amount_by_symbol($account['end_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) }} + data-value="{{ ($account['end_balance'] - $account['start_balance']) }}"> + {!! format_amount_by_symbol($account['end_balance'] - $account['start_balance'], $account['currency_symbol'], $account['currency_decimal_places']) !!} @endforeach - {{ 'sumOfSums'|_ }} + {{ __('firefly.sumOfSums') }} - {% for sum in accountReport.sums %} + @foreach($accountReport['sums'] as $sum)   - {{ format_amount_by_symbol(sum.start, sum.currency_symbol, sum.currency_decimal_places) }} + {!! format_amount_by_symbol($sum['start'], $sum['currency_symbol'], $sum['currency_decimal_places']) !!} - {{ format_amount_by_symbol(sum.end, sum.currency_symbol, sum.currency_decimal_places) }} + {!! format_amount_by_symbol($sum['end'], $sum['currency_symbol'], $sum['currency_decimal_places']) !!} - {{ format_amount_by_symbol(sum.difference, sum.currency_symbol, sum.currency_decimal_places) }} + {!! format_amount_by_symbol($sum['difference'], $sum['currency_symbol'], $sum['currency_decimal_places']) !!} @endforeach diff --git a/resources/views/reports/partials/balance.blade.php b/resources/views/reports/partials/balance.blade.php index deb030fd20..87e87714e3 100644 --- a/resources/views/reports/partials/balance.blade.php +++ b/resources/views/reports/partials/balance.blade.php @@ -2,10 +2,10 @@ {{ __('firefly.budgets') }} - {% for account in report.accounts %} + @foreach($report['accounts'] as $account) {% if account.sum != 0 %} - {{ account.name }} + {{ $account['name'] }} @endif @endforeach {{ __('firefly.sum') }} @@ -19,13 +19,13 @@ {{ budget.budget_name }} - {% for account in report.accounts %} + @foreach($report['accounts'] as $account) {% if budget.spent[$account->id] %} - {{ format_amount_by_symbol(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) }} @@ -38,7 +38,7 @@ @endforeach {% for sum in report.sums[budget.budget_id] %} - {{ format_amount_by_symbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }} + {!! format_amount_by_symbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }}
    @endforeach @@ -49,10 +49,10 @@ {{ __('firefly.sum') }} - {% for account in report.accounts %} + @foreach($report['accounts'] as $account) {% if account.sum != 0 %} - {{ format_amount_by_symbol(account.sum, account.currency_symbol, account.currency_decimal_places) }} + {!! format_amount_by_symbol(account.sum, account.currency_symbol, account.currency_decimal_places) }} @endif @endforeach diff --git a/resources/views/reports/partials/bills.blade.php b/resources/views/reports/partials/bills.blade.php index fd61c7716b..c6b02efd52 100644 --- a/resources/views/reports/partials/bills.blade.php +++ b/resources/views/reports/partials/bills.blade.php @@ -9,72 +9,76 @@ - {% for bill in report.bills %} - {% if (bill.expected_dates|length > 0 or bill.paid_moments|length > 0) and bill.active %} + @foreach($report['bills'] as $bill) + @if((count($bill['expected_dates']) > 0 || count($bill['paid_moments'])) > 0 && $bill['active']) - {{ bill.name }} + {{ $bill['name'] }} - {{ format_amount_by_symbol(bill.amount_min, bill.currency_symbol, bill.currency_decimal_places) }} + {!! format_amount_by_symbol($bill['amount_min'], $bill['currency_symbol'], $bill['currency_decimal_places']) !!} - {{ format_amount_by_symbol(bill.amount_max, bill.currency_symbol, bill.currency_decimal_places) }} + {!! format_amount_by_symbol($bill['amount_max'], $bill['currency_symbol'], $bill['currency_decimal_places']) !!} - - {% for date in bill.expected_dates %} - {{ date.isoFormat($monthAndDayFormat) }}
    + + @foreach($bill['expected_dates'] as $date) + {{ $date->isoFormat($monthAndDayFormat) }}
    @endforeach - {% set hitCount = 0 %} - {% for journals in bill.paid_moments %} - {% for journal in journals %} - {% set hitCount = hitCount+1 %} - {{ journal.description }}, - {{ format_amount_by_symbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }} + @php + $hitCount = 0; + @endphp + @foreach($bill['paid_moments'] as $journals) + @foreach($journals as $journal) + @php + $hitCount++; + @endphp + {{ $journal['description'] }}, + {!! format_amount_by_symbol($journal['amount'], $journal['currency_symbol'], $journal['currency_decimal_places']) !!}
    @endforeach @endforeach - {% if hitCount == 0 %} - {{ 'notCharged'|_ }} + @if(0 === $hitCount) + {{ __('firefly.notCharged') }} @endif @endif @endforeach - - {% for line in bills.getBills %} + + @foreach($bills->getBills() as $line) - - {{ line.getBill.name }} + + {{ $line->getBill()->name }}
    - {{ trans('firefly.bill_expected_between', {start: line.getPayDate.isoFormat($monthAndDayFormat), end: line.getEndOfPayDate.isoFormat($monthAndDayFormat) }) }} + {{ trans('firefly.bill_expected_between', ['start' => $line->getPayDate()->isoFormat($monthAndDayFormat), 'end' => $line->getEndOfPayDate()->isoFormat($monthAndDayFormat)]) }}
    - {{ formatAmountByCurrency(line.getCurrency, line.getMin) }} - {{ formatAmountByCurrency(line.getCurrency, line.getMax) }} + {!! format_amount_by_currency($line->getCurrency(), $line->getMin()) !!} + {!! format_amount_by_currency($line->getCurrency(), $line->getMax()) !!} {{-- if bill is hit, show hit amount --}} - {% if line.isHit %} - - - {{ formatAmountByCurrency(line.getCurrency, line.getAmount) }} + @if($line->isHit()) + + + {!! format_amount_by_currency($line->getCurrency(), $line->getAmount()) !!} @endif {{-- if not but is active, show "not yet charged --}} - {% if not line.isHit and line.isActive %} - {{ 'notCharged'|_ }} + @if(!$line->isHit() && $line->isActive()) + {{ __('firefly.notCharged') }} @endif - {% if not line.isActive and not line.isHit %} + @if(!$line->isActive() && !$line->isHit())   @endif - - {% if line.isHit %} - {{ formatAmountByCurrency(line.getCurrency, (line.getMax + line.getAmount)) }} + + @if($line->isHit()) + {!! format_amount_by_currency($line->getCurrency(), ($line->getMax() + $line->getAmount())) !!} @endif diff --git a/resources/views/reports/partials/budget-period.blade.php b/resources/views/reports/partials/budget-period.blade.php index e7dd60d6a1..ca19aac14a 100644 --- a/resources/views/reports/partials/budget-period.blade.php +++ b/resources/views/reports/partials/budget-period.blade.php @@ -5,7 +5,7 @@ {% for period in periods %} {{ period }} @endforeach - {{ 'average'|_ }} + {{ __('firefly.average') }} {{ __('firefly.sum') }} @@ -25,20 +25,20 @@ {% for key, period in periods %} {% if(info.entries[key]) %} - {{ format_amount_by_symbol(info.entries[key], info.currency_symbol, info.currency_decimal_places) }} + {!! format_amount_by_symbol(info.entries[key], info.currency_symbol, info.currency_decimal_places) }} @else - {{ format_amount_by_symbol(0, info.currency_symbol, info.currency_decimal_places) }} + {!! format_amount_by_symbol(0, info.currency_symbol, info.currency_decimal_places) }} @endif @endforeach - {{ format_amount_by_symbol(info.avg, info.currency_symbol, info.currency_decimal_places) }} + {!! format_amount_by_symbol(info.avg, info.currency_symbol, info.currency_decimal_places) }} - {{ format_amount_by_symbol(info.sum, info.currency_symbol, info.currency_decimal_places) }} + {!! format_amount_by_symbol(info.sum, info.currency_symbol, info.currency_decimal_places) }} @endforeach diff --git a/resources/views/reports/partials/budgets.blade.php b/resources/views/reports/partials/budgets.blade.php index 8ddcc6639f..a015b9f83b 100644 --- a/resources/views/reports/partials/budgets.blade.php +++ b/resources/views/reports/partials/budgets.blade.php @@ -39,7 +39,7 @@ {% if null != budget_limit.budgeted %} - {{ format_amount_by_symbol(budget_limit.budgeted, budget_limit.currency_symbol, budget_limit.currency_decimal_places) }} + {!! format_amount_by_symbol(budget_limit.budgeted, budget_limit.currency_symbol, budget_limit.currency_decimal_places) }} @endif @@ -50,7 +50,7 @@ - {{ format_amount_by_symbol(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) }} @@ -69,13 +69,13 @@ {% if null != budget_limit.left %} - {{ format_amount_by_symbol(budget_limit.left, budget_limit.currency_symbol, budget_limit.currency_decimal_places) }} + {!! format_amount_by_symbol(budget_limit.left, budget_limit.currency_symbol, budget_limit.currency_decimal_places) }} @endif {% if null != budget_limit.overspent %} - {{ format_amount_by_symbol(budget_limit.overspent, budget_limit.currency_symbol, budget_limit.currency_decimal_places) }} + {!! format_amount_by_symbol(budget_limit.overspent, budget_limit.currency_symbol, budget_limit.currency_decimal_places) }} @endif @@ -86,13 +86,13 @@ {% for sum in report.sums %} {{ __('firefly.sum') }} ({{ sum.currency_name }}) - {{ format_amount_by_symbol(sum.budgeted, sum.currency_symbol, sum.currency_decimal_places) }} + {!! format_amount_by_symbol(sum.budgeted, sum.currency_symbol, sum.currency_decimal_places) }}   - {{ format_amount_by_symbol(sum.spent, sum.currency_symbol, sum.currency_decimal_places) }} + {!! format_amount_by_symbol(sum.spent, sum.currency_symbol, sum.currency_decimal_places) }}     - {{ format_amount_by_symbol(sum.left, sum.currency_symbol, sum.currency_decimal_places) }} - {{ format_amount_by_symbol(sum.overspent, sum.currency_symbol, sum.currency_decimal_places) }} + {!! format_amount_by_symbol(sum.left, sum.currency_symbol, sum.currency_decimal_places) }} + {!! format_amount_by_symbol(sum.overspent, sum.currency_symbol, sum.currency_decimal_places) }} @endforeach diff --git a/resources/views/reports/partials/categories.blade.php b/resources/views/reports/partials/categories.blade.php index 45cd9bfdcb..00911d2399 100644 --- a/resources/views/reports/partials/categories.blade.php +++ b/resources/views/reports/partials/categories.blade.php @@ -3,14 +3,14 @@ {{ __('firefly.category') }} {{ __('firefly.spent') }} - {{ 'earned'|_ }} + {{ __('firefly.earned') }} {{ __('firefly.sum') }}   {% for category in report.categories %} - {% if loop.index > listLength %} + @if($loop->index > $listLength) @else @@ -18,9 +18,9 @@ {{ category.title }} - {{ format_amount_by_symbol(category.spent, category.currency_symbol, category.currency_decimal_places, true) }} - {{ format_amount_by_symbol(category.earned, category.currency_symbol, category.currency_decimal_places, true) }} - {{ format_amount_by_symbol(category.sum, category.currency_symbol, category.currency_decimal_places, true) }} + {!! format_amount_by_symbol(category.spent, category.currency_symbol, category.currency_decimal_places, true) }} + {!! format_amount_by_symbol(category.earned, category.currency_symbol, category.currency_decimal_places, true) }} + {!! format_amount_by_symbol(category.sum, category.currency_symbol, category.currency_decimal_places, true) }} @@ -32,7 +32,7 @@ {% if report.categories|length > listLength %} - {{ trans('firefly.show_full_list',{number:incomeTopLength}) }} + {{ trans('firefly.show_full_list',['number' => $incomeTopLength]) }} @endif @@ -40,13 +40,13 @@ {{ __('firefly.sum') }} ({{ sum.currency_name }}) - {{ format_amount_by_symbol(sum.spent, sum.currency_symbol, sum.currency_decimal_places) }} + {!! format_amount_by_symbol(sum.spent, sum.currency_symbol, sum.currency_decimal_places) }} - {{ format_amount_by_symbol(sum.earned, sum.currency_symbol, sum.currency_decimal_places) }} + {!! format_amount_by_symbol(sum.earned, sum.currency_symbol, sum.currency_decimal_places) }} - {{ format_amount_by_symbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }} + {!! format_amount_by_symbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }} @endforeach diff --git a/resources/views/reports/partials/category-period.blade.php b/resources/views/reports/partials/category-period.blade.php index c09e3a7dab..5ac178980a 100644 --- a/resources/views/reports/partials/category-period.blade.php +++ b/resources/views/reports/partials/category-period.blade.php @@ -25,11 +25,11 @@ {{-- income first --}} {% if(info.entries[key]) %} - {{ format_amount_by_symbol(info.entries[key], info.currency_symbol, info.currency_decimal_places) }} + {!! format_amount_by_symbol(info.entries[key], info.currency_symbol, info.currency_decimal_places) }} @else - {{ format_amount_by_symbol(0, info.currency_symbol, info.currency_decimal_places) }} + {!! format_amount_by_symbol(0, info.currency_symbol, info.currency_decimal_places) }} @endif @endforeach @@ -37,11 +37,11 @@ {{-- if sum of income, display: --}} {% if info.sum %} - {{ format_amount_by_symbol(info.sum, info.currency_symbol, info.currency_decimal_places) }} + {!! format_amount_by_symbol(info.sum, info.currency_symbol, info.currency_decimal_places) }} @else - {{ format_amount_by_symbol(0, info.currency_symbol, info.currency_decimal_places) }} + {!! format_amount_by_symbol(0, info.currency_symbol, info.currency_decimal_places) }} @endif diff --git a/resources/views/reports/partials/exp-budgets.blade.php b/resources/views/reports/partials/exp-budgets.blade.php index 5297be80fc..1e61249081 100644 --- a/resources/views/reports/partials/exp-budgets.blade.php +++ b/resources/views/reports/partials/exp-budgets.blade.php @@ -20,7 +20,7 @@ {{ '0'|formatAmount }} @else {% for expense in entry.spent.per_currency %} - {{ format_amount_by_symbol(expense.sum, expense.currency.symbol, expense.currency.dp) }}
    + {!! format_amount_by_symbol(expense.sum, expense.currency.symbol, expense.currency.dp) }}
    @endforeach @endif diff --git a/resources/views/reports/partials/exp-categories.blade.php b/resources/views/reports/partials/exp-categories.blade.php index 2fa689a13c..6fbce68e0b 100644 --- a/resources/views/reports/partials/exp-categories.blade.php +++ b/resources/views/reports/partials/exp-categories.blade.php @@ -3,7 +3,7 @@ {{ __('firefly.category') }} {{ __('firefly.spent') }} - {{ 'earned'|_ }} + {{ __('firefly.earned') }} @@ -22,7 +22,7 @@ {{ '0'|formatAmount }} @else {% for expense in entry.spent.per_currency %} - {{ format_amount_by_symbol(expense.sum, expense.currency.symbol, expense.currency.dp) }}
    + {!! format_amount_by_symbol(expense.sum, expense.currency.symbol, expense.currency.dp) }}
    @endforeach @endif @@ -31,7 +31,7 @@ {{ '0'|formatAmount }} @else {% for income in entry.earned.per_currency %} - {{ format_amount_by_symbol(income.sum * -1, income.currency.symbol, income.currency.dp) }}
    + {!! format_amount_by_symbol(income.sum * -1, income.currency.symbol, income.currency.dp) }}
    @endforeach @endif diff --git a/resources/views/reports/partials/exp-not-grouped.blade.php b/resources/views/reports/partials/exp-not-grouped.blade.php index e21120f956..af312d8fcc 100644 --- a/resources/views/reports/partials/exp-not-grouped.blade.php +++ b/resources/views/reports/partials/exp-not-grouped.blade.php @@ -3,7 +3,7 @@ {{ __('firefly.name') }} {{ __('firefly.spent') }} - {{ 'earned'|_ }} + {{ __('firefly.earned') }} @@ -15,7 +15,7 @@ {{ '0'|formatAmount }} @endif {% for expense in amounts.spent.per_currency %} - {{ format_amount_by_symbol(expense.sum, expense.currency.symbol, expense.currency.dp) }}
    + {!! format_amount_by_symbol(expense.sum, expense.currency.symbol, expense.currency.dp) }}
    @endforeach @@ -23,7 +23,7 @@ {{ '0'|formatAmount }} @endif {% for income in amounts.earned.per_currency %} - {{ format_amount_by_symbol(income.sum * -1, income.currency.symbol, income.currency.dp) }}
    + {!! format_amount_by_symbol(income.sum * -1, income.currency.symbol, income.currency.dp) }}
    @endforeach diff --git a/resources/views/reports/partials/income-expenses.blade.php b/resources/views/reports/partials/income-expenses.blade.php index d64ce1baba..4cbdf28eb0 100644 --- a/resources/views/reports/partials/income-expenses.blade.php +++ b/resources/views/reports/partials/income-expenses.blade.php @@ -3,57 +3,57 @@ {{ __('firefly.name') }} {{ __('firefly.total') }} - {{ 'average'|_ }} + {{ __('firefly.average') }} - {% for account in report.accounts %} - {% if loop.index > listLength %} + @foreach($report['accounts'] as $account) + @if($loop->index > $listLength) @else @endif - - {{ account.name }} - {% if account.count > 1 %} + + {{ $account['name'] }} + @if($account['count'] > 1)
    - {{ account.count }} {{ 'transactions'|_|lower }} + {{ $account['count'] }} {{ strtolower(__('transactions')) }} @endif - - {{ format_amount_by_symbol(account.sum, account.currency_symbol, account.currency_decimal_places) }} + + {!! format_amount_by_symbol($account['sum'], $account['currency_symbol'], $account['currency_decimal_places']) !!} - - {% if account.count > 1 %} - {{ format_amount_by_symbol(account.average, account.currency_symbol, account.currency_decimal_places) }} + + @if($account['count'] > 1) + {!! format_amount_by_symbol($account['average'], $account['currency_symbol'], $account['currency_decimal_places']) !!} @else — @endif - + @endforeach - {% if report.accounts|length > listLength %} + @if(count($report['accounts']) >$listLength) - {{ trans('firefly.show_full_list', {number:incomeTopLength}) }} + {{ trans('firefly.show_full_list', ['number' => $incomeTopLength]) }} @endif - {% for sum in report.sums %} + @foreach($report['sums'] as $sum) - {{ __('firefly.sum') }} ({{ sum.currency_name }}) + {{ __('firefly.sum') }} ({{ $sum['currency_name'] }}) - {{ format_amount_by_symbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }} + {!! format_amount_by_symbol($sum['sum'], $sum['currency_symbol'], $sum['currency_decimal_places']) !!}   diff --git a/resources/views/reports/partials/journals-audit.blade.php b/resources/views/reports/partials/journals-audit.blade.php index 872c3110ff..f5db2cb2bf 100644 --- a/resources/views/reports/partials/journals-audit.blade.php +++ b/resources/views/reports/partials/journals-audit.blade.php @@ -79,38 +79,38 @@ - {{ format_amount_by_symbol(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) }} {% if auditData[$account->id].currency.id == journal.currency_id %} - {% if account.id == journal.destination_account_id and journal.transaction_type_type == 'Opening balance' %} - {{ 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' %} - {{ 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' %} - {{ format_amount_by_symbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }} + {% if $account['id'] == journal.destination_account_id and journal.transaction_type_type == 'Opening balance' %} + {!! 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' %} + {!! 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' %} + {!! 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) }} + {!! 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 account.id == journal.destination_account_id and journal.transaction_type_type == 'Opening balance' %} - {{ 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' %} - {{ 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' %} - {{ format_amount_by_symbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }} + {% if $account['id'] == journal.destination_account_id and journal.transaction_type_type == 'Opening balance' %} + {!! 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' %} + {!! 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' %} + {!! 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) }} + {!! format_amount_by_symbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }} @endif @endif - {{ format_amount_by_symbol(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) }} {{ journal.date.isoFormat($monthAndDayFormat) }} diff --git a/resources/views/reports/partials/operations.blade.php b/resources/views/reports/partials/operations.blade.php index 8a6c843fe4..a60f0cf039 100644 --- a/resources/views/reports/partials/operations.blade.php +++ b/resources/views/reports/partials/operations.blade.php @@ -1,24 +1,24 @@ - - - - + + + + - {% for sum in sums %} + @foreach($sums as $sum) - - + - - @endforeach diff --git a/resources/views/reports/partials/top-transactions.blade.php b/resources/views/reports/partials/top-transactions.blade.php index 1d29b367b1..cd893c1252 100644 --- a/resources/views/reports/partials/top-transactions.blade.php +++ b/resources/views/reports/partials/top-transactions.blade.php @@ -21,9 +21,9 @@ diff --git a/resources/views/reports/tag/month.blade.php b/resources/views/reports/tag/month.blade.php index a28cf15737..8f46f57220 100644 --- a/resources/views/reports/tag/month.blade.php +++ b/resources/views/reports/tag/month.blade.php @@ -15,7 +15,7 @@
    {{-- loading indicator --}} -
    +
    Loading...
    @@ -30,7 +30,7 @@
    {{-- loading indicator --}} -
    +
    Loading...
    @@ -47,7 +47,7 @@
    {{-- loading indicator --}} -
    +
    Loading...
    @@ -97,7 +97,7 @@
    -

    {{ 'income_per_category'|_ }}

    +

    {{ __('firefly.income_per_category') }}

    @@ -109,7 +109,7 @@
    -

    {{ 'expense_per_budget'|_ }}

    +

    {{ __('firefly.expense_per_budget') }}

    @@ -135,7 +135,7 @@
    -

    {{ 'income_per_source_account'|_ }}

    +

    {{ __('firefly.income_per_source_account') }}

    @@ -161,7 +161,7 @@
    -

    {{ 'income_per_destination_account'|_ }}

    +

    {{ __('firefly.income_per_destination_account') }}

    @@ -177,7 +177,7 @@
    -

    {{ 'income_and_expenses'|_ }} ({{ tag.tag }})

    +

    {{ __('firefly.income_and_expenses') }} ({{ tag.tag }})

    -

    {{ 'average_spending_per_destination'|_ }}

    +

    {{ __('firefly.average_spending_per_destination') }}

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -210,12 +210,12 @@
    -

    {{ 'average_earning_per_source'|_ }}

    +

    {{ __('firefly.average_earning_per_source') }}

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -227,12 +227,12 @@
    -

    {{ __('firefly.expenses') }} ({{ trans('firefly.topX', {number: listLength}) }})

    +

    {{ __('firefly.expenses') }} ({{ trans('firefly.topX', ['number' => $listLength]) }})

    {{-- loading indicator --}} -
    +
    Loading...
    @@ -242,12 +242,12 @@
    -

    {{ 'income'|_ }} ({{ trans('firefly.topX', {number: listLength}) }})

    +

    {{ __('firefly.income') }} ({{ trans('firefly.topX', ['number' => $listLength]) }})

    {{-- loading indicator --}} -
    +
    Loading...
    diff --git a/resources/views/reports/tag/partials/account-per-tag.blade.php b/resources/views/reports/tag/partials/account-per-tag.blade.php index b0767fd2b3..9efebfe040 100644 --- a/resources/views/reports/tag/partials/account-per-tag.blade.php +++ b/resources/views/reports/tag/partials/account-per-tag.blade.php @@ -8,17 +8,17 @@
    - {% for account in report %} - {% for currency in account.currencies %} + @foreach($report as $account) + @foreach($account['currencies'] as $currency) - {% for tag in tags %} - + - {% for account in report %} - {% for currency in account.currencies %} + @foreach($report as $account) + @foreach($account['currencies'] as $currency) - @endforeach @@ -32,13 +32,13 @@ @endforeach diff --git a/resources/views/reports/tag/partials/avg-expenses.blade.php b/resources/views/reports/tag/partials/avg-expenses.blade.php index c84107c088..a815a04017 100644 --- a/resources/views/reports/tag/partials/avg-expenses.blade.php +++ b/resources/views/reports/tag/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 - - - @endforeach - {% if result|length > listLength %} + @if(count($result) > $listLength) @endif diff --git a/resources/views/reports/tag/partials/avg-income.blade.php b/resources/views/reports/tag/partials/avg-income.blade.php index 58767c7283..bb66c4c3c7 100644 --- a/resources/views/reports/tag/partials/avg-income.blade.php +++ b/resources/views/reports/tag/partials/avg-income.blade.php @@ -8,37 +8,37 @@ - {% for row in result %} - {% if loop.index > listLength %} + @foreach($result as $row) + @if($loop->index > $listLength) @else @endif - - - @endforeach - {% if result|length > listLength %} + @if(count($result) > $listLength) @endif diff --git a/resources/views/reports/tag/partials/tags.blade.php b/resources/views/reports/tag/partials/tags.blade.php index a235ad8d71..c6e4f08fa0 100644 --- a/resources/views/reports/tag/partials/tags.blade.php +++ b/resources/views/reports/tag/partials/tags.blade.php @@ -3,7 +3,7 @@ - + @@ -21,17 +21,17 @@ @endif {% for currency in tag.currencies %} - @endforeach @@ -42,13 +42,13 @@ @endforeach diff --git a/resources/views/reports/tag/partials/top-expenses.blade.php b/resources/views/reports/tag/partials/top-expenses.blade.php index a8f8b60336..04a3b88d71 100644 --- a/resources/views/reports/tag/partials/top-expenses.blade.php +++ b/resources/views/reports/tag/partials/top-expenses.blade.php @@ -9,24 +9,24 @@ - {% for row in result %} - {% if loop.index > listLength %} + @foreach($result as $row) + @if($loop->index > $listLength) @else @endif - - @endforeach - {% if result|length > listLength %} + @if(count($result) > $listLength) @endif diff --git a/resources/views/reports/tag/partials/top-income.blade.php b/resources/views/reports/tag/partials/top-income.blade.php index 24eca57f9a..f1904d7e02 100644 --- a/resources/views/reports/tag/partials/top-income.blade.php +++ b/resources/views/reports/tag/partials/top-income.blade.php @@ -9,24 +9,24 @@ - {% for row in result %} - {% if loop.index > listLength %} + @foreach($result as $row) + @if($loop->index > $listLength) @else @endif - - @endforeach - {% if result|length > listLength %} + @if(count($result) > $listLength) @endif diff --git a/resources/views/tags/show.blade.php b/resources/views/tags/show.blade.php index 6b12e03278..a19bded3db 100644 --- a/resources/views/tags/show.blade.php +++ b/resources/views/tags/show.blade.php @@ -59,7 +59,7 @@ @@ -75,7 +75,7 @@ @@ -91,7 +91,7 @@ @@ -107,7 +107,7 @@ @@ -123,7 +123,7 @@ @@ -139,7 +139,7 @@ diff --git a/resources/views/transactions/bulk/edit.blade.php b/resources/views/transactions/bulk/edit.blade.php index f1c0b384d0..43ec217e13 100644 --- a/resources/views/transactions/bulk/edit.blade.php +++ b/resources/views/transactions/bulk/edit.blade.php @@ -43,21 +43,21 @@ {{ journal.description }} diff --git a/resources/views/transactions/mass/delete.blade.php b/resources/views/transactions/mass/delete.blade.php index dda88e501b..05441542fa 100644 --- a/resources/views/transactions/mass/delete.blade.php +++ b/resources/views/transactions/mass/delete.blade.php @@ -65,20 +65,20 @@ diff --git a/resources/views/transactions/mass/edit.blade.php b/resources/views/transactions/mass/edit.blade.php index b1ed8a36ad..9767c2af81 100644 --- a/resources/views/transactions/mass/edit.blade.php +++ b/resources/views/transactions/mass/edit.blade.php @@ -69,21 +69,21 @@ {% if journal.reconciled != false %} {% if journal.transaction_type_type == 'Deposit' %} - {{ format_amount_by_symbol(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 %} - ({{ format_amount_by_symbol(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) }}) @endif {% elseif journal.transaction_type_type == 'Transfer' %} - {{ format_amount_by_symbol(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 %} - ({{ format_amount_by_symbol(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) }}) @endif @else - {{ format_amount_by_symbol(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 %} - ({{ format_amount_by_symbol(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) }}) @endif @endif @endif diff --git a/resources/views/transactions/old-index.blade.php b/resources/views/transactions/old-index.blade.php index 78c5856851..78f0ae3c6f 100644 --- a/resources/views/transactions/old-index.blade.php +++ b/resources/views/transactions/old-index.blade.php @@ -23,7 +23,7 @@
    -

    {{ 'categories'|_ }}

    +

    {{ __('firefly.categories') }}

    {{'currency'|_}}{{ 'money_flowing_in'|_ }}{{ 'money_flowing_out'|_ }}{{ 'difference'|_ }}{{ __('firefly.currency') }}{{ __('firefly.money_flowing_in')}}{{ __('firefly.money_flowing_out') }}{{ __('firefly.difference') }}
    {{ sum.currency_name }} ({{ sum.currency_symbol }}) - {{ format_amount_by_symbol(sum.in, sum.currency_symbol, sum.currency_decimal_places) }} + {{ $sum['currency_name'] }} ({{ $sum['currency_symbol'] }}) + {!! format_amount_by_symbol($sum['in'], $sum['currency_symbol'], $sum['currency_decimal_places']) !!} - {{ format_amount_by_symbol(sum.out, sum.currency_symbol, sum.currency_decimal_places) }} + + {!! format_amount_by_symbol($sum['out'], $sum['currency_symbol'], $sum['currency_decimal_places']) !!} - {{ format_amount_by_symbol(sum.sum, sum.currency_symbol, sum.currency_decimal_places) }} + + {!! format_amount_by_symbol($sum['sum'], $sum['currency_symbol'], $sum['currency_decimal_places']) !!}
    - {{ 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
    - {{ account.name }} ({{ currency.currency_name }}) + + {{ $account['name'] }} ({{ $currency['currency_name'] }}) {% if currency.tags[tag.id] %} - {{ __('firefly.name') }} {{ __('firefly.spent') }}{{ 'earned'|_ }}{{ __('firefly.earned') }} {{ __('firefly.sum') }}
    - {{ 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) }}
    {{ __('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) }}
    - - {{ 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'] }}
    - {{ trans('firefly.show_full_list',{number:incomeTopLength}) }} + {{ trans('firefly.show_full_list',['number' => $incomeTopLength]) }}
    - - {{ 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'] }}
    - {{ trans('firefly.show_full_list',{number:incomeTopLength}) }} + {{ trans('firefly.show_full_list',['number' => $incomeTopLength]) }}
    {{ __('firefly.name') }} {{ __('firefly.spent') }}{{ 'earned'|_ }}{{ __('firefly.earned') }} {{ __('firefly.sum') }}
    - {{ tag.name }} ({{ currency.currency_name }}) + + {{ tag.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) }}
    {{ __('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) }}
    - - {{ row.description }} + + {{ $row['description'] }} - {{ row.date }} + + {{ $row['date'] }} - - {{ row.destination_account_name }} + + {{ $row['destination_account_name'] }} @@ -35,18 +35,18 @@ - {{ 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']) }}
    - {{ trans('firefly.show_full_list',{number:incomeTopLength}) }} + {{ trans('firefly.show_full_list',['number' => $incomeTopLength]) }}
    - - {{ row.description }} + + {{ $row['description'] }} - {{ row.date }} + + {{ $row['date'] }} - - {{ row.source_account_name }} + + {{ row['source_account_name'] }} @@ -35,18 +35,18 @@ - {{ 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']) }}
    - {{ trans('firefly.show_full_list',{number:incomeTopLength}) }} + {{ trans('firefly.show_full_list',['number' => $incomeTopLength]) }}
    {{ trans('list.sum') }} {% for set in sums %} - {{ format_amount_by_symbol(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 @endforeach
    {{ trans('list.sum_excluding_transfers') }} {% for set in sums %} - {{ format_amount_by_symbol(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 @endforeach
    {{ trans('list.sum_withdrawals') }} {% for set in sums %} - {{ format_amount_by_symbol(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 @endforeach
    {{ trans('list.sum_deposits') }} {% for set in sums %} - {{ format_amount_by_symbol(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 @endforeach
    {{ trans('list.sum_transfers') }} {% for set in sums %} - {{ format_amount_by_symbol(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 @endforeach
    {{ trans('list.sum_reconciliations') }} {% for set in sums %} - {{ format_amount_by_symbol(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 @endforeach
    {% if journal.transaction_type_type == 'Deposit' %} - {{ format_amount_by_symbol(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 %} - ({{ format_amount_by_symbol(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) }}) @endif {% elseif journal.transaction_type_type == 'Transfer' %} - {{ format_amount_by_symbol(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 %} - ({{ format_amount_by_symbol(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) }}) @endif @else - {{ format_amount_by_symbol(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 %} - ({{ format_amount_by_symbol(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) }}) @endif @endif diff --git a/resources/views/transactions/convert.blade.php b/resources/views/transactions/convert.blade.php index d658028bec..4656447e35 100644 --- a/resources/views/transactions/convert.blade.php +++ b/resources/views/transactions/convert.blade.php @@ -260,19 +260,19 @@ {% 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 {% 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 @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 @endif {% if journal.transaction_type_type == 'Deposit' %} - {{ format_amount_by_symbol(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 %} - ({{ format_amount_by_symbol(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) }}) @endif {% elseif journal.transaction_type_type == 'Transfer' %} - {{ format_amount_by_symbol(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 %} - ({{ format_amount_by_symbol(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) }}) @endif @else - {{ format_amount_by_symbol(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 %} - ({{ format_amount_by_symbol(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) }}) @endif @endif