@extends('layouts.admin') @section('title','Game prize pool') @section('admin-content') @php $giftMode=\App\Services\GameSettings::active()!=='lucky-wheel'; @endphp
EVERY PRIZE HAS ITS PLACE

Game prize pool.

{{ $giftMode ? 'Choose the prizes available in the weighted draw. Manage game-specific options in Games → Settings.' : 'Choose the prizes and slots for Lucky Wheel, then save.' }}

Prizes & odds
How prize selection works

Each active, in-stock prize with a positive weight in this pool can be won. Each prize counts once when calculating its chance.@if($giftMode) Game presentation is separate from prize selection. Each actual reward follows the configured prize weights.@else Each row is a wheel slot. You can use 1–24 slots; repeated prizes do not increase their chances. Existing images are kept when their prize stays the same.@endif

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

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 prize pool. 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

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

Manage prize images in Prizes & odds after saving.

@endsection @push('scripts')@endpush