@extends('layouts.app') @section('title', 'Edit Form — ' . ($form->name ?? '')) @push('styles') @endpush @section('content') @if($errors->any())
Couldn't save your form:
@endif
@csrf @method('PUT')

Form Details

@error('name')
{{ $message }}
@enderror
Form is active

Form Fields

@php $useDefaults = (bool) (($form->settings['use_default_customer_fields'] ?? true)); @endphp {{-- Template bar — apply a curated template to this form --}}
Apply a template
Replace the current fields with a curated template.
{{-- LOCKED DEFAULT FIELDS notice --}}
Default fields (automatic on every form)
Full Name *
Email *
Phone
These are always collected from the customer. Don't add them again below.
Template manages customer info
This form's custom fields collect the customer's name, phone, email and address — so the default Name/Email/Phone block is turned off on the embed to avoid duplicates. Restore defaults

Settings

@php $existingSettings = is_array($form->settings ?? null) ? $form->settings : []; $existingColor = old('settings.primary_color', $existingSettings['primary_color'] ?? '#00d4aa'); $existingConfirm = (bool) old('settings.confirm_before_submit', $existingSettings['confirm_before_submit'] ?? false); @endphp
Used for the Submit button + product accents on the embedded form.
{{-- Submission behaviour toggles --}}
Shows an "Are you sure you want to place this order?" prompt on the WordPress embed before submitting. Recommended for high-value orders to prevent accidental submissions.
Cancel

Preview

{{ $form->name ?? 'Your Form' }}
{{ $form->description ?? '' }}

Loading fields...

@endsection @push('scripts') @endpush