@include('Partials.sidebar') @include('Partials.header') @if ($errors->any()) @foreach ($errors->all() as $error) {{ $error }} @endforeach @endif @if (session('error')) {{ session('error') }} @endif Construction Updates View All Construction Updates @csrf @method('PUT') Banner Title: Choose a Banner Image: *Dimension: 1920px X 957px Choose Image Construction Update Slides: Upload either an image (1420px X 840px) or a video per slide. Video slides require a separate thumbnail image. Leave a slide's file blank to keep its current media. @php $existingSlides = json_decode($constructions->slide_images, true) ?? []; $existingThumbs = json_decode($constructions->thumb_images, true) ?? []; @endphp @if (count($existingSlides) > 0) @foreach ($existingSlides as $index => $slide) @php $slideVideo = $slide['construction_video'] ?? null; $slideImage = $slide['construction_image'] ?? null; $slideThumb = $existingThumbs[$index]['construction_thumb'] ?? null; @endphp Slide Media (Image or Video): Replace Image/Video Thumbnail Image for this video: Choose Thumbnail {{-- Hidden fields preserve current media so the server knows what to keep if no new file is chosen --}} Remove @endforeach @else Slide Media (Image or Video): Choose Image/Video Thumbnail Image for this video: Choose Thumbnail Remove @endif Add New Slug: Update @include('Partials.footer')
Upload either an image (1420px X 840px) or a video per slide. Video slides require a separate thumbnail image. Leave a slide's file blank to keep its current media.