Files
firefly-iii/app/View/Components/Lists/Accounts.php
2026-06-10 20:37:05 +02:00

34 lines
754 B
PHP

<?php
namespace FireflyIII\View\Components\lists;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Support\Collection;
use Illuminate\View\Component;
class Accounts extends Component
{
public LengthAwarePaginator $accounts;
public string $objectType = '';
/**
* Create a new component instance.
*/
public function __construct(LengthAwarePaginator $accounts, string $objectType)
{
$this->accounts = $accounts;
$this->objectType = $objectType;
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
return view('components.lists.accounts');
}
}