@extends('layout.app') @push('styles') @endpush @section('content')

Customer Form Fields

Only the fields turned on here are shown on the customer create and edit forms — everything turned off is hidden. A field hidden on the edit form keeps the value it already has. Fields marked Required cannot be turned off, the form cannot be saved without them.

@csrf @foreach ($groups as $groupName => $fields)

{{ $groupName }}

@foreach ($fields as $field)
status == 'active' ? 'checked' : '' }} {{ $field->isLocked() ? 'checked disabled' : '' }}>
@endforeach
@endforeach
@endsection @push('js') @endpush