@if ($loots)
@foreach ($loots as $loot)
| {!! Form::text('step[]', $loot->step, ['class' => 'form-control bg-dark text-light']) !!} |
{!! Form::select('rewardable_type[]', ['Item' => 'Item', 'Currency' => 'Currency'] + ($showLootTables ? ['LootTable' => 'Loot Table'] : []) + ($showRaffles ? ['Raffle' => 'Raffle Ticket'] : []), $loot->rewardable_type, [
'class' => 'form-control reward-type',
'placeholder' => 'Select Reward Type',
]) !!} |
@if ($loot->rewardable_type == 'Item')
{!! Form::select('rewardable_id[]', $items, $loot->rewardable_id, ['class' => 'form-control item-select selectize', 'placeholder' => 'Select Item']) !!}
@elseif($loot->rewardable_type == 'Currency')
{!! Form::select('rewardable_id[]', $currencies, $loot->rewardable_id, ['class' => 'form-control currency-select selectize', 'placeholder' => 'Select Currency']) !!}
@elseif($showLootTables && $loot->rewardable_type == 'LootTable')
{!! Form::select('rewardable_id[]', $tables, $loot->rewardable_id, ['class' => 'form-control table-select selectize', 'placeholder' => 'Select Loot Table']) !!}
@elseif($showRaffles && $loot->rewardable_type == 'Raffle')
{!! Form::select('rewardable_id[]', $raffles, $loot->rewardable_id, ['class' => 'form-control raffle-select selectize', 'placeholder' => 'Select Raffle']) !!}
@endif
|
{!! Form::text('quantity[]', $loot->quantity, ['class' => 'form-control']) !!} |
Remove |
@endforeach
@endif