@php $name = $name ?? $type; $buttonAsLink = $buttonAsLink ?? false; $max = $max ?? null; $reorder = $reorder ?? true; @endphp @push('vuexStore') @foreach($form_fields['repeaterFields'][$name] ?? [] as $field) window['{{ config('twill.js_namespace') }}'].STORE.form.fields.push({!! json_encode($field) !!}) @endforeach @foreach($form_fields['repeaterMedias'][$name] ?? [] as $repeater => $medias) window['{{ config('twill.js_namespace') }}'].STORE.medias.selected["{{ $repeater }}"] = {!! json_encode($medias) !!} @endforeach @foreach($form_fields['repeaterFiles'][$name] ?? [] as $repeater => $files) window['{{ config('twill.js_namespace') }}'].STORE.medias.selected["{{ $repeater }}"] = {!! json_encode($files) !!} @endforeach @foreach($form_fields['repeaterBrowsers'][$name] ?? [] as $repeater => $fields) window['{{ config('twill.js_namespace') }}'].STORE.browser.selected["{{ $repeater }}"] = {!! json_encode($fields) !!} @endforeach @endpush