@extends('layouts.master') @section('content')

{{ trans('marketing.Edit Bonus') }}

@csrf {{ Form::hidden('id', $hidden) }}
{{ Form::label('bonusType', trans('marketing.Bonus Type'), ['class' => 'required']) }} {{ Form::select('bonusType', $bonusTypeList, $bonusType, ['id' => 'bonusType', 'class' => 'form-control select2']) }}
{{ Form::label('bonusCode', trans('marketing.Bonus Code'), ['class' => 'required']) }} {{ Form::text('bonusCode', $bonusCode, ['id' => 'bonusCode', 'class' => 'form-control','maxlength' => 10]) }}
{{ Form::label('bonusDependency', trans('marketing.Bonus Dependency'), ['class' => 'required']) }} {{ Form::text('bonusDependency', $bonusDependency, ['id' => 'bonusDependency', 'class' => 'form-control','readonly' => 'true']) }}
{{ Form::label('bonusDescription', trans('marketing.Bonus Description'), ['class' => 'required']) }} {{ Form::text('bonusDescription', $bonusDescription, ['id' => 'bonusDescription', 'class' => 'form-control']) }}
{{ Form::label('gameType', trans('marketing.game Type'), ['class' => 'required']) }} {{ Form::select('gameType', $gameType, $bonusgameType, ['id' => 'gameType', 'class' => 'form-control select2', 'placeholder' => 'Select']) }}
{{ Form::label('startDate', trans('marketing.Start Date'), ['class' => 'required']) }} {{ Form::text('startDate', '', ['class' => 'form-control', 'id' => 'startDate', 'readonly' => 'readonly']) }}
{{ Form::label('endDate', trans('marketing.End Date'), ['class' => 'required']) }} {{ Form::text('endDate', '', ['class' => 'form-control', 'id' => 'endDate', 'readonly' => 'readonly']) }}
{{ Form::label('publish', 'Publish', ['class' => 'required']) }} {{ Form::select('publish', $publishList, $publish, ['id' => 'publish', 'class' => 'form-control select2', 'placeholder' => 'Select']) }}
{{ Form::label('bonusOrder', trans('marketing.Bonus Code Order'), ['class' => 'required']) }} {{ Form::text('bonusOrder', $bonusOrder, ['id' => 'bonusOrder', 'class' => 'form-control number','maxlength' => 3]) }}
@if($bonusType != 3)
{{ Form::label('applicability', trans('marketing.Applicability Per Player'), ['class' => 'required']) }} {{ Form::text('applicability', $applicability, ['id' => 'applicability', 'class' => 'form-control number','maxlength' => 4]) }}
{{ Form::label('chipsValidity', trans('marketing.Chips Validity In Days'), ['class' => 'required']) }} {{ Form::text('chipsValidity', $chipsValidity, ['id' => 'chipsValidity', 'class' => 'form-control number','maxlength' => 3]) }}
{{ Form::label('partner', trans('marketing.Partner Name')) }} {{ Form::select('partner', $partnerList, $partner, ['id' => 'partner', 'class' => 'form-control select2', 'placeholder' => 'Select']) }}
{{ Form::label('netRake', trans('marketing.Net Rake')) }} {{ Form::text('netRake', $netRake, ['class' => 'form-control', 'id' => 'netRake']) }}
{{ Form::label('Release', trans('marketing.Release %')) }} {{ Form::text('Release', $Release, ['class' => 'form-control', 'id' => 'Release']) }}
@endif

{{ trans('marketing.Frequency Settings') }}

{{ Form::label('frequencyVariation', trans('marketing.Select Variation'), ['class' => 'required']) }}

{{ Form::label('dailyCount', trans('marketing.Daily Count'), ['class' => 'required']) }} {{ Form::select('dailyCount', $dailyCountList, $dailyCount, ['id' => 'dailyCount', 'class' => 'form-control select2', 'placeholder' => 'Select']) }}
{{ Form::label('maxCab', trans('marketing.Select Week Days'), ['class' => 'required']) }}