@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')

Build a fuller wheel

Repeat the active prizes currently selected below, evenly across more slots. Inventory and winning chances stay the same. Review the rows, then Save wheel layout. New repeats reuse an existing image for that prize.

{{ 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