30 lines
544 B
PHP
30 lines
544 B
PHP
<?php
|
|
|
|
namespace App\Livewire\Settings\Modals;
|
|
|
|
use Illuminate\Contracts\View\View;
|
|
use LivewireUI\Modal\ModalComponent;
|
|
|
|
class Delete extends ModalComponent
|
|
{
|
|
public string $confirmText = '';
|
|
|
|
public function delete(): void
|
|
{
|
|
if ($this->confirmText !== 'LÖSCHEN') {
|
|
return;
|
|
}
|
|
$this->closeModal();
|
|
}
|
|
|
|
public static function modalMaxWidth(): string
|
|
{
|
|
return 'md';
|
|
}
|
|
|
|
public function render(): View
|
|
{
|
|
return view('livewire.settings.modals.delete');
|
|
}
|
|
}
|