mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-07-27 16:07:45 -07:00
Should fix missing var.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user