mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-06-11 19:21:33 +00:00
34 lines
754 B
PHP
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');
|
|
}
|
|
|
|
|
|
}
|