{!! Form::open(['url' => action([\App\Http\Controllers\DiscountController::class, 'store']), 'method' => 'post', 'id' => 'discount_form' ]) !!}

@lang( 'lang_v1.add_discount' )

{!! Form::label('name', __( 'unit.name' ) . ':*') !!} {!! Form::text('name', null, ['class' => 'form-control', 'required', 'placeholder' => __( 'unit.name' ) ]); !!}
{!! Form::label('variation_ids', __('report.products') . ':') !!} {!! Form::select('variation_ids[]', [], null, ['id' => "variation_ids", 'class' => 'form-control', 'multiple']); !!}
{!! Form::label('brand_id', __('product.brand') . ':') !!} {!! Form::select('brand_id', $brands, null, ['placeholder' => __('messages.please_select'), 'class' => 'form-control select2']); !!}
{!! Form::label('category_id', __('product.category') . ':') !!} {!! Form::select('category_id', $categories, null, ['placeholder' => __('messages.please_select'), 'class' => 'form-control select2']); !!}
{!! Form::label('location_id', __('sale.location') . ':*') !!} {!! Form::select('location_id', $locations, null, ['placeholder' => __('messages.please_select'), 'class' => 'form-control select2', 'required']); !!}
{!! Form::label('priority', __( 'lang_v1.priority' ) . ':') !!} @show_tooltip(__('lang_v1.discount_priority_help')) {!! Form::text('priority', null, ['class' => 'form-control input_number', 'required', 'placeholder' => __( 'lang_v1.priority' ) ]); !!}
{!! Form::label('discount_type', __('sale.discount_type') . ':*') !!} {!! Form::select('discount_type', ['fixed' => __('lang_v1.fixed'), 'percentage' => __('lang_v1.percentage')], null, ['placeholder' => __('messages.please_select'), 'class' => 'form-control select2', 'required']); !!}
{!! Form::label('discount_amount', __( 'sale.discount_amount' ) . ':*') !!} {!! Form::text('discount_amount', null, ['class' => 'form-control input_number', 'required', 'placeholder' => __( 'sale.discount_amount' ) ]); !!}
{!! Form::label('starts_at', __( 'lang_v1.starts_at' ) . ':') !!} {!! Form::text('starts_at', null, ['class' => 'form-control discount_date', 'required', 'placeholder' => __( 'lang_v1.starts_at' ), 'readonly' ]); !!}
{!! Form::label('ends_at', __( 'lang_v1.ends_at' ) . ':') !!} {!! Form::text('ends_at', null, ['class' => 'form-control discount_date', 'required', 'placeholder' => __( 'lang_v1.ends_at' ), 'readonly' ]); !!}
{!! Form::label('spg', __('lang_v1.selling_price_group') . ':') !!}

{!! Form::close() !!}