@include('livewire.form.error')
@if($this->firstStep())
{{-- Step 1 --}}
What is your enquiry concerning?
@include('livewire.form.radio', [
'wire_model' => 'enquiry_concern',
'x_model' => 'enquiryConcern',
'value' => FeedbackEnquiryConcern::LEGAL->value,
'option_label' => 'Legal Matters',
'show_errors' => true
])
@include('livewire.form.radio', [
'wire_model' => 'enquiry_concern',
'x_model' => 'enquiryConcern',
'value' => FeedbackEnquiryConcern::FINANCE->value,
'option_label' => 'Finance Matters',
'show_errors' => true
])
@include('livewire.form.radio', [
'wire_model' => 'enquiry_concern',
'x_model' => 'enquiryConcern',
'value' => FeedbackEnquiryConcern::GENERAL->value,
'option_label' => 'General',
'show_errors' => true
])
@else
{{-- Step 2 --}}
@include('livewire.form.select', [
'label' => 'Enquirer role',
'wire_model' => 'enquirer_role',
'options' => FeedbackEnquirerRole::toArray(),
'help' => 'Select the option that best describes the person making this enquiry'
])
@include('livewire.form.text', [
'label' => 'Enquirer name',
'wire_model' => 'enquirer_name',
])
@include('livewire.form.text', [
'label' => 'Enquirer contact email',
'wire_model' => 'enquirer_email',
])
@include('livewire.form.text', [
'label' => 'Enquiry',
'wire_model' => 'enquiry',
'input_type' => 'textarea',
])
@include('livewire.form.file', [
'label' => 'Attach a file',
'wire_model' => 'new_attachments',
'help' => 'If you have a related file to attach to your enquiry, please upload it here'
])
@endif
@include('livewire.form.submit')