@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 prizes assigned to the wheel. A weight of 0 or an inactive prize cannot win. Repeating a prize in several slots doesn’t increase its chance. Unassigned prizes have a 0% chance.

@foreach($prizes as $prize)

{{ $prize->name }}

{{ $totalWeight && $prize->active && $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
@endforeach

Create a new prize

✦
@csrf
@endsection