@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
@endforeach

Create a new prize

✦
@csrf
@endsection