@php $isEdit = isset($field); $action = $isEdit ? route('forms.fields.update', [$form, $field]) : route('forms.fields.store', $form); $method = $isEdit ? 'PUT' : 'POST'; $title = $isEdit ? 'Edit Field' : 'Create Field'; @endphp