@extends('layouts.app')

@section('content')
<div class="container">
  <div class="row">
    <div class="col-md-8 col-md-offset-2">
      <div class="panel panel-default">
        <div class="panel-heading">Check My Winnings</div>

        <div class="panel-body">
          @if (isset($error))
            <div class="alert alert-danger">
              {{ $error }}
            </div>
          @endif

          <form class="form-horizontal" method="POST" action="/mywinnings">
            {{ csrf_field() }}

            <div class="form-group">
              <label for="bidder_number" class="col-md-4 control-label">Bidder Number</label>

              <div class="col-md-6">
                <input id="bidder_number" type="text" class="form-control" name="bidder_number" value="{{ old('bidder_number') }}" required autofocus>
              </div>
            </div>

            <div class="form-group">
              <div class="col-md-8 col-md-offset-4">
                <button type="submit" class="btn btn-primary">
                  Check Winnings
                </button>
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
</div>
@endsection
