Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
new view
Sander Dorigo4f3c6375284f
diff --git a/app/Http/Controllers/Transaction/IndexController.php b/app/Http/Controllers/Transaction/IndexController.phpindex e09f0d3025..f6fd768f30 100644--- a/app/Http/Controllers/Transaction/IndexController.php+++ b/app/Http/Controllers/Transaction/IndexController.php@@ -111,7 +111,6 @@ final class IndexController extends Controller}$periods = $this->getTransactionPeriodOverview($objectType, $startPeriod, $endPeriod);-/** @var GroupCollectorInterface $collector */$collector = app(GroupCollectorInterface::class);diff --git a/resources/views/components/layout/sidebar.blade.php b/resources/views/components/layout/sidebar.blade.phpindex ce230b8217..2133ef6d24 100644--- a/resources/views/components/layout/sidebar.blade.php+++ b/resources/views/components/layout/sidebar.blade.php@@ -71,7 +71,7 @@</a></li><li class="nav-item">- <a href="{{ route('transactions.index', ['withdrawal']) }}" class="nav-link">+ <a href="{{ route('transactions.index', ['deposit']) }}" class="nav-link"><em class="nav-icon bi bi-arrow-right"></em><p>{{ __('firefly.income') }}</p></a>diff --git a/resources/views/components/lists/periods.blade.php b/resources/views/components/lists/periods.blade.phpindex 0f632134ed..8a38fd9fa3 100644--- a/resources/views/components/lists/periods.blade.php+++ b/resources/views/components/lists/periods.blade.php@@ -7,29 +7,29 @@<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-right">{{ $period['total_transactions'] }}</td>- </tr>- @endif- @foreach($period['spent'] as $entry)- @if(($entry['amount'] ?? 0) !== 0)- <tr>- <td class="third">{{ __('firefly.spent') }}</td>- <td class="text-right">- <span title="Count: {{ $entry['count'] }}">- {!! formatAmountBySymbol($entry['amount'], $entry['currency_symbol'], $entry['currency_decimal_places']) !!}- </span>- </td>- </tr>+ <tr>+ <td class="third">{{ __('firefly.transactions') }}</td>+ <td class="text-right">{{ $period['total_transactions'] }}</td>+ </tr>@endif+ @foreach($period['spent'] ?? [] as $entry)+ @if(($entry['amount'] ?? 0) !== 0)+ <tr>+ <td class="third">{{ __('firefly.spent') }}</td>+ <td class="text-right">+ <span title="Count: {{ $entry['count'] }}">+ {!! formatAmountBySymbol($entry['amount'], $entry['currency_symbol'], $entry['currency_decimal_places']) !!}+ </span>+ </td>+ </tr>+ @endif@endforeach-- @foreach($period['earned'] ?? [] as $entry)+ @if(array_key_exists('earned', $entry))+ @foreach($period['earned'] as $entry)@if($entry['amount'] !== 0)- <tr>- <td class="third">{{ __('firefly.earned') }}</td>- <td class="text-right">+ <tr>+ <td class="third">{{ __('firefly.earned') }}</td>+ <td class="text-right"><span title="Count: {{ $entry['count'] }}">@if($entry['amount'] < 0){!! formatAmountBySymbol($entry['amount']*-1, $entry['currency_symbol'], $entry['currency_decimal_places']) !!}@@ -37,11 +37,11 @@{!! formatAmountBySymbol($entry['amount'], $entry['currency_symbol'], $entry['currency_decimal_places']) !!}@endif</span>- </td>- </tr>+ </td>+ </tr>+ @endif+ @endforeach@endif- @endforeach-@foreach($period['transferred'] ?? [] as $entry)@if($entry['amount'] !== 0)<tr>