@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
Your layout sets the wheel size.

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.

@csrf @method('PUT')
{{ 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