-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCompanyInternshipsForm.php
44 lines (38 loc) · 1.02 KB
/
CompanyInternshipsForm.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\Livewire\Registration;
use Illuminate\View\View;
use Livewire\Component;
class CompanyInternshipsForm extends Component
{
public $internshipYear = [];
public $languages = [];
public $tracks = [];
/**
* Dispatches an event to the parent component to go back
* @return void
*/
public function goBack()
{
$this->dispatch('go-back', formName: 'CompanyInternshipsInfoForm');
}
/**
* Dispatches an event to the parent to go next
* @return void
*/
public function goNext()
{
$this->dispatch('go-next', formName: 'CompanyInternshipsInfoForm', input: [
'company_internship_years' => $this->internshipYear,
'company_internship_languages' => $this->languages,
'company_internship_tracks' => $this->tracks,
]);
}
/**
* Renders the component
* @return View
*/
public function render() : View
{
return view('livewire.registration.company-internships-form');
}
}