@include('Partials.sidebar') @include('Partials.header') @if ($errors->any()) @foreach ($errors->all() as $error) {{ $error }} @endforeach @endif Home Our Communities Section Home Our Communities Section Form @csrf Section Title: Section Description: {{ old('description', $communitiesSection->description ?? '') }} Button Text: Button Link: Slide Images: @php // Decode the JSON to get an array of image paths $slideImages = isset($communitiesSection->slide_images) ? json_decode($communitiesSection->slide_images, true) : []; @endphp @if (!empty($slideImages) && count($slideImages) > 0) @foreach ($slideImages as $index => $image) @if (isset($image) && !empty($image)) @else @endif Choose a Slide Image: *Dimension: 1420 px X 840 px Choose Image Remove @endforeach @else Choose a Slide Image: *Dimension: 1420 px X 840 px Choose Image Remove @endif Remove Add New Slide Thumb Images: @php // Decode the JSON to get an array of thumb image paths $thumbImages = isset($communitiesSection->slide_thumb_images) ? json_decode($communitiesSection->slide_thumb_images, true) : []; @endphp @if (!empty($thumbImages) && count($thumbImages) > 0) @foreach ($thumbImages as $thumbIndex => $thumbImage) @if (isset($thumbImage) && !empty($thumbImage)) @else @endif Choose a Slide Thumb Image: *Dimension: 1420 px X 840px Choose Image Remove @endforeach @else Choose a Slide Thumb Image: *Dimension: 1420 px X 840px Choose Image Remove @endif Remove Add New {{ isset($communitiesSection) ? 'Update' : 'Submit' }} @include('Partials.footer')