@extends('layouts.admin') @section('title','Wheel layout') @section('admin-content')
EVERY PRIZE HAS ITS PLACE

Wheel layout.

Choose how many slots appear on the wheel. Add or remove rows, select their prizes, then save.

Prizes & odds
How wheel slots work

7 rows show 7 slots; 10 rows show 10 slots. You can use 1–24 slots. Repeating a prize is optional and does not multiply its chance. Inactive prizes are hidden. Player pages shuffle the displayed order. Unchanged slots keep their images; changing a slot’s prize clears its old image. New repeated slots reuse an existing image for the same prize.

@csrf @method('PUT') @php $activePrizeCount = $prizes->where('active', true)->count(); $layoutSizes = $activePrizeCount > 0 && $activePrizeCount <= 15 ? collect(range($activePrizeCount, 15)) : collect(); @endphp

Build a fuller wheel

Include every active prize, repeating prizes evenly when extra slots are available. Inventory and winning chances stay the same. Review the rows, then Save wheel layout. New repeats reuse an existing image for that prize.

{{ $activePrizeCount }} active prizes · minimum {{ $activePrizeCount }} slots.@if($activePrizeCount === 0) Activate a prize in Prizes & odds first.@elseif($activePrizeCount > 15) Automatic distribution supports up to 15 slots; reduce the number of active prizes before distributing.@endif

{{ count(old('slots',$slots)) }} slots
@php($layoutRows=old('slots')!==null ? collect(old('slots'))->map(fn($prizeId,$index)=>(object)['id'=>old('slot_ids.'.$index),'prize_id'=>$prizeId]) : $slots)
@foreach($layoutRows as $slot)
{{ $loop->iteration }}
@endforeach

Upload slot images in Prizes & odds after saving.

@endsection @push('scripts')@endpush