Files

39 lines
1.0 KiB
PHP
Raw Permalink Normal View History

2026-06-13 15:09:11 +02:00
<?php
declare(strict_types=1);
2026-06-13 15:09:11 +02:00
namespace FireflyIII\View\Components\Lists;
use Closure;
2026-06-15 19:49:48 +02:00
use FireflyIII\Models\Account;
2026-06-13 15:09:11 +02:00
use Illuminate\Contracts\View\View;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\View\Component;
class GroupsLarge extends Component
{
public LengthAwarePaginator $groups;
2026-06-29 06:56:39 +02:00
public ?Account $account;
public bool $showCategory;
public bool $showBudget;
2026-06-13 15:09:11 +02:00
/**
* Create a new component instance.
*/
2026-06-29 06:56:39 +02:00
public function __construct(LengthAwarePaginator $groups, ?bool $showCategory, ?bool $showBudget, ?Account $account = null)
2026-06-13 15:09:11 +02:00
{
2026-06-29 06:56:39 +02:00
$this->groups = $groups;
$this->account = $account;
$this->showCategory = $showCategory ??false;
$this->showBudget = $showBudget ?? false;
2026-06-13 15:09:11 +02:00
}
/**
* Get the view / contents that represent the component.
*/
2026-06-29 06:56:39 +02:00
public function render(): Closure | string | View
2026-06-13 15:09:11 +02:00
{
return view('components.lists.groups-large');
}
}