-
Notifications
You must be signed in to change notification settings - Fork 2
/
DeleteBoothForm.php
43 lines (37 loc) · 989 Bytes
/
DeleteBoothForm.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
<?php
namespace App\Http\Livewire\Booths;
use App\Models\Booth;
use Illuminate\Contracts\Foundation\Application as ApplicationContract;
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View;
use Illuminate\Foundation\Application;
use Livewire\Component;
class DeleteBoothForm extends Component
{
/**
* @var Booth the Team that must be deleted
*/
public Booth $booth;
/**
* @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 this component
*
* @return Factory|Application|View|ApplicationContract
*/
public function render(): Factory|Application|View|ApplicationContract
{
return view('moderator.booths.delete-booth-form');
}
}