{{ Form::open(['route' => 'flash-sale.store', 'method' => 'post', 'enctype' => 'multipart/form-data', 'class' => 'repeater']) }}
{!! Form::label('', __('Name'), ['class' => 'form-label']) !!} {!! Form::text('name', old('name'), ['class' => 'form-control', 'required']) !!}
{!! Form::label('', __('Start Date'), ['class' => 'form-label']) !!} {!! Form::date('start_date', old('start_date'), ['class' => 'form-control', 'required']) !!}
{!! Form::label('', __('End Date'), ['class' => 'form-label']) !!} {!! Form::date('end_date', old('end_date'), ['class' => 'form-control', 'required']) !!}
{!! Form::label('', __('Start Time'), ['class' => 'form-label']) !!} {!! Form::time('start_time', old('start_time'), ['class' => 'form-control', 'required']) !!}
{!! Form::label('', __('End Time'), ['class' => 'form-label']) !!} {!! Form::time('end_time', old('end_time'), ['class' => 'form-control', 'required']) !!}
{!! Form::label('', __('Discount Type'), ['class' => 'form-label']) !!} {!! Form::select( 'discount_type', ['' => __('Select Discount Type'), 'percentage' => 'Percentage', 'flat' => 'Flat'], old('discount_type'), ['class' => 'form-control', 'required'], ) !!}
{!! Form::label('', __('Discount Amount'), ['class' => 'form-label']) !!} {!! Form::number('discount_amount', old('discount_amount'), [ 'class' => 'form-control', 'min' => '0', 'step' => '0.01', 'required', ]) !!}
{{ __('Note: Override this discount if Sale is set in another flash deal.') }}
{!! Form::label('', __('Apply this Campaign when these conditions are matched:'), ['class' => 'form-label']) !!}
@for ($i = 0; $i <= 0; $i++)
{!! Form::select( 'fields[' . $i . '][condition_option]', App\Models\FlashSale::$options, old('fields.' . $i . '.condition_option'), [ 'class' => 'form-control condition_option', 'id' => 'condition_option_' . $i, 'placeholder' => 'Select option', ], ) !!}
{!! Form::select( 'fields[' . $i . '][condition]', App\Models\FlashSale::$condition, old('fields.' . $i . '.condition'), [ 'class' => 'form-control', 'placeholder' => 'Select option', ], ) !!}
{{ Form::select('fields[' . $i . '][conditionlist][]', [], old('fields.' . $i . '.conditionlist'), ['class' => 'sub form-control select project_select multi-select', 'id' => 'options_id_' . $i, 'multiple' => ' ', 'required' => 'required', 'placeholder' => 'Select option']) }}
@endfor
{!! Form::close() !!}