@php use App\Support\AppointmentFormFields; $formFieldSettings = $appSetting->formFields(); $customFormFields = $appSetting->customFormFields(); $termsSettings = $appSetting->terms(); @endphp

Choose which fields appear on the frontend booking form and whether they are required.

Standard Fields
@foreach(AppointmentFormFields::DEFINITIONS as $key => $def) @php $visible = !empty($formFieldSettings[$key]['visible']); $required = !empty($formFieldSettings[$key]['required']); @endphp @endforeach
Field Show Required
{{ $def['label'] }}

Additional Fields

Add your own custom fields for the booking form. Use Remove to delete a field.

@forelse($customFormFields as $index => $field) @empty @endforelse
Field Label Type Show Required

Terms & Conditions

Edit the checkbox text shown on the frontend booking form before submit.

@foreach([ 'consent' => 'Contact Consent', 'cancellation_fee' => 'Cancellation Policy', ] as $termKey => $termLabel) @php $term = $termsSettings[$termKey] ?? AppointmentFormFields::DEFAULT_TERMS[$termKey]; $termVisible = !empty($term['visible']); $termRequired = !empty($term['required']); @endphp @endforeach
Checkbox Text Show Required
{{ $termLabel }}