lasthourcloud/app/View/Components/ResourceView.php

32 lines
616 B
PHP
Raw Normal View History

2024-02-20 14:07:12 +00:00
<?php
namespace App\View\Components;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
class ResourceView extends Component
{
/**
* Create a new component instance.
*/
public function __construct(
public ?string $wire = null,
public ?string $logo = null,
public ?string $documentation = null,
2024-02-22 10:53:25 +00:00
public bool $upgrade = false,
2024-02-20 14:07:12 +00:00
)
{
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
return view('components.resource-view');
}
}