@php $max = $max ?? 1; $itemLabel = $itemLabel ?? strtolower($label); $note = $note ?? 'Add' . ($max > 1 ? " up to $max $itemLabel" : ' one ' . Str::singular($itemLabel)); $fieldNote = $fieldNote ?? ''; $filesizeMax = $filesizeMax ?? 0; $buttonOnTop = $buttonOnTop ?? false; @endphp @unless($renderForBlocks) @push('vuexStore') @foreach(getLocales() as $locale) @if (isset($form_fields['files']) && isset($form_fields['files'][$locale][$name])) window['{{ config('twill.js_namespace') }}'].STORE.medias.selected["{{ $name }}[{{ $locale }}]"] = {!! json_encode($form_fields['files'][$locale][$name]) !!} @endif @endforeach @endpush @endunless