-
Notifications
You must be signed in to change notification settings - Fork 2
/
DeleteRoomForm.php
44 lines (37 loc) · 981 Bytes
/
DeleteRoomForm.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
namespace App\Http\Livewire\Rooms;
use App\Models\Room;
use Illuminate\Foundation\Application;
use Illuminate\Contracts\Foundation\Application as ApplicationContract;
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View;
use Livewire\Component;
class DeleteRoomForm extends Component
{
/**
* @var Room the Room that must be deleted
*/
public Room $room;
/**
* @var bool determines whether the confirmation modal is visible
*/
public bool $confirmingDeletion = false;
/**
* Trigger the confirmation modal to be visible
*
* @return void
*/
public function confirmDeletion()
{
$this->confirmingDeletion = true;
}
/**
* Render the component
*
* @return View|Factory|Application|ApplicationContract
*/
public function render(): View|Factory|Application|ApplicationContract
{
return view('moderator.rooms.delete-room-form');
}
}