@extends('layouts.admin') @section('title', 'Prizes & odds') @section('admin-content')
SHAPE THE POSSIBILITIES

Prizes & odds.

Give each prize its own chance to shine.

Add a prize +
How chances work

Chance = prize weight ÷ total weight of active, in-stock prizes assigned to the wheel. Sold-out, inactive, zero-weight, and unassigned prizes cannot win. Repeating a prize in several slots doesn’t increase its chance. The displayed order is shuffled for every player page.

@foreach($prizes as $prize)

{{ $prize->name }}

{{ $totalWeight && $prize->active && $prize->stock > 0 && $assigned->contains($prize->id) ? number_format($prize->weight / $totalWeight * 100, 2) : '0.00' }}%
@csrf @method('PUT')
@if(!$assigned->contains($prize->id))Not assigned to a wheel slot yet.@endif

Slot images

PNG, JPEG, or WebP · up to 1 MB · 16–1024 pixels per side.

@forelse($slots->where('prize_id', $prize->id) as $slot)@include('admin.partials.slot-image', ['slot' => $slot])@empty

Assign this prize to a slot in Wheel layout ↗ to upload its slot image.

@endforelse

Prize stock

{{ $prize->stock > 0 ? number_format($prize->stock).' remaining' : 'Sold out' }}
@csrf
One unit is deducted for each winning result. Retries do not deduct again.
@endforeach

Create a new prize

✦
@csrf

Recent stock top-ups

@forelse($stockUpdates as $topup)@empty@endforelse
PrizeAddedStock after top-upAdminDate
{{ $topup->prize_name }}+{{ $topup->amount }}{{ $topup->balance_after }}{{ $topup->admin_name }}{{ \Carbon\Carbon::parse($topup->created_at)->format('d M, H:i') }}
Stock top-ups will be recorded here.
@endsection @push('scripts') @endpush