@extends('layouts.admin') @section('title', 'Prizes & odds') @section('admin-content')
Give each prize its own chance to shine.
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.
Edit several prizes, then Save all changes. This saves edited rows on the current page only. Slot images save separately; save or discard prize edits before changing images or deleting prizes. On smaller screens, scroll the table sideways.
| Active | Prize name Description | Chance weight | Slot color | Slot image | Prize stock | Update / Delete |
|---|---|---|---|---|---|---|
| active) aria-label="{{ $prize->name }} active"> | @if(!$assigned->contains($prize->id))Not assigned to the wheel · Assign a slot@endif | {{ $totalWeight && $prize->active && $prize->stock > 0 && $assigned->contains($prize->id) ? number_format($prize->weight / $totalWeight * 100, 2) : '0.00' }}% chance | @forelse($slots->where('prize_id', $prize->id) as $slot)@include('admin.partials.slot-image', ['slot' => $slot])@emptyAssign a wheel slot to upload an image.@endforelse | digital_value) min="0" max="1000000" required aria-label="Stock for {{ $prize->name }}">@if(!$prize->digital_value)@endif{{ $prize->digital_value ? 'Calculated from PIN inventory':'Remaining units' }} |
| Prize | Added | Stock after top-up | Admin | Date |
|---|---|---|---|---|
| {{ $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. | ||||