@include('Partials.sidebar') @include('Partials.header') @if ($errors->any()) @foreach ($errors->all() as $error) {{ $error }} @endforeach @endif Our Identity Fourth Section Our Identity Fourth Section Form @csrf Section Title: @php // Safely decode only if variable exists and has data $slideDescriptions = []; if (!empty($ourIdentityFourthSection) && !empty($ourIdentityFourthSection->section_description)) { $slideDescriptions = json_decode($ourIdentityFourthSection->section_description, true); } // Ensure at least one empty description field if (empty($slideDescriptions)) { $slideDescriptions = ['']; } @endphp @foreach ($slideDescriptions as $index => $slideDescription) Section Description: {{ $slideDescription }} Remove @endforeach Add New Section Image *Dimension: 820px X 602px @if (isset($ourIdentityFourthSection->section_image) && !empty($ourIdentityFourthSection->section_image)) @else @endif Choose Image {{ isset($ourIdentityFourthSection) ? 'Update' : 'Submit' }} @include('Partials.footer')