@if ($unpack) @if($addNew) @partialView(($formModuleName ?? null), 'create', ['renderForModal' => true, 'fieldsInModal' => true]) @endif @else @if($addNew) @partialView(($formModuleName ?? null), 'create', ['renderForModal' => true, 'fieldsInModal' => true]) @endif @endif @unless($renderForBlocks || $renderForModal || (!isset($item->$name) && null == $formFieldsValue = getFormFieldsValue($form_fields, $name))) @push('vuexStore') window['{{ config('twill.js_namespace') }}'].STORE.form.fields.push({ name: '{{ $name }}', value: {!! json_encode(isset($item) && isset($item->$name) ? Arr::pluck($item->$name, 'id') : $formFieldsValue) !!} }) @endpush @endunless