@include('layouts.components.section-marker', ['section_name' => $title]) @php $sectionTranslations = collect($allTranslations) ->filter(function ($value, $key) use ($keyStart) { return str_starts_with($key, $keyStart); }) ->flatMap(function ($collection) { return $collection; }); $sectionTranslatable = []; foreach ($staticContentSettings->where('type_form', 'string') as $setting) { if (str_starts_with($setting->key, $keyStart)) { $sectionTranslatable[] = [ 'name' => $setting->key, 'type' => 'text', 'label' => $setting->description, 'required' => false ]; } }; @endphp
@foreach($staticContentSettings as $setting) @if (str_starts_with($setting->key, $keyStart))
@if ($setting->type_form === 'string') @elseif ($setting->type_form === 'upload') @if ($setting->value) {{ $setting->description }} @endif @endif
@endif @endforeach @include('layouts.components.translation-edit', ['idPrefix' => $keyStart, 'translations' => $sectionTranslations, 'translatable' => $sectionTranslatable])