{{ isset($bet) ? 'Edit Bet' : 'Add Bet' }}
Back
@if(isset($bet))
{!! Form::model($bet, ['route' => ['bet.update', $bet->id], 'method' => 'PUT', 'files' => true]) !!}
@else
{!! Form::open(['route' => 'bet.store', 'method' => 'POST', 'files' => true]) !!}
@endif
{!! Form::close() !!}
{!! Form::label('title', 'Title') !!}
{!! Form::text('title', null, ['class' => 'form-control', 'required']) !!}
{!! Form::label('bet_category_id', 'Bet Category') !!}
{!! Form::select('bet_category_id', $categories, $bet->bet_category_id ?? null, ['class' => 'form-control', 'placeholder' => 'Select Category']) !!}
{!! Form::label('amount', 'Amount') !!}
{!! Form::number('amount', null, ['class' => 'form-control', 'step' => '0.01', 'required']) !!}
{!! Form::label('team_a_name', 'Option A Name') !!}
{!! Form::text('team_a_name', null, ['class' => 'form-control']) !!}
{!! Form::label('team_b_name', 'Option B Name') !!}
{!! Form::text('team_b_name', null, ['class' => 'form-control']) !!}
{!! Form::label('team_a_icon', 'Team A Icon') !!}
{!! Form::file('team_a_icon', ['class' => 'form-control']) !!}
@if(isset($bet) && $bet->team_a_icon)
{!! Form::label('team_b_icon', 'Team B Icon') !!}
{!! Form::file('team_b_icon', ['class' => 'form-control']) !!}
@if(isset($bet) && $bet->team_b_icon)
{!! Form::label('start_date_time', 'Start Date & Time') !!}
{!! Form::datetimeLocal('start_date_time', isset($bet) && $bet->start_date_time instanceof \Carbon\Carbon ? $bet->start_date_time->format('Y-m-d\TH:i') : null, ['class' => 'form-control', 'required']) !!}
{!! Form::label('end_date_time', 'End Date & Time') !!}
{!! Form::datetimeLocal('end_date_time', isset($bet) && $bet->end_date_time instanceof \Carbon\Carbon ? $bet->end_date_time->format('Y-m-d\TH:i') : null, ['class' => 'form-control', 'required']) !!}
{!! Form::label('description', 'Description') !!}
{!! Form::textarea('description', null, ['class' => 'form-control']) !!}
{!! Form::label('status', 'Status') !!}
{!! Form::select('status', [1 => 'Active', 0 => 'Inactive'], null, ['class' => 'form-control']) !!}
Participants
User | Selected Option | Amount | Invitation Sent | Invitation Accepted | Payment Made | Payment Reference ID | Is Winner? | Winning Amount | Winning Payment Reference ID |
---|---|---|---|---|---|---|---|---|---|
{{ isset($participant->user) ? $participant->user->name : 'NA' }} | {{ $participant->selected_team != "" ? $participant->selected_team : 'N/A' }} | {{ $participant->amount ?? 'N/A' }} | {{ $participant->invitation_sent ? 'Yes' : 'No' }} | {{ $participant->invitation_accepted ? 'Yes' : 'No' }} | {{ $participant->make_payment ? 'Yes' : 'No' }} | {{ $participant->payment_referance_id ?? 'N/A' }} | {{ $participant->is_winner ? 'Yes' : 'No' }} | {{ $participant->winning_amount ?? 'N/A' }} | {{ $participant->winning_payment_referance_id ?? 'N/A' }} |
Winner has already been declared for this bet.
@endif