Files
firefly-iii/app/View/Components/Lists/GroupsLarge.php
T

35 lines
769 B
PHP
Raw 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;
public ?Account $account;
2026-06-13 15:09:11 +02:00
/**
* Create a new component instance.
*/
public function __construct(LengthAwarePaginator $groups, ?Account $account = null)
2026-06-13 15:09:11 +02:00
{
$this->groups = $groups;
2026-06-15 19:49:48 +02:00
$this->account = $account;
2026-06-13 15:09:11 +02:00
}
/**
* Get the view / contents that represent the component.
*/
public function render(): Closure|string|View
2026-06-13 15:09:11 +02:00
{
return view('components.lists.groups-large');
}
}