2023-07-13 11:16:24 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\View\Components;
|
|
|
|
|
|
|
|
use Closure;
|
|
|
|
use Illuminate\Contracts\View\View;
|
|
|
|
use Illuminate\View\Component;
|
|
|
|
|
|
|
|
class Modal extends Component
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Create a new component instance.
|
|
|
|
*/
|
|
|
|
public function __construct(
|
2023-08-08 09:51:36 +00:00
|
|
|
public string $modalId,
|
2023-08-07 16:46:40 +00:00
|
|
|
public string|null $modalTitle = null,
|
2023-07-13 11:16:24 +00:00
|
|
|
public string|null $modalBody = null,
|
|
|
|
public string|null $modalSubmit = null,
|
2023-08-08 09:51:36 +00:00
|
|
|
public bool $yesOrNo = false,
|
|
|
|
public string $action = 'delete'
|
2023-08-11 18:48:52 +00:00
|
|
|
) {
|
2023-07-13 11:16:24 +00:00
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the view / contents that represent the component.
|
|
|
|
*/
|
|
|
|
public function render(): View|Closure|string
|
|
|
|
{
|
|
|
|
return view('components.modal');
|
|
|
|
}
|
2023-08-08 09:51:36 +00:00
|
|
|
}
|