@extends('tablar::page')

@section('content')
<div class="page-header d-print-none">
    <div class="container-xl">
        <div class="row g-2 align-items-center">
            <div class="col">
                <h2 class="page-title">Edit Winners</h2>
            </div>
        </div>
    </div>
</div>
<div class="page-body">
    <div class="container-xl">
        <div class="card">
            <div class="card-body">
                <form method="POST" action="/editwinners" class="row g-3">
                    {{ csrf_field() }}
                    <div class="col-md-6">
                        <label for="id" class="form-label">Winner ID</label>
                        <input type="text" name="id" id="id" class="form-control" value="{{ $winner->id }}" readonly>
                    </div>
                    <div class="col-md-6">
                        <label for="score" class="form-label">Score</label>
                        <input type="number" name="score" id="score" class="form-control" value="{{ $winner->score }}" required>
                    </div>
                    <div class="col-12">
                        <button type="submit" class="btn btn-primary">Update Score</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
@endsection
@include('components.tomselect')
