@php $repeaterRaw = old('repeater_raw'); if ($repeaterRaw === null) { $repeaterRaw = collect($section->repeater_items ?? [])->map(fn ($i) => trim(($i['title'] ?? '') . '|' . ($i['text'] ?? '')))->implode("\n"); } $usedInOld = old('used_in', $section->used_in ?? []); $imageRaw = old('image_url', $section->image_url ?? ''); $imagePreview = ''; if (!empty($imageRaw)) { $imagePreview = str_starts_with($imageRaw, 'http://') || str_starts_with($imageRaw, 'https://') ? $imageRaw : asset('storage/' . ltrim($imageRaw, '/')); } @endphp

Section Content

@if($imagePreview) Section image @endif

One line per item. Format: title|text

Usage

Cancel