2022-06-01 10:15:55 +03:00

29 lines
779 B
PHP

<x-form.container>
<x-form
id="{{ $formId }}"
:route="$formRoute"
method="{{ $formMethod }}"
:model="$contact"
>
@if (! $hideSectionGeneral)
<x-contacts.form.general type="{{ $type }}" />
@endif
@if (! $hideSectionBilling)
<x-contacts.form.billing type="{{ $type }}" />
@endif
@if (! $hideSectionAddress)
<x-contacts.form.address type="{{ $type }}" />
@endif
<x-form.input.hidden name="type" value="{{ $type }}" />
@if (! empty($contact))
<x-form.group.switch name="enabled" label="{{ trans('general.enabled') }}" />
@endif
<x-contacts.form.buttons type="{{ $type }}" />
</x-form>
</x-form.container>