Files

34 lines
746 B
PHP
Raw Permalink Normal View History

2026-06-10 14:19:21 +02:00
<?php
declare(strict_types=1);
2026-06-12 06:01:28 +02:00
namespace FireflyIII\View\Components\Lists;
2026-06-10 14:19:21 +02:00
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\View\Component;
class Accounts extends Component
{
2026-06-10 20:37:05 +02:00
public LengthAwarePaginator $accounts;
2026-06-10 14:19:21 +02:00
public string $objectType = '';
2026-06-12 06:01:28 +02:00
2026-06-10 14:19:21 +02:00
/**
* Create a new component instance.
*/
2026-06-10 20:37:05 +02:00
public function __construct(LengthAwarePaginator $accounts, string $objectType)
2026-06-10 14:19:21 +02:00
{
$this->accounts = $accounts;
2026-06-10 20:37:05 +02:00
$this->objectType = $objectType;
2026-06-10 14:19:21 +02:00
}
/**
* Get the view / contents that represent the component.
*/
public function render(): Closure|string|View
2026-06-10 14:19:21 +02:00
{
return view('components.lists.accounts');
}
}