2026-06-16 20:05:39 +02:00
|
|
|
<?php
|
|
|
|
|
|
2026-06-19 05:50:27 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2026-06-16 20:05:39 +02:00
|
|
|
namespace FireflyIII\View\Components\Transaction;
|
|
|
|
|
|
|
|
|
|
use Closure;
|
|
|
|
|
use Illuminate\Contracts\View\View;
|
|
|
|
|
use Illuminate\View\Component;
|
|
|
|
|
|
|
|
|
|
class Split extends Component
|
|
|
|
|
{
|
2026-06-17 15:22:24 +02:00
|
|
|
public array $optionalFields;
|
2026-06-18 09:34:19 +02:00
|
|
|
public array $optionalDateFields;
|
2026-06-17 15:22:24 +02:00
|
|
|
|
2026-06-16 20:05:39 +02:00
|
|
|
/**
|
|
|
|
|
* Create a new component instance.
|
|
|
|
|
*/
|
2026-06-18 09:34:19 +02:00
|
|
|
public function __construct(array $optionalFields, array $optionalDateFields)
|
2026-06-16 20:05:39 +02:00
|
|
|
{
|
2026-06-19 05:50:27 +02:00
|
|
|
$this->optionalFields = $optionalFields;
|
2026-06-18 09:34:19 +02:00
|
|
|
$this->optionalDateFields = $optionalDateFields;
|
2026-06-16 20:05:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the view / contents that represent the component.
|
|
|
|
|
*/
|
2026-06-19 05:50:27 +02:00
|
|
|
public function render(): Closure|string|View
|
2026-06-16 20:05:39 +02:00
|
|
|
{
|
|
|
|
|
return view('components.transaction.split');
|
|
|
|
|
}
|
|
|
|
|
}
|