@extends('layouts.admin') @section('title','Games') @section('admin-content')
CHOOSE YOUR LUCKY MOMENT

Games.

Choose a game. Open Settings to customise, preview or activate it.

Active game: {{ $activeGame==='lucky-wheel'?'Lucky Wheel':'Lucky Gift Box' }}. Games share receipt plays, prize stock and reward history. Changing games keeps remaining plays.

@foreach(['lucky-wheel'=>['Lucky Wheel','Turn the wheel for a little surprise.','wheel'],'lucky-gift-box'=>['Lucky Gift Box','Choose a gift and discover your lucky moment.','gift']] as $key=>[$name,$description,$art])

{{ $name }}

{{ $description }}

@endforeach
@foreach(['lucky-wheel'=>'Lucky Wheel','lucky-gift-box'=>'Lucky Gift Box'] as $key=>$name) has('errors')&&old('game')===$key) data-auto-open @endif>

{{ $name }} settings

@csrf
@if(session()->has('errors')&&old('game')===$key)@endif @if($key==='lucky-wheel')

Your existing wheel layout, prize images and appearance settings are kept.

Preview or activate this game below. Layout and appearance open their existing settings pages.

@else

The actual reward uses the prize weights and assigned prize pool. High-value PIN displays in the other boxes are a separate showcase.

Preview uses sample rewards only. Reduced-motion preferences skip effects. Sound stays optional. Saving settings does not activate the game. @endif
@endforeach @endsection @push('scripts')@endpush