Skip to content

Firefly III: a personal finances manager

Should fix missing var.

James Cole5ef06abc51fc
diff --git a/app/View/Components/Lists/Subscriptions.php b/app/View/Components/Lists/Subscriptions.php
index dc86f01242..8c1ce8ea9e 100644
--- a/app/View/Components/Lists/Subscriptions.php
+++ b/app/View/Components/Lists/Subscriptions.php
@@ -4,6 +4,7 @@ declare(strict_types=1);
namespace FireflyIII\View\Components\Lists;
+use Carbon\Carbon;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
@@ -13,15 +14,17 @@ class Subscriptions extends Component
public array $bills;
public array $sums;
public array $totals;
+ public Carbon $today;
/**
* Create a new component instance.
*/
- public function __construct(array $bills, array $sums, array $totals)
+ public function __construct(array $bills, array $sums, array $totals, Carbon $today)
{
$this->bills = $bills;
$this->sums = $sums;
$this->totals = $totals;
+ $this->today = $today;
}
/**
diff --git a/resources/views/bills/index.blade.php b/resources/views/bills/index.blade.php
index 9f195cffb2..e995d4af54 100644
--- a/resources/views/bills/index.blade.php
+++ b/resources/views/bills/index.blade.php
@@ -7,11 +7,8 @@
<x-empty-page :route="route('subscriptions.create')" type="bills" object-type="default" />
@endif
@if($total > 0)
-
-
- <x-lists.subscriptions :bills="$bills" :sums="$sums" :totals="$totals" />
-
-@endif
+ <x-lists.subscriptions :bills="$bills" :sums="$sums" :totals="$totals" :today="$today" />
+ @endif
@endsection
@section('scripts')
@vite(['js/pages/generic.js'])