@extends('layouts.admin') @section('title', 'Media library') @section('admin-content')
YOUR CAMPAIGN IMAGES

Media library.

View uploaded wheel images and remove the ones you no longer need.

{{ $media->total() }} images
Keep your library tidy

Deleting an image removes it from every wheel slot using it. Prizes, stock, and past winnings are preserved. Upload images here or from Prizes & odds. Library uploads do not change wheel slots.

@csrf

@if($media->count())
@csrf @method('DELETE')0 selected
@endif
@forelse($media as $item)
Uploaded wheel image
{{ $item['name'] }}

{{ number_format($item['size'] / 1024, 1) }} KB · {{ date('d M Y', $item['modified']) }}

@forelse($item['slots'] as $slot){{ $slot->prize?->name ?? 'Prize' }} · slot {{ $slot->position + 1 }}@emptyNot currently used@endforelse
@empty

No images yet

Your uploaded wheel images will appear here.

Open Prizes & odds
@endforelse
@include('admin.partials.list-pagination',['paginator'=>$media,'itemsLabel'=>'images']) @endsection @push('scripts') @endpush