Files
firefly-iii/app/View/Components/Elements/TransactionRunningBalance.php
T

51 lines
1.2 KiB
PHP
Raw Normal View History

2026-06-16 14:37:42 +02:00
<?php
declare(strict_types=1);
2026-06-16 14:37:42 +02:00
namespace FireflyIII\View\Components\Elements;
use Closure;
2026-06-19 05:11:37 +02:00
use FireflyIII\Models\Account;
2026-06-16 14:37:42 +02:00
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
class TransactionRunningBalance extends Component
{
public bool $balanceDirty;
public array $currency;
public array $foreign;
public array $source;
public array $destination;
public string $type;
public ?Account $account;
2026-06-16 14:37:42 +02:00
/**
* Create a new component instance.
*/
public function __construct(
?bool $balanceDirty,
2026-06-16 14:37:42 +02:00
array $source,
array $destination,
array $currency,
array $foreign,
string $type,
?Account $account
) {
2026-06-16 14:37:42 +02:00
$this->balanceDirty = $balanceDirty ?? false;
$this->currency = $currency;
$this->foreign = $foreign;
$this->type = $type;
$this->source = $source;
$this->destination = $destination;
$this->account = $account;
2026-06-16 14:37:42 +02:00
}
/**
* Get the view / contents that represent the component.
*/
public function render(): Closure|string|View
2026-06-16 14:37:42 +02:00
{
return view('components.elements.transaction-running-balance');
}
}