Files
firefly-iii/app/View/Components/Elements/CardHeaderWithMenu.php
T
2026-06-16 06:32:24 +02:00

32 lines
737 B
PHP

<?php
namespace FireflyIII\View\Components\Elements;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
class CardHeaderWithMenu extends Component
{
public string $cardTitle;
public string $route;
public string $linkTitle;
/**
* Create a new component instance.
*/
public function __construct(string $cardTitle, string $route, string $linkTitle)
{
$this->cardTitle = $cardTitle;
$this->route = $route;
$this->linkTitle = $linkTitle;
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
return view('components.elements.card-header-with-menu');
}
}