Should fix missing var.

This commit is contained in:
James Cole
2026-07-10 21:36:04 +02:00
parent 9cf53d7937
commit 5ef06abc51
2 changed files with 6 additions and 6 deletions
+4 -1
View File
@@ -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;
}
/**
+2 -5
View File
@@ -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'])