File: /var/www/ivs.kaunokolegija.lt/laravel/app/View/Components/Modal/Modal.php
<?php
namespace App\View\Components\Modal;
use Closure;
use Illuminate\View\Component;
use Illuminate\Contracts\View\View;
class Modal extends Component
{
/**
* Create a new component instance.
*/
public function __construct(
public $id,
public $title = 'Modal Title',
public $size = '',
public $actionButton = true,
public $button = false,
public $buttonType = 'button',
)
{
//
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
return view('components.modal.modal');
}
}