coolify/app/View/Components/Modal.php

35 lines
777 B
PHP
Raw Normal View History

2023-07-13 13:16:24 +02: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(
2024-06-10 22:43:34 +02:00
public string $modalId,
public ?string $submitWireAction = null,
public ?string $modalTitle = null,
public ?string $modalBody = null,
public ?string $modalSubmit = null,
public bool $noSubmit = false,
public bool $yesOrNo = false,
public string $action = 'delete'
2023-08-11 20:48:52 +02:00
) {
2023-07-13 13:16:24 +02:00
//
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
return view('components.modal');
}
}