Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix various view issues.
James Coleb9a603fea805
diff --git a/config/firefly.php b/config/firefly.phpindex 3f63f03efd..1e596dbcaf 100644--- a/config/firefly.php+++ b/config/firefly.php@@ -390,6 +390,7 @@ return [AccountTypeEnum::MORTGAGE->value => AccountTypeEnum::MORTGAGE->value,],'transactionTypesByType' => [+ 'all' => [TransactionTypeEnum::WITHDRAWAL->value, TransactionTypeEnum::DEPOSIT->value, TransactionTypeEnum::TRANSFER->value],'expenses' => ['Withdrawal'],'withdrawal' => ['Withdrawal'],'revenue' => ['Deposit'],diff --git a/public/v1/js/ff/charts.js b/public/v1/js/ff/charts.jsindex 81b11d351d..c245c5d6e1 100644--- a/public/v1/js/ff/charts.js+++ b/public/v1/js/ff/charts.js@@ -269,7 +269,6 @@ function columnChart(URL, container) {}-/**** @param URL@@ -292,7 +291,7 @@ function columnChartCustomColours(URL, container) {*/function stackedColumnChart(URL, container) {"use strict";- console.log('stackedColumnChart('+URL+', '+container+')');+ console.log('stackedColumnChart(' + URL + ', ' + container + ')');var colorData = true;var options = $.extend(true, {}, defaultChartOptions);@@ -347,12 +346,16 @@ function multiCurrencyPieChart(URL, container) {* @param today*/function drawAChart(URL, container, chartType, options, colorData) {+ console.log('drawAChart(' + URL + ', ' + container + ')');var containerObj = document.getElementById(container);+ if (null === containerObj) {+ console.log('Return because NULL');+ return;+ }if (containerObj.length === 0) {- //console.log('Return because 0');+ console.log('Return because 0');return;}- //console.log('drawAChart('+URL+', '+container+')');window.axios.get(URL).then(function (response) {//console.log('GET drawAChart('+URL+', '+container+')');containerObj.classList.remove('general-chart-error');@@ -386,7 +389,7 @@ function drawAChart(URL, container, chartType, options, colorData) {}// console.log('found box body', boxBody);// boxBody.innerHtml = '<p><em>'+noDataForChart+'</em></p>';- boxBody.innerHTML = '<p><em>'+noDataForChart+'</em></p>';+ boxBody.innerHTML = '<p><em>' + noDataForChart + '</em></p>';//boxBody.empty().append($('<p>').append($('<em>').text(noDataForChart)));}// console.log('return');diff --git a/resources/lang/en_US/breadcrumbs.php b/resources/lang/en_US/breadcrumbs.phpindex aafec983d1..201ba295fb 100644--- a/resources/lang/en_US/breadcrumbs.php+++ b/resources/lang/en_US/breadcrumbs.php@@ -49,6 +49,7 @@ return ['reports' => 'Reports','search_result' => 'Search results for ":query"','withdrawal_list' => 'Expenses',+ 'all_list' => 'All transactions','Withdrawal_list' => 'Expenses','deposit_list' => 'Revenue, income and deposits','transfer_list' => 'Transfers',diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.phpindex 4b49fccab4..942bb9609c 100644--- a/resources/lang/en_US/firefly.php+++ b/resources/lang/en_US/firefly.php@@ -186,6 +186,7 @@ return ['all_withdrawal' => 'All expenses','all_transactions' => 'All transactions','title_withdrawal_between' => 'All expenses between :start and :end',+ 'title_all_between' => 'All transactions between :start and :end','all_deposit' => 'All revenue','title_deposit_between' => 'All revenue between :start and :end','all_transfers' => 'All transfers',diff --git a/resources/views/components/lists/periods.blade.php b/resources/views/components/lists/periods.blade.phpindex 2957f1c6a6..d067be8416 100644--- a/resources/views/components/lists/periods.blade.php+++ b/resources/views/components/lists/periods.blade.php@@ -1,5 +1,5 @@@foreach($periods as $period)-<div class="card box-default">+<div class="card mb-2"><div class="card-header"><h3 class="card-title"><a href="{{ $period['route'] }}">{{ $period['title'] }}</a></h3>diff --git a/resources/views/list/accounts.blade.php b/resources/views/list/accounts.blade.phpdeleted file mode 100644index 28ddc8bb52..0000000000--- a/resources/views/list/accounts.blade.php+++ /dev/null@@ -1,155 +0,0 @@-<div class="ml-1">- {{ accounts.links('pagination.bootstrap-4')|raw }}-</div>-<table class="table table-responsive table-hover" id="sortable-table">- <thead>- <tr>- <th class="hidden-sm hidden-xs"> </th>- <th>{{ trans('list.name') }}</th>- {% if objectType == 'asset' %}- <th class="hidden-sm hidden-xs hidden-md">{{ trans('list.role') }}</th>- @endif- {% if objectType == 'liabilities' %}- <th>{{ trans('list.liability_type') }}</th>- <th>{{ trans('form.liability_direction') }}</th>- <th>{{ trans('list.interest') }} ({{ trans('list.interest_period') }})</th>- @endif- <th class="hidden-sm hidden-xs">{{ trans('form.account_number') }}</th>- {% if objectType != 'liabilities' %}- <th class="text-end">{{ trans('list.currentBalance') }}</th>- @endif- {% if objectType == 'liabilities' %}- <th class="text-end">- {{ trans('firefly.left_in_debt') }}- </th>- @endif- <th class="hidden-sm hidden-xs">{{ trans('list.active') }}</th>- {{-- hide last activity to make room for other stuff --}}- {% if objectType != 'liabilities' %}- <th class="hidden-sm hidden-xs hidden-md">{{ trans('list.lastActivity') }}</th>- @endif- <th- class="fifteen hidden-sm hidden-xs hidden-md">{{ trans('list.balanceDiff') }}</th>- <th class="hidden-sm hidden-xs"> </th>- </tr>- </thead>- <tbody>- {% for account in accounts %}- <tr class="sortable-object" data-id="{{ account.id }}" data-order="{{ account.order }}" data-position="{{ loop.index0 }}">- <td class="hidden-sm hidden-xs">- <span class="fa fa-bars object-handle"></span>- </td>- <td>- <a href="{{ route('accounts.show',account.id) }}">{{ account.name }}</a>- {% if account.location %}- <span class="fa fa-map-marker"></span>- @endif- {% if account.attachments.count() > 0 %}- <span class="bi bi-paperclip"></span>- @endif- </td>- {% if objectType == "asset" %}- <td class="hidden-sm hidden-xs hidden-md">- {% for entry in account.accountmeta %}- {% if entry.name == 'account_role' %}- {{ ('account_role_'~entry.data)|_ }}- @endif- @endforeach- </td>- @endif- {% if objectType == 'liabilities' %}- <td>{{ account.accountTypeString }}</td>- <td>{{ trans('firefly.liability_direction_'~account.liability_direction~'_short') }}</td>- <td>{{ account.interest }}% ({{ account.interestPeriod|lower }})</td>- @endif- <td class="hidden-sm hidden-xs">{{ $account['iban'] }}{% if $account['iban'] == '' %}{{ accountGetMetaField(account, 'account_number') }}@endif</td>- {% if objectType != 'liabilities' %}- <td class="text-end">- <span class="mr-2">- {% for key, balance in account.endBalances %}- <span title="{{ $key }}">- {% if 'balance' == key %}- {% if not convertToPrimary %}- {!! 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) }}- @endif- @else- ({{ formatAmountByCode(balance, key) }})- @endif- </span>- @endforeach- </span>- </td>- @endif- {% if objectType == 'liabilities' %}- <td class="text-end">- {% if '-' != account.current_debt %}- <span class="text-info money-transfer">- {!! format_amount_by_symbol(account.current_debt, account.currency.symbol, account.currency.decimal_places, false) }}- </span>- @endif- </td>- @endif- <td class="hidden-sm hidden-xs">- {% if account.active %}- <span class="bi bi-check"></span>- @else- <span class="fa fa-ban"></span>- @endif- </td>- {{-- hide last activity to make room for other stuff --}}- {% if objectType != 'liabilities' %}- {% if account.lastActivityDate %}- <td class="hidden-sm hidden-xs hidden-md">- <!-- {{ account.lastActivityDate }} -->- {{ account.lastActivityDate.isoFormat($monthAndDayFormat) }}- </td>- @else- <td class="hidden-sm hidden-xs hidden-md">- <em>{{ 'never'|_ }}</em>- </td>- @endif- @endif- <td class="text-end hidden-sm hidden-xs hidden-md">- <span class="mr-1">- {% for key, balance in account.differences %}- <span title="{{ $key }}">- {% if 'balance' == key %}- {% if not convertToPrimary %}- {!! 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) }}- @endif- @else- ({{ formatAmountByCode(balance, key) }})- @endif- </span>- @endforeach- </span>- </td>- <td class="hidden-sm hidden-xs">- <div class="btn-group btn-group-sm text-end">- <button type="button" class="btn btn-outline-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">- {{ __('firefly.actions') }} <span class="caret"></span></button>- <ul class="dropdown-menu dropdown-menu-right" role="menu">- <li><a href="{{ route('accounts.edit',account.id) }}"><span class="bi bi-pencil"></span> {{ __('firefly.edit') }}</a></li>- <li><a href="{{ route('accounts.delete',account.id) }}"><span class="bi bi-trash"></span> {{ __('firefly.delete') }}</a></li>- {% if objectType == 'asset' %}- <li><a href="{{ route('accounts.reconcile',account.id) }}"><span class="bi bi-check"></span> {{ 'reconcile_this_account'|_ }}</a></li>- @endif- </ul>- </div>- </td>- </tr>-- @endforeach- </tbody>-</table>-<div class="pl-3">- {{ accounts.links('pagination.bootstrap-4')|raw }}-</div>diff --git a/resources/views/list/ale.blade.php b/resources/views/list/ale.blade.phpdeleted file mode 100644index 627885babb..0000000000--- a/resources/views/list/ale.blade.php+++ /dev/null@@ -1,118 +0,0 @@-<table class="table" aria-label="Table">- <thead>- <tr>- <td colspan="3"><em>{{ 'incomplete_ale'|_ }}</em></td>- </tr>- </thead>- <tbody>- {% for logEntry in logEntries %}- <tr>- <th class="twenty" scope="row">- {{-- link to object: --}}- {% if 'FireflyIII\\Models\\Rule' == logEntry.changer_type %}- <a href="{{ route('rules.edit', [logEntry.changer_id] ) }}">- @endif- {% if 'FireflyIII\\User' == logEntry.changer_type %}- <a href="{{ route('profile.index') }}">- @endif- {{ logEntry.changer_type|replace({"FireflyIII\\Models\\": ""})|replace({"FireflyIII\\": ""}) }} #{{ logEntry.changer_id }}- </a>- </th>- <td class="thirty" title="{{ logEntry.created_at.isoFormat($dateTimeFormat) }}">- {{ trans('firefly.ale_action_'~logEntry.action) }}- </td>- <td>- {{-- display depends on action --}}- {% if 'add_tag' == logEntry.action %}- <code>{{ logEntry.after }}</code>- @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.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.after.amount, logEntry.after.currency_symbol, logEntry.after.decimal_places, true) }}- @endif--- {% if 'update_group_title' == logEntry.action %}- <code><s>{{ logEntry.before }}</s></code>- →- <code>{{ logEntry.after }}</code>- @endif- {% if 'clear_category' == logEntry.action %}- <code><s>{{ logEntry.before }}</s></code>- @endif- {% if 'clear_tag' == logEntry.action %}- <code><s>{{ logEntry.before }}</s></code>- @endif-- {% if 'clear_notes' == logEntry.action %}- {% if logEntry.before|length > 25 %}- <code><s>{{ logEntry.before|slice(0,25) }}...</s></code>- @else- <code><s>{{ logEntry.before }}</s></code>- @endif- @endif-- {% if 'set_bill' == logEntry.action %}- <code>{{ logEntry.after }}</code>- @endif- {% if 'set_budget' == logEntry.action %}- <code>{{ logEntry.after }}</code>- @endif- {% if 'set_category' == logEntry.action %}- <code>{{ logEntry.after }}</code>- @endif- {% if 'set_source' == logEntry.action %}- <code>{{ logEntry.after }}</code>- @endif- {% if 'set_destination' == logEntry.action %}- <code>{{ logEntry.after }}</code>- @endif- {% if 'update_date' == logEntry.action %}- <code><s>{{ carbonize(logEntry.before).isoFormat($dateTimeFormat) }}</s></code>- →- <code>{{ carbonize(logEntry.after).isoFormat($dateTimeFormat) }}</code>- @endif- {% if 'update_transaction_type' == logEntry.action %}- {{ trans('firefly.'~logEntry.before) }} → {{ trans('firefly.'~logEntry.after) }}- @endif-- {% if 'update_notes' == logEntry.action %}- {% if logEntry.before|length > 25 %}- <code><s>{{ logEntry.before|slice(0,25) }}...</s></code>- @else- <code><s>{{ logEntry.before }}</s></code>- @endif-- →- {% if logEntry.after|length > 25 %}- <code>{{ logEntry.after|slice(0,25) }}...</code>- @else- <code>{{ logEntry.after }}</code>- @endif- @endif-- {% if 'update_description' == logEntry.action %}- <code><s>{{ logEntry.before }}</s></code>- →- <code>{{ logEntry.after }}</code>- @endif- {% if 'add_to_piggy' == logEntry.action %}- {{ trans('firefly.ale_action_log_add', {amount: format_amount_by_symbol(logEntry.after.amount, logEntry.after.currency_symbol, logEntry.after.decimal_places, true), name: logEntry.after.piggy|e})|raw }}- @endif- {% if 'remove_from_piggy' == logEntry.action %}- {{ trans('firefly.ale_action_log_remove', {amount: format_amount_by_symbol(logEntry.after.amount, logEntry.after.currency_symbol, logEntry.after.decimal_places, true), name: logEntry.after.piggy|e})|raw }}- @endif- </td>--- </tr>- @endforeach- </tbody>-</table>diff --git a/resources/views/list/attachments.blade.php b/resources/views/list/attachments.blade.phpdeleted file mode 100644index 54c2f310c6..0000000000--- a/resources/views/list/attachments.blade.php+++ /dev/null@@ -1,47 +0,0 @@-<table class="table table-responsive table-hover">- {% for attachment in attachments %}- <tr>- <td class="onetwenty">- <div class="btn-group btn-group-sm">- <a href="{{ route('attachments.edit', attachment.id) }}" class="btn btn-outline-secondary"><span- class="bi bi-pencil"></span></a>- <a href="{{ route('attachments.delete', attachment.id) }}" class="btn btn-danger"><span- class="bi bi-trash"></span></a>- {% if attachment.file_exists %}- <a href="{{ route('attachments.download', attachment.id) }}" class="btn btn-outline-secondary"><span- class="bi bi-download"></span></a>- @endif- {% if not attachment.file_exists %}- <a href="#" class="btn btn-danger"><span class="bi bi-exclamation-triangle"></span></a>- @endif- </div>- </td>- <td>- {% if attachment.file_exists %}- <span class="fa {{ attachment.mime|mimeIcon }}"></span>- <a href="{{ route('attachments.view', attachment.id) }}" title="{{ attachment.filename }}">- {% if attachment.title %}- {{ attachment.title }}- @else- {{ attachment.filename }}- @endif- </a>- ({{ attachment.size|filesize }})- {% if null != attachment.notes_text and '' != attachment.notes_text %}- {{ attachment.notes_text|default('')|markdown }}- @endif- @endif- {% if not attachment.file_exists %}- <span class="bi bi-exclamation-triangle"></span>- {% if attachment.title %}- {{ attachment.title }}- @else- {{ attachment.filename }}- @endif- <br>- <span class="text-danger">{{ 'attachment_not_found'|_ }}</span>- @endif- </td>- </tr>- @endforeach-</table>diff --git a/resources/views/list/bills.blade.php b/resources/views/list/bills.blade.phpdeleted file mode 100644index 440dba0c78..0000000000--- a/resources/views/list/bills.blade.php+++ /dev/null@@ -1,269 +0,0 @@-<div class="pl-2">- {{ paginator.links('pagination.bootstrap-4')|raw }}-</div>-<table class="table table-responsive table-hover" id="bill-sortable">- <thead>- <tr>- <th class="hidden-sm hidden-xs"> </th>- <th class="hidden-sm hidden-xs"> </th>- <th>{{ trans('list.name') }}</th>- <th class="hidden-sm hidden-md hidden-xs">{{ trans('list.linked_to_rules') }}</th>- <th class="text-end">{{ trans('list.matchingAmount') }}</th>- <th class="hidden-sm hidden-xs">{{ trans('list.paid_current_period') }}</th>- <th class="hidden-sm hidden-xs">{{ trans('list.next_expected_match') }}</th>- <th class="hidden-sm hidden-xs">{{ trans('list.repeat_freq') }}</th>- </tr>- </thead>- {% for objectGroupOrder, objectGroup in bills %}- {% if objectGroup.bills|length > 0 %}- <tbody class="bill-connected-list"- {% if objectGroupOrder != 0 %}data-title="{{ objectGroup.object_group_title }}"- @elsedata-title=""@endif>- <tr>- <td class="hidden-sm hidden-xs"> </td>- <td class="hidden-sm hidden-xs"> </td>- <td colspan="6"><small>{{ objectGroup.object_group_title }}</small></td>- </tr>- {% for entry in objectGroup.bills %}- <tr class="bill-sortable" data-id="{{ entry.id }}" data-name="{{ entry.name }}"- data-order="{{ entry.order }}" data-position="{{ loop.index0 }}">- <td class="hidden-sm hidden-xs">- <span class="bi bi-list bill-handle"></span>- </td>- <td class="hidden-sm hidden-xs">- <div class="btn-group btn-group-sm edit_tr_buttons"><a href="{{ route('subscriptions.edit',entry.id) }}"- class="btn btn-outline-secondary btn-xs"><span- class="bi bi-pencil"></span></a><a- href="{{ route('subscriptions.delete',entry.id) }}" class="btn btn-danger btn-xs"><span- class="bi bi-trash"></span></a></div>- </td>- <td>- {% if not entry.active %}- <span class="bi bi-ban"></span>- @endif- <a href="{{ route('subscriptions.show',entry.id) }}" title="{{ entry.name }}">{{ entry.name }}</a>- {{-- count attachments --}}- {% if entry.attachments.count() > 0 %}- <span class="bi bi-paperclip"></span>- @endif-- </td>- <td class="hidden-sm hidden-md hidden-xs rules">- {% if entry.rules|length > 0 %}- <ul class="list-unstyled">- {% for rule in entry.rules %}- <li>- <a href="{{ route('rules.edit', [rule.id]) }}">- {{ rule.title }}- </a>- {% if not rule.active %}({{ 'list_inactive_rule'|_|lower }})@endif- </li>- @endforeach- </ul>- @endif- </td>- <td class="text-end">- <span class="mr-2" title="{!! format_amount_by_symbol(entry.amount_min, entry.currency_symbol, entry.currency_decimal_places, false)|escape }} -- {!! format_amount_by_symbol(entry.amount_max, entry.currency_symbol, entry.currency_decimal_places, false)|escape }}">- ~ {!! format_amount_by_symbol((entry.amount_max + entry.amount_min)/2, entry.currency_symbol, entry.currency_decimal_places) }}-- {% if '0' != entry.pc_amount_max and null != entry.pc_amount_max %}- (~ {!! format_amount_by_symbol((entry.pc_amount_max + entry.pc_amount_min)/2, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})- @endif- </span>- </td>-- {{--- paidDates = 0 (bill not paid in period)- pay_dates = 0 (bill not expected to be paid in this period)- bill is active.- --}}- {% if entry.paid_dates|length == 0 and entry.pay_dates|length == 0 and entry.active %}- <td class="paid_in_period text-muted">- {{ trans('firefly.not_expected_period') }}- </td>- <td class="expected_in_period hidden-sm hidden-xs">- {% if entry.next_expected_match %}- {{ formatDate(entry.next_expected_match, monthAndDayFormat) }}- @endif- </td>- @endif-- {{--- paid_dates = 0 (bill not paid in period)- pay_dates > 0 (bill IS expected to be paid in this period)- bill is active- first pay date is in the past.- --}}- {% if entry.paid_dates|length == 0 and entry.pay_dates|length > 0 and entry.active %}- {% if entry.next_expected_match_diff == trans('firefly.not_expected_period') %} {{-- terrible code, you should sue me for this. --}}- <td class="paid_in_period text-muted">- {{ entry.next_expected_match_diff }}- </td>- @else- <td class="paid_in_period text-warning">- {{ entry.next_expected_match_diff }}- <!-- {{ trans('firefly.bill_expected_date', {date: entry.next_expected_match_diff }) }} -->- </td>- @endif- <td class="expected_in_period hidden-sm hidden-xs">-- {% for date in entry.pay_dates %}- {{ formatDate(date, monthAndDayFormat) }}<br>- @endforeach-- </td>- @endif-- {{--- paid_dates >= 0 (bill is paid X times).- Don't care about pay_dates.- --}}- {% if entry.paid_dates|length > 0 and entry.active %}- <td class="paid_in_period text-success">-- {% for currentPaid in entry.paid_dates %}- <a href="{{ route('transactions.show',currentPaid.transaction_group_id) }}">- {{ formatDate(currentPaid.date, monthAndDayFormat) }}- </a>- <br/>- @endforeach- </td>- <td class="expected_in_period hidden-sm hidden-xs">- {% if entry.next_expected_match %}- {{ formatDate(entry.next_expected_match, monthAndDayFormat) }}- @else- <span class="text-muted">{{ entry.next_expected_match_diff }}</span>- @endif- </td>- @endif- {{-- bill is not active --}}- {% if not entry.active %}- <td class="paid_in_period text-muted">- ~- </td>- <td class="expected_in_period text-muted hidden-sm hidden-xs">~</td>- @endif- <td class="hidden-sm hidden-xs">- {{ ('repeat_freq_'~entry.repeat_freq)|_ }}- {% if entry.skip > 0 %}- {{ 'skips_over'|_ }} {{ entry.skip }}- @endif- {% if entry.end_date %}- <br>- {% if carbonize(entry.end_date).lte(today) %}- <span class="text-danger">- {{ trans('firefly.bill_end_index_line', {date: carbonize(entry.end_date).isoFormat($monthAndDayFormat) }) }}- </span>- @else- {{ trans('firefly.bill_end_index_line', {date: carbonize(entry.end_date).isoFormat($monthAndDayFormat) }) }}- @endif- @endif- {% if entry.extension_date %}- <br>- {% if carbonize(entry.extension_date).lte(today) %}- <span class="text-danger">- {{ trans('firefly.bill_extension_index_line', {date: carbonize(entry.extension_date).isoFormat($monthAndDayFormat) }) }}- </span>- @else- {{ trans('firefly.bill_extension_index_line', {date: carbonize(entry.extension_date).isoFormat($monthAndDayFormat) }) }}- @endif- @endif- </td>- </tr>- @endforeach- {% for sum in sums[objectGroupOrder] %}- {% if '0' != sum.avg %}- <tr>- <td class="hidden-sm hidden-xs"> </td> <!-- handle -->- <td class="hidden-sm hidden-xs"> </td> <!-- buttons -->- <td colspan="2" class="text-end"> <!-- title -->- <small>{{ __('firefly.sum') }} ({{ sum.currency_name }}) ({{ 'active_exp_bills_only'|_ }})</small>- </td>- <td class="text-end"> <!-- amount -->- {!! format_amount_by_symbol(sum.avg, sum.currency_symbol, sum.currency_decimal_places) }}- </td>- <td> </td> <!-- paid in period -->- <td class="hidden-sm hidden-xs"> </td> <!-- next expected match -->- <td class="hidden-sm hidden-xs"> </td><!-- repeats -->- </tr>- @endif- {% if '0' != sum.total_left_to_pay %}- <tr>- <td class="hidden-sm hidden-xs"> </td> <!-- handle -->- <td class="hidden-sm hidden-xs"> </td> <!-- buttons -->- <td colspan="2" class="text-end"> <!-- title -->- <small>{{ __('firefly.sum') }} ({{ sum.currency_name }}) ({{ 'left_to_pay_active_bills'|_ }})</small>- </td>- <td class="text-end"> <!-- amount -->- {!! format_amount_by_symbol(sum.total_left_to_pay, sum.currency_symbol, sum.currency_decimal_places) }}- </td>- <td> </td> <!-- paid in period -->- <td class="hidden-sm hidden-xs"> </td> <!-- next expected match -->- <td class="hidden-sm hidden-xs"> </td><!-- repeats -->- </tr>- @endif- {% if '0' != sum.per_period %}- <tr>- <td class="hidden-sm hidden-xs"> </td> <!-- handle -->- <td class="hidden-sm hidden-xs"> </td> <!-- buttons -->- <td colspan="2" class="text-end"> <!-- title -->- <small>{{ ('per_period_sum_'~sum.period)|_ }} ({{ sum.currency_name }})- ({{ 'active_bills_only'|_ }})</small>- </td>- <td class="text-end"> <!-- amount -->- {!! format_amount_by_symbol(sum.per_period, sum.currency_symbol, sum.currency_decimal_places) }}- </td>- <td> </td> <!-- paid in period -->- <td class="hidden-sm hidden-xs"> </td> <!-- next expected match -->- <td class="hidden-sm hidden-xs"> </td><!-- repeats -->- </tr>- @endif- @endforeach- </tbody>- @endif- @endforeach- {% if totals|length > 0 %}- <tfoot>- <tr>- <td colspan="8" class="top-dark-border"></td>- </tr>- {% for sum in totals %}- {% if '0' != sum.avg %}- <tr>- <td class="hidden-sm hidden-xs"> </td> <!-- handle -->- <td class="hidden-sm hidden-xs"> </td> <!-- buttons -->- <td colspan="2" class="text-end"> <!-- title -->- <small>{{ __('firefly.sum') }} ({{ sum.currency_name }}) ({{ 'active_exp_bills_only_total'|_ }})</small>- </td>- <td class="text-end"> <!-- amount -->- {!! format_amount_by_symbol(sum.avg, sum.currency_symbol, sum.currency_decimal_places) }}- </td>- <td> </td> <!-- paid in period -->- <td class="hidden-sm hidden-xs"> </td> <!-- next expected match -->- <td class="hidden-sm hidden-xs"> </td><!-- repeats -->- </tr>- @endif- {% if '0' != sum.per_period %}- <tr>- <td class="hidden-sm hidden-xs"> </td> <!-- handle -->- <td class="hidden-sm hidden-xs"> </td> <!-- buttons -->- <td colspan="2" class="text-end"> <!-- title -->- <small>{{ ('per_period_sum_'~sum.period)|_ }} ({{ sum.currency_name }})- ({{ 'active_bills_only_total'|_ }})</small>- </td>- <td class="text-end"> <!-- amount -->- {!! format_amount_by_symbol(sum.per_period, sum.currency_symbol, sum.currency_decimal_places) }}- </td>- <td> </td> <!-- paid in period -->- <td class="hidden-sm hidden-xs"> </td> <!-- next expected match -->- <td class="hidden-sm hidden-xs"> </td><!-- repeats -->- </tr>- @endif- @endforeach- </tfoot>- @endif--</table>-<div class="pl-2">- {{ paginator.links('pagination.bootstrap-4')|raw }}-</div>diff --git a/resources/views/list/categories.blade.php b/resources/views/list/categories.blade.phpdeleted file mode 100644index ca3a14e16a..0000000000--- a/resources/views/list/categories.blade.php+++ /dev/null@@ -1,47 +0,0 @@-<div class="pl-3">- {{ categories.links('pagination.bootstrap-4')|raw }}-</div>-<table class="table table-hover sortable">- <thead>- <tr>- <th data-defaultsort="disabled"> </th>- <th data-defaultsign="az">{{ trans('list.name') }}</th>- <th data-defaultsign="month" class="hidden-sm hidden-xs">{{ trans('list.lastActivity') }}</th>- </tr>- </thead>- <tbody>- <tr>- <td> </td>- <td><a href="{{ route('categories.no-category') }}"><em>{{ 'without_category'|_ }}</em></a></td>- <td class="hidden-sm hidden-xs"> </td>- </tr>- @foreach($categories as $category)- <tr>- <td>- <div class="btn-group btn-group-sm">- <a href="{{ route('categories.edit', category.id) }}" class="btn btn-outline-secondary btn-xs"><span class="bi bi-pencil"></span></a>- <a href="{{ route('categories.delete', category.id) }}" class="btn btn-danger btn-xs"><span class="bi bi-trash"></span></a>- </div>- </td>- <td data-value="{{ category.name }}">- <a href="{{ route('categories.show', category.id) }}" title="{{ category.name }}">{{ category.name }}</a>- {% if category.attachments.count() > 0 %}- <span class="bi bi-paperclip"></span>- @endif- </td>- {% if category.lastActivity %}- <td class="hidden-sm hidden-xs" data-value="{{ category.lastActivity.format('Y-m-d H-i-s') }}">- {{ category.lastActivity.isoFormat($monthAndDayFormat) }}- </td>- @else- <td class="hidden-sm hidden-xs" data-value="0000-00-00 00-00-00">- <em>{{ 'never'|_ }}</em>- </td>- @endif- </tr>- @endforeach- </tbody>-</table>-<div class="pl-3">- {{ categories.links('pagination.bootstrap-4')|raw }}-</div>diff --git a/resources/views/list/groups-tiny.blade.php b/resources/views/list/groups-tiny.blade.phpdeleted file mode 100644index 71991205b9..0000000000--- a/resources/views/list/groups-tiny.blade.php+++ /dev/null@@ -1,89 +0,0 @@-<div class="list-group">- {% for transaction in transactions %}- <a class="list-group-item" href="{{ route('transactions.show', [transaction.transaction_group_id]) }}">- {% if transaction.transaction_group_title %}- {{ transaction.transaction_group_title }}:- @endif- {{ transaction.description }}-- <span class="text-end small">- {% if transaction.transaction_type_type == 'Deposit' %}- {!! 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) }})- @endif- {% if convertToPrimary and null != transaction.pc_amount %}- ({!! format_amount_by_symbol(transaction.pc_amount*-1, $primaryCurrency->symbol, foreign_currency_.decimal_places) }})- @endif-- {% elseif transaction.transaction_type_type == 'Transfer' %}- <span class="text-info money-transfer">- {{-- transfer away: --}}- {% if transaction.source_account_id == account.id %}- {!! 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) }})- @endif- {% if convertToPrimary and null != transaction.pc_amount %}- ({!! format_amount_by_symbol(transaction.pc_amount*-1, $primaryCurrency->symbol, foreign_currency_.decimal_places) }})- @endif- @else- {!! format_amount_by_symbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places, false) }}- {% if null != transaction.foreign_amount %}- ({!! 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) }})- @endif- @endif- {{-- transfer to --}}- </span>- {% 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) }}- {% if null != transaction.foreign_amount %}- ({!! 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) }})- @endif- @else- {!! format_amount_by_symbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}- {% if null != transaction.foreign_amount %}- ({!! format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})- @endif- {% if convertToPrimary and null != transaction.pc_amount %}- ({!! 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) }}- {% if null != transaction.foreign_amount %}- ({!! 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) }})- @endif- @else- {!! format_amount_by_symbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}- {% if null != transaction.foreign_amount %}- ({!! format_amount_by_symbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})- @endif- {% if convertToPrimary and null != transaction.pc_amount %}- ({!! format_amount_by_symbol(transaction.pc_amount, $primaryCurrency->symbol, foreign_currency_.decimal_places) }})- @endif- @endif- @else- {!! format_amount_by_symbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}- {% if null != transaction.foreign_amount %}- ({!! 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) }})- @endif- @endif- </span>- </a>- @endforeach-</div>diff --git a/resources/views/list/groups.blade.php b/resources/views/list/groups.blade.phpdeleted file mode 100644index aadcb0270e..0000000000--- a/resources/views/list/groups.blade.php+++ /dev/null@@ -1,465 +0,0 @@-<table class="table table-condensed table-hover table-responsive">- <thead>- <tr>- {% if showCategory or showBudget %}- <td colspan="7" class="no-margin-pagination">{{ groups.links('pagination.bootstrap-4')|raw }}</td>- {% else %}- <td colspan="6" class="no-margin-pagination">{{ groups.links('pagination.bootstrap-4')|raw }}</td>- {% endif %}- <td colspan="1" class="hidden-xs">- <!-- Single button -->- <div class="btn-group btn-group-xs action-menu pull-right hidden">- <button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"- aria-haspopup="true" aria-expanded="false">- {{ 'actions'|_ }}<span class="caret"></span>- </button>- <ul class="dropdown-menu dropdown-menu-right">- <li><a href="#" class="mass-edit"><span class="fa fa-fw fa-pencil"></span>- <span class="txt">{{ 'mass_edit'|_ }}</span></a></li>- <li><a href="#" class="bulk-edit"><span class="fa fa-fw fa-pencil-square-o"></span>- <span class="txt">{{ 'bulk_edit'|_ }}</span></a></li>- <li><a href="#" class="mass-delete"><span class="fa fa-fw fa-trash"></span>- <span class="txt">{{ 'mass_delete'|_ }}</span></a></li>- </ul>- </div>- </td>- <td colspan="1" class="hidden-xs">- <div class="pull-right">- <input id="list_ALL" value="1" name="select-all" type="checkbox" class="select-all form-check-inline"/>- </div>- </td>- </tr>- <tr>- <th class="hidden-xs"> </th>- <th>{{ trans('list.description') }}</th>- <th class="text-right">{{ trans('list.amount') }}</th>- {% if fireflyiiiconfig('use_running_balance', true) %}- <th class="text-right">{{ trans('list.running_balance') }}</th>- {% endif %}- <th>{{ trans('list.date') }}</th>- <th>{{ trans('list.source_account') }}</th>- <th>{{ trans('list.destination_account') }}</th>- {% if showCategory %}- <th class="hidden-xs">{{ trans('list.category') }}</th>- {% endif %}- {% if showBudget %}- <th class="hidden-xs">{{ trans('list.budget') }}</th>- {% endif %}- <th class="hidden-xs"> </th><!-- actions -->- <th class="hidden-xs"> </th><!-- checkbox -->- </tr>- </thead>- <tbody>- {% for group in groups %}- {% if group.count > 1 %}- <tr class="top-light-border">- <td colspan="2" class="top-light-border">- <small><strong>- <a href="{{ route('transactions.show', [group.id]) }}"- title="{{ group.title }}">{{ group.title }}</a>- </strong></small>- </td>- <td colspan="1" class="text-right top-light-border">- {% for sum in group.sums %}- {% if group.transaction_type == 'Deposit' %}- {{ formatAmountBySymbol(sum.amount*-1, sum.currency_symbol, sum.currency_decimal_places) }}- {% if convertToPrimary and 0 != sum.pc_amount %}- (~ {{ formatAmountBySymbol(sum.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})- {% endif %}- {% if loop.index != group.sums|length %},{% endif %}-- {% elseif group.transaction_type == 'Transfer' %}- <span class="text-info money-transfer">- {{ formatAmountBySymbol(sum.amount*-1, sum.currency_symbol, sum.currency_decimal_places, false) }}- {% if convertToPrimary and 0 != sum.pc_amount %}- (~ {{ formatAmountBySymbol(sum.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})- {% endif %}- {% if loop.index != group.sums|length %},{% endif %}- </span>- {% else %}- {{ formatAmountBySymbol(sum.amount, sum.currency_symbol, sum.currency_decimal_places) }}- {% if convertToPrimary and 0 != sum.pc_amount %}- (~ {{ formatAmountBySymbol(sum.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})- {% endif %}- {% if loop.index != group.sums|length %},{% endif %}- {% endif %}- {% endfor %}- </td>- <!-- column to span accounts + extra fields -->- {% if showCategory or showBudget %}- <td class="top-light-border" colspan="3"> </td>- {% else %}- <td class="top-light-border" colspan="2"> </td>- {% endif %}- <td class="top-light-border hidden-xs" colspan="2">- <div class="btn-group btn-group-xs pull-right">- <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"- aria-haspopup="true" aria-expanded="false">- {{ 'actions'|_ }} <span class="caret"></span></button>- <ul class="dropdown-menu dropdown-menu-right" role="menu">- <li><a href="{{ route('transactions.edit', [group.id]) }}"><span- class="fa fa-fw fa-pencil"></span> {{ 'edit'|_ }}</a></li>- <li><a href="{{ route('transactions.delete', [group.id]) }}"><span- class="fa fa-fw fa-trash"></span> {{ 'delete'|_ }}</a></li>- <li><a href="#" data-id="{{ group.id }}" class="clone-transaction"><span- class="fa fa-copy fa-fw"></span> {{ 'clone'|_ }}</a></li>- <li><a href="#" data-id="{{ group.id }}" class="clone-transaction-and-edit"><span- class="fa fa-copy fa-fw"></span> {{ 'clone_and_edit'|_ }}</a></li>- </ul>- </div>- </td>- <td class="top-light-border hidden-xs"> </td>- </tr>- {% endif %}- {% for index, transaction in group.transactions %}- {% set className="" %}- {% if group.transactions|length == loop.index and group.count > 1 %}- {% set className="bottom-light-border" %}- {% endif %}- <tr data-date="{{ transaction.date.format('Y-m-d') }}" data-count="{{ group.count }}"- data-id="{{ group.id }}">- <td class="hidden-xs {{ className }}">- {% if transaction.transaction_type_type == 'Withdrawal' %}- <span class="fa fa-long-arrow-left fa-fw"- title="{{ trans('firefly.Withdrawal') }}"></span>- {% endif %}-- {% if transaction.transaction_type_type == 'Deposit' %}- <span class="fa fa-long-arrow-right fa-fw"- title="{{ trans('firefly.Deposit') }}"></span>- {% endif %}-- {% if transaction.transaction_type_type == 'Transfer' %}- <span class="fa fa-exchange fa-fw" title="{{ trans('firefly.Transfer') }}"></span>- {% endif %}-- {% if transaction.transaction_type_type == 'Reconciliation' %}- <span class="fa-fw fa fa-calculator"- title="{{ trans('firefly.reconciliation_transaction') }}"></span>- {% endif %}- {% if transaction.transaction_type_type == 'Opening balance' %}- <span class="fa-fw fa fa-star-o"- title="{{ trans('firefly.Opening balance') }}"></span>- {% endif %}- {% if transaction.transaction_type_type == 'Liability credit' %}- <span class="fa-fw fa fa-star-o"- title="{{ trans('firefly.Liability credit') }}"></span>- {% endif %}-- </td>- <td class="{{ className }}">- {% if transaction.reconciled %}- <span class="fa fa-check"></span>- {% endif %}- {% if transaction.attachments|length > 0 %}- <span class="fa fa-paperclip"></span>- {% endif %}- {% if group.count == 1 %}- <a href="{{ route('transactions.show', [group.id]) }}" title="{{ transaction.description }}">- {% endif %}- {{ transaction.description }}- {% if group.count == 1 %}- </a>- {% endif %}- </td>- <td class="{{ className }} text-right">-- {# deposit #}- {% if transaction.transaction_type_type == 'Deposit' %}- {# amount of deposit #}- {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }}- {# foreign amount of deposit #}- {% if null != transaction.foreign_amount %}- ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})- {% endif %}- {# primary currency amount of deposit #}- {% if convertToPrimary and 0 != transaction.pc_amount %}- (~ {{ formatAmountBySymbol(transaction.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})- {% endif %}- {# transfer #}- {% elseif transaction.transaction_type_type == 'Transfer' %}- <span class="text-info money-transfer">- {# amount of transfer #}- {% if transaction.source_account_id == account.id %}- {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places, false) }}- {% endif %}- {% if transaction.source_account_id != account.id %}- {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places, false) }}- {% endif %}-- {# foreign amount of transfer #}- {% if null != transaction.foreign_amount and transaction.source_account_id == account.id %}- ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }})- {% endif %}- {% if null != transaction.foreign_amount and transaction.source_account_id != account.id %}- ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }})- {% endif %}-- {# primary currency amount of transfer #}- {% if convertToPrimary and 0 != transaction.pc_amount %}- (~ {{ formatAmountBySymbol(transaction.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})- {% endif %}- </span>- {# opening balance #}- {% elseif transaction.transaction_type_type == 'Opening balance' %}- {% if transaction.source_account_type == 'Initial balance account' %}- {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }}- {% if null != transaction.foreign_amount %}- ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})- {% endif %}- {% if convertToPrimary and 0 != transaction.pc_amount %}- (~ {{ formatAmountBySymbol(transaction.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})- {% endif %}- {% else %}- {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}- {% if null != transaction.foreign_amount %}- ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})- {% endif %}- {% if convertToPrimary and 0 != transaction.pc_amount %}- (~ {{ formatAmountBySymbol(transaction.pc_amount, primaryCurrency.symbol, primaryCurrency.decimal_places) }})- {% endif %}- {% endif %}- {# reconciliation #}- {% elseif transaction.transaction_type_type == 'Reconciliation' %}- {% if transaction.source_account_type == 'Reconciliation account' %}- {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }}- {% if null != transaction.foreign_amount %}- ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})- {% endif %}- {% if convertToPrimary and 0 != transaction.pc_amount %}- (~ {{ formatAmountBySymbol(transaction.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})- {% endif %}- {% else %}- {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}- {% if null != transaction.foreign_amount %}- ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})- {% endif %}- {% if convertToPrimary and 0 != transaction.pc_amount %}- (~ {{ formatAmountBySymbol(transaction.pc_amount, primaryCurrency.symbol, primaryCurrency.decimal_places) }})- {% endif %}- {% endif %}- {# liability credit #}- {% elseif transaction.transaction_type_type == 'Liability credit' %}- {% if transaction.source_account_type == 'Liability credit' %}- {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}- {% if null != transaction.foreign_amount %}- ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})- {% endif %}- {% if convertToPrimary and 0 != transaction.pc_amount %}- (~ {{ formatAmountBySymbol(transaction.pc_amount, primaryCurrency.symbol, primaryCurrency.decimal_places) }})- {% endif %}- {% else %}- {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places) }}- {% if null != transaction.foreign_amount %}- ({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})- {% endif %}- {% if convertToPrimary and 0 != transaction.pc_amount %}- (~ {{ formatAmountBySymbol(transaction.pc_amount*-1, primaryCurrency.symbol, primaryCurrency.decimal_places) }})- {% endif %}- {% endif %}--- {# THE REST #}- {% else %}- {# amount of withdrawal #}- {{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places) }}-- {# foreign amount of withdrawal #}- {% if null != transaction.foreign_amount %}- ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }})- {% endif %}- {# primary currency amount of withdrawal, if not in foreign currency #}- {% if convertToPrimary and 0 != transaction.pc_amount and primaryCurrency.id != transaction.foreign_currency_id %}- (~ {{ formatAmountBySymbol(transaction.pc_amount, primaryCurrency.symbol, primaryCurrency.decimal_places) }})- {% endif %}- {% endif %}- </td>- {% if (fireflyiiiconfig('use_running_balance', true)) %}- <td class=" {{ className }} text-right">- {# RUNNING BALANCE #}- {% if (null == transaction.balance_dirty or false == transaction.balance_dirty) and null != transaction.destination_balance_after and null != transaction.source_balance_after %}- {% if transaction.transaction_type_type == 'Deposit' %}- {% if transaction.source_account_id == account.id %}- <span title="Deposit, source">{{ formatAmountBySymbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>- {% else %}- {% if transaction.source_account_type == 'Revenue account' %}- <span title="Deposit from revenue">{{ formatAmountBySymbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>- {% else %}- {# #}- <span title="Deposit from liab">{{ formatAmountBySymbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>- {% endif %}- {# if this is a deposit from revenue account, use the destination account currency? For #12043 and #12169 #}- {# otherwise, keep at source account #}- {# changed from normal currency_symbol to foreign_currency_symbol for #12043 #}-- {% endif %}-- {% elseif transaction.transaction_type_type == 'Withdrawal' %}- {# withdrawal into a liability #}- {% if 'Loan' == transaction.destination_account_type or 'Mortgage' == transaction.destination_account_type or 'Debt' == transaction.destination_account_type %}- {% if currency.id == transaction.currency_id %}- {% if account.id == transaction.source_account_id %}- <span title="Withdrawal, liab, source">{{ formatAmountBySymbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>- {% elseif account.id == transaction.destination_account_id %}- <span title="Withdrawal, liab, dest">{{ formatAmountBySymbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>- {% else %}- -- {% endif %}- {% endif %}- {% if currency.id == transaction.foreign_currency_id and null != transaction.destination_balance_after and null != transaction.destination_balance_after %}- <span title="Withdrawal, liab, dest 2">{{ formatAmountBySymbol(transaction.destination_balance_after, transaction.foreign_currency_symbol ?? transaction.currency_symbol, transaction.foreign_currency_decimal_places ?? transaction.currency_decimal_places) }}</span>- {% endif %}- {# withdrawal into an expense account #}- {% else %}- {% if account.id == transaction.source_account_id %}- <span title="Withdrawal, source">{{ formatAmountBySymbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>- {% elseif account.id == transaction.destination_account_id %}- <span title="Withdrawal, dest">{{ formatAmountBySymbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>- {% else %}- -- {% endif %}- {% endif %}- {% elseif transaction.transaction_type_type == 'Opening balance' %}- {% if account.id == transaction.source_account_id %}- <span title="Opening balance, src">{{ formatAmountBySymbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>- {% elseif account.id == transaction.destination_account_id %}- <span title="Opening balance, dest">{{ formatAmountBySymbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>- {% else %}- -- {% endif %}- {% elseif transaction.transaction_type_type == 'Transfer' %}- {% if account.id == transaction.source_account_id %}- <span title="Transfer, source">{{ formatAmountBySymbol(transaction.source_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>- {% else %}- {% if null == transaction.foreign_currency_id %}- <span title="Transfer, dest, normal currency">{{ formatAmountBySymbol(transaction.destination_balance_after, transaction.currency_symbol, transaction.currency_decimal_places) }}</span>- {% endif %}- {% if null != transaction.foreign_currency_id %}- <span title="Transfer, dest, foreign currency">{{ formatAmountBySymbol(transaction.destination_balance_after, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places) }}</span>- {% endif %}- {% endif %}- {% else %}- - {% endif %}- {% endif %}- </td>- {% endif %}- <td class="{{ className }}">- {{ transaction.date.isoFormat(monthAndDayFormat) }}- </td>- <td class="{{ className }}">- {% if 'Cash account' == transaction.source_account_type %}- <span class="text-success">({{ 'cash'|_ }})</span>- {% else %}- <a href="{{ route('accounts.show', [transaction.source_account_id|default(1)]) }}"- title="{{ transaction.source_account_iban|default(transaction.source_account_name) }}">{{ transaction.source_account_name }}</a>- {% endif %}- </td>- <td class="{{ className }}">- {% if 'Cash account' == transaction.destination_account_type %}- <span class="text-success">({{ 'cash'|_ }})</span>- {% else %}- <a href="{{ route('accounts.show', [transaction.destination_account_id|default(1)]) }}"- title="{{ transaction.destination_account_iban|default(transaction.destination_account_name) }}">{{ transaction.destination_account_name }}</a>- {% endif %}- </td>- {% if showCategory %}- <td class="hidden-xs {{ className }}">- {% if transaction.category_id %}- <a href="{{ route('categories.show', [transaction.category_id]) }}"- title="{{ transaction.category_name }}">{{ transaction.category_name }}</a>- {% endif %}- </td>- {% endif %}- {% if showBudget %}- <td class="hidden-xs {{ className }}">- {% if transaction.budget_id %}- <a href="{{ route('budgets.show', [transaction.budget_id]) }}"- title="{{ transaction.budget_name }}">{{ transaction.budget_name }}</a>- {% endif %}- </td>- {% endif %}-- {% if group.count == 1 %}- <td class="hidden-xs {{ className }}">- <div class="btn-group btn-group-xs pull-right">- <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"- aria-haspopup="true" aria-expanded="false">- {{ 'actions'|_ }} <span class="caret"></span></button>- <ul class="dropdown-menu dropdown-menu-right" role="menu">- <li><a href="{{ route('transactions.edit', [group.id]) }}"><span- class="fa fa-fw fa-pencil"></span> {{ 'edit'|_ }}</a></li>- {% if transaction.transaction_type_type != 'Opening balance' and transaction.transaction_type_type != 'Liability credit' %}- <li><a href="{{ route('transactions.delete', [group.id]) }}"><span- class="fa fa-fw fa-trash"></span> {{ 'delete'|_ }}</a></li>- {% endif %}- {% if transaction.transaction_type_type != 'Reconciliation' and transaction.transaction_type_type != 'Opening balance' and transaction.transaction_type_type != 'Liability credit' %}- <li><a href="#" data-id="{{ group.id }}" class="clone-transaction"><span- class="fa fa-copy fa-fw"></span> {{ 'clone'|_ }}</a></li>- <li><a href="#" data-id="{{ group.id }}" class="clone-transaction-and-edit"><span- class="fa fa-copy fa-fw"></span> {{ 'clone_and_edit'|_ }}</a></li>- <li>- <a href="{{ route('rules.create-from-journal', [transaction.transaction_journal_id]) }}"><span- class="fa fa-fw fa-random"></span> {{ 'create_rule_from_transaction'|_ }}- </a></li>- {% endif %}- </ul>- </div>- </td>-- {% endif %}- {% if group.count != 1 %}- <td class="hidden-xs {{ className }}">- - </td>- {% endif %}- <td class="hidden-xs {{ className }}">- {% if transaction.transaction_type_type != 'Reconciliation' and transaction.transaction_type_type != 'Opening balance' and transaction.transaction_type_type != 'Liability credit' %}- <div class="pull-right">- <input id="list_{{ transaction.transaction_journal_id }}"- value="{{ transaction.transaction_journal_id }}"- name="journals[{{ transaction.transaction_journal_id }}]"- type="checkbox" class="mass-select form-check-inline"- data-value="{{ transaction.transaction_journal_id }}"/>- {% endif %}- </div>- </td>- </tr>- {% endfor %}- {% endfor %}- </tbody>- <tfoot>- <tr>- <td colspan="8">- <div class="pull-right">- <!-- Single button -->- <div class="btn-group action-menu btn-group-xs pull-right hidden">- <button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"- aria-haspopup="true" aria-expanded="false">- {{ 'actions'|_ }} <span class="caret"></span>- </button>- <ul class="dropdown-menu btn-group-xs dropdown-menu-right">- <li><a href="#" class="mass-edit"><span class="fa fa-fw fa-pencil"></span>- <span>{{ 'mass_edit'|_ }}</span></a></li>- <li><a href="#" class="bulk-edit"><span class="fa fa-fw fa-pencil-square-o"></span>- <span>{{ 'bulk_edit'|_ }}</span></a></li>- <li><a href="#" class="mass-delete"><span class="fa fa-fw fa-trash"></span>- <span>{{ 'mass_delete'|_ }}</span></a></li>- </ul>- </div>- </div>- </td>- </tr>- <tr>- {% if showCategory or showBudget %}- <td colspan="9" class="no-margin-pagination">{{ groups.links('pagination.bootstrap-4')|raw }}</td>- {% else %}- <td colspan="8" class="no-margin-pagination">{{ groups.links('pagination.bootstrap-4')|raw }}</td>- {% endif %}- </tr>- </tfoot>-</table>-<script type="text/javascript" nonce="{{ JS_NONCE }}">- var cloneGroupUrl = '{{ route('transactions.clone') }}';- var cloneAndEditUrl = '{{ route('transactions.clone') }}?redirect=edit';-</script>diff --git a/resources/views/list/journals-array-tiny.blade.php b/resources/views/list/journals-array-tiny.blade.phpdeleted file mode 100644index 035e72d210..0000000000--- a/resources/views/list/journals-array-tiny.blade.php+++ /dev/null@@ -1,12 +0,0 @@-<div class="list-group">- {% for group in groups %}- {% for transaction in group.transactions %}- <a class="list-group-item" href="{{ route('transactions.show', [transaction.transaction_group_id]) }}">- {{ transaction.description }}- <span class="text-end small">- X- </span>- </a>- @endforeach- @endforeach-</div>diff --git a/resources/views/list/periods.blade.php b/resources/views/list/periods.blade.phpdeleted file mode 100644index eee0a29cd1..0000000000--- a/resources/views/list/periods.blade.php+++ /dev/null@@ -1,95 +0,0 @@-{% for period in periods %}- <div class="card mb-2">- <div class="card-header">- <h3 class="card-title"><a href="{{ period.route }}">{{ period.title }}</a>- </h3>- </div>- <div class="card-body p-0">- <table class="table table-hover">- {% if period.total_transactions > 0 %}- <tr>- <td class="third">{{ __('firefly.transactions') }}</td>- <td class="text-end">{{ period.total_transactions }}</td>- </tr>- @endif- {% for entry in period.spent %}- {% if entry.amount != 0 %}- <tr>- <td class="third">{{ __('firefly.spent') }}</td>- <td class="text-end">- <span title="{{ entry.count }}">- {!! format_amount_by_symbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places) }}- </span>- </td>- </tr>- @endif- @endforeach-- {% for entry in period.earned %}- {% if entry.amount != 0 %}- <tr>- <td class="third">{{ __('firefly.earned') }}</td>- <td class="text-end">- <span title="{{ entry.count }}">- {% if entry.amount < 0 %}- {!! format_amount_by_symbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}- @else- {!! format_amount_by_symbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places) }}- @endif- </span>- </td>- </tr>- @endif- @endforeach-- {% for entry in period.transferred %}- {% if entry.amount != 0 %}- <tr>- <td class="third">{{ 'transferred'|_ }}</td>- <td class="text-end">- <span title="{{ entry.count }}">- {!! format_amount_by_symbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}- </span>- </td>- </tr>- @endif- @endforeach-- {% for entry in period.transferred_away %}- {% if entry.amount != 0 %}- <tr>- <td class="third">{{ 'transferred_away'|_ }}</td>- <td class="text-end">- <span title="{{ entry.count }}">- {% if entry.amount < 0 %}- {!! format_amount_by_symbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places) }}- @else- {!! format_amount_by_symbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}- @endif- </span>- </td>- </tr>- @endif- @endforeach-- {% for entry in period.transferred_in %}- {% if entry.amount != 0 %}- <tr>- <td class="third">{{ 'transferred_in'|_ }}</td>- <td class="text-end">- <span title="{{ entry.count }}">- {% if entry.amount < 0 %}- {!! format_amount_by_symbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}- @else- {!! format_amount_by_symbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places) }}- @endif- </span>- </td>- </tr>- @endif- @endforeach- </table>- </div>- </div>--@endforeachdiff --git a/resources/views/list/piggy-bank-events.blade.php b/resources/views/list/piggy-bank-events.blade.phpdeleted file mode 100644index 6bdce6f35f..0000000000--- a/resources/views/list/piggy-bank-events.blade.php+++ /dev/null@@ -1,34 +0,0 @@-<table class="table table-hover table-responsive">- <tr>- {% if showPiggyBank %}- <th>{{ trans('list.piggy_bank') }}</th>- @endif- <th>{{ trans('list.date') }}</th>- <th>{{ trans('list.amount') }}</th>- </tr>- {% for event in events %}- <tr>- {% if showPiggyBank %}- <td>- <a href="{{ route('piggy-banks.show',event.piggyBank.id) }}">{{ event.piggyBank.name }}</a>- </td>- @endif- <td>- {% if event.transaction_journal_id %}- <a href="{{ route('transactions.show',event.transactionJournal.transaction_group_id) }}"- title="{{ event.transactionJournal.description }}">{{ event.date.isoFormat($monthAndDayFormat) }}</a>- @else- {{ event.date.isoFormat($monthAndDayFormat) }}- @endif- </td>-- <td class="text-end">- {% if event.amount < 0 %}- <span class="text-danger money-negative">{{ trans('firefly.removed_amount', {amount: format_amount_by_symbol(event.amount,event.piggyBank.transactionCurrency.symbol, event.piggyBank.transactionCurrency.decimal_places, false)})|raw }}</span>- @else- <span class="text-success money-positive">{{ trans('firefly.added_amount', {amount: format_amount_by_symbol(event.amount, event.piggyBank.transactionCurrency.symbol, event.piggyBank.transactionCurrency.decimal_places, false)})|raw }}</span>- @endif- </td>- </tr>- @endforeach-</table>diff --git a/resources/views/list/piggy-banks.blade.php b/resources/views/list/piggy-banks.blade.phpdeleted file mode 100644index 9de8db4fba..0000000000--- a/resources/views/list/piggy-banks.blade.php+++ /dev/null@@ -1,148 +0,0 @@-<table class="table table-hover table-sm" id="piggy-sortable">- <thead>- <tr>- <th colspan="2"> </th>- <th>{{ 'piggy_bank'|_ }}</th>- <th class="text-end">{{ 'saved_so_far'|_ }}</th>- <th colspan="3" class="hidden-sm hidden-xs"> </th>- <th class="text-end hidden-sm hidden-xs">{{ 'target_amount'|_ }}</th>- <th class="text-end hidden-sm hidden-xs">{{ 'left_to_save'|_ }}</th>- <th class="text-end hidden-sm hidden-xs">{{ 'suggested_savings_per_month'|_ }}</th>- </tr>- </thead>-- {% for objectGroupOrder, objectGroup in piggyBanks %}- {% if objectGroup.piggy_banks|length > 0 %}- <tbody class="piggy-connected-list" {% if objectGroupOrder != 0 %}data-title="{{ objectGroup.object_group_title }}"@elsedata-title=""@endif>- <tr>- <td colspan="2"> </td>- <td colspan="8"><small>{{ objectGroup.object_group_title }}</small></td>- </tr>- {% for piggy in objectGroup.piggy_banks %}- <tr class="piggy-sortable" data-id="{{ piggy.id }}" data-name="{{ piggy.name }}" data-order="{{ piggy.order }}">- <td class="visible-xs visible-sm hidden-md hidden-lg">- - </td>- <td class="visible-xs visible-sm hidden-md hidden-lg">- <div class="btn-group btn-group-sm">- <a href="{{ route('piggy-banks.remove-money-mobile', piggy.id) }}" class="btn btn-outline-secondary btn-xs"><span class="fa fa-minus"></span></a>- <a href="{{ route('piggy-banks.add-money-mobile', piggy.id) }}" class="btn btn-outline-secondary btn-xs"><span class="bi bi-plus-circle"></span></a>- </div>- </td>- <td class="hidden-sm hidden-xs sixty-px">- <span class="fa fa-bars piggy-handle"></span>- <span class="loadSpin"></span>- </td>- <td class="hidden-sm hidden-xs hundred-px">- <div class="btn-group btn-group-sm">- <a href="{{ route('piggy-banks.edit', piggy.id) }}" class="btn btn-outline-secondary btn-xs"><span class="bi bi-pencil"></span></a>- <a href="{{ route('piggy-banks.delete', piggy.id) }}" class="btn btn-danger btn-xs"><span class="bi bi-trash"></span></a>- </div>- </td>- <td>- <a href="{{ route('piggy-banks.show', piggy.id) }}" title="{{ piggy.account_name }}">{{ piggy.name }}</a>- {% if piggy.attachments.count() > 0 %}- <span class="bi bi-paperclip"></span>- @endif- </td>- <td class="text-end piggySaved">- <span title="Saved so far" class="text-end">- {!! 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) }})- @endif- </span>- </td>- <td class="hidden-sm hidden-xs text-end forty-px">- {% if piggy.current_amount > 0 %}- <a href="{{ route('piggy-banks.remove-money', piggy.id) }}" class="btn btn-outline-secondary btn-xs removeMoney" data-id="{{ piggy.id }}">- <span data-id="{{ piggy.id }}" class="fa fa-minus"></span></a>- @endif- </td>-- <td class="hidden-sm hidden-xs piggyBar">- {% if null != piggy.percentage %}- <div class="progress progress mb-0">- <div- {% if piggy.percentage == 100 %}- class="progress-bar progress-bar-success width-{{ max(30, piggy.percentage)|round }}"- {% elseif piggy.percentage == 0 %}- class="progress-bar progress-bar-warning width-{{ max(30, piggy.percentage)|round }}"- @else- class="progress-bar progress-bar-info width-{{ max(30, piggy.percentage)|round }}"- @endif- role="progressbar" aria-valuenow="{{ piggy.percentage }}" aria-valuemin="0" aria-valuemax="100">- {{ piggy.percentage }}%- </div>- </div>- @endif- </td>--- <td class="hidden-sm hidden-xs forty-px">-- {% if piggy.left_to_save > 0 or null == piggy.left_to_save %}- <a href="{{ route('piggy-banks.add-money', piggy.id) }}" class="btn btn-outline-secondary btn-xs addMoney" data-id="{{ piggy.id }}">- <span data-id="{{ piggy.id }}" class="bi bi-plus-circle"></span></a>- @endif- </td>- <td class="hidden-sm hidden-xs text-end">- {% if null != piggy.target_amount and 0 != piggy.target_amount %}- <span title="{{ 'target_amount'|_ }}">{!! format_amount_by_symbol(piggy.target_amount,piggy.currency_symbol,piggy.currency_decimal_places) }}</span>- {% if convertToPrimary and piggy.currency_id != $primaryCurrency->id and null != piggy.pc_target_amount %}- (<span title="{{ 'target_amount'|_ }}">{!! format_amount_by_symbol(piggy.pc_target_amount,$primaryCurrency->symbol, $primaryCurrency->decimal_places) }}</span>)- @endif- @endif- </td>- <td class="hidden-sm hidden-xs text-end">- {% if piggy.left_to_save > 0 %}- <span title="{{ 'left_to_save'|_ }}">{!! format_amount_by_symbol(piggy.left_to_save,piggy.currency_symbol,piggy.currency_decimal_places) }}</span>- {% if convertToPrimary and piggy.currency_id != $primaryCurrency->id and null != piggy.pc_left_to_save %}- (<span title="{{ 'left_to_save'|_ }}">{!! format_amount_by_symbol(piggy.pc_left_to_save, $primaryCurrency->symbol,$primaryCurrency->decimal_places) }}</span>)- @endif- @endif- </td>- <td class="hidden-sm hidden-xs text-end">- {% if piggy.target_date and piggy.save_per_month %}- {!! 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) }})- @endif- @endif- </td>- </tr>- @endforeach- <tr>- <td class="visible-xs visible-sm hidden-md hidden-lg"> </td>- <td class="visible-xs visible-sm hidden-md hidden-lg"> </td>- <td class="hidden-sm hidden-xs"> </td> {{-- handle --}}- <td class="hidden-sm hidden-xs"> </td> {{-- buttons --}}- <td> </td>- <td class="text-end">- {% for sum in objectGroup.sums %}- {!! format_amount_by_symbol(sum.saved, sum.currency_symbol, sum.currency_decimal_places) }}<br />- @endforeach- </td>- <td class="hidden-sm hidden-xs"> </td> {{-- remove money --}}- <td class="hidden-sm hidden-xs"> </td> {{-- progress--}}- <td class="hidden-sm hidden-xs"> </td> {{-- add money --}}- <td class="text-end hidden-sm hidden-xs">- {% for sum in objectGroup.sums %}- {!! format_amount_by_symbol(sum.target, sum.currency_symbol, sum.currency_decimal_places) }}<br />- @endforeach- </td>- <td class="text-end hidden-sm hidden-xs">- {% for sum in objectGroup.sums %}- {!! format_amount_by_symbol(sum.left_to_save, sum.currency_symbol, sum.currency_decimal_places) }}<br />- @endforeach- </td>- <td class="text-end hidden-sm hidden-xs">- {% for sum in objectGroup.sums %}- {!! format_amount_by_symbol(sum.save_per_month, sum.currency_symbol, sum.currency_decimal_places) }}<br />- @endforeach- </td>- </tr>- </tbody>- @endif- @endforeach-</table>