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

35 lines
768 B
PHP

<?php
declare(strict_types=1);
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(): Closure|string|View
{
return view('components.elements.card-header-with-menu');
}
}