File: //var/www/ivs.kaunokolegija.lt/laravel/app/View/Components/Form/Input.php
<?php
namespace App\View\Components\Form;
use Closure;
use Illuminate\View\Component;
use Illuminate\Contracts\View\View;
class Input extends Component
{
/**
* Create a new component instance.
*/
public function __construct(public string $name, public string $label = '', public mixed $value = null, public string $type = 'text', public bool $required = false, public bool $isDate = false, public string $placeholder = '', public bool $disabled = false, public $helpLabel = '')
{
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
return view('components.form.input');
}
}