@extends('layouts.app') @section('title', 'Course Images') @section('content') @include('partials.flash')
arrow_back Builder

Images · {{ $course->title }}

{{ $total }} image {{ \Illuminate\Support\Str::plural('slot', $total) }} · {{ $needing }} still need a real image

@csrf {{-- Bulk uploader --}}
upload

Bulk upload

Pick several images at once. They fill the placeholder slots below in course order (top to bottom). Review the mapping in the cards, adjust any you like, then Save all.

@foreach($groups as $group) @if(count($group['slots']))

{{ $group['label'] }}

@foreach($group['slots'] as $slot) @php $needs = $slot['status'] !== 'custom'; @endphp
image {{-- status badge --}} @if($slot['status'] === 'placeholder') Placeholder @elseif($slot['status'] === 'empty') Empty @else Custom @endif

{{ $slot['label'] }}

@endforeach
@endif @endforeach
@endsection