{!! Form::open(['url' => action([\App\Http\Controllers\LedgerDiscountController::class, 'store']), 'method' => 'post', 'id' => 'add_discount_form' ]) !!}
{!! Form::label('discount_date', __( 'lang_v1.date' ) . ':*') !!}
{!! Form::text('date', null, ['class' => 'form-control', 'required', 'placeholder' => __( 'lang_v1.date' ), 'id' => 'discount_date']); !!}
{!! Form::label('amount', __( 'sale.amount' ) . ':*') !!}
{!! Form::text('amount', null, ['class' => 'form-control input_number', 'required', 'placeholder' => __( 'sale.amount' ) ]); !!}
@if($contact->type == 'both')
{!! Form::label('sub_type', __( 'lang_v1.discount_for' ) . ':') !!}
{!! Form::select('sub_type', ['sell_discount' => __('sale.sale'), 'purchase_discount' => __('lang_v1.purchase')], 'sell', ['class' => 'form-control', 'required' ]); !!}
@endif
{!! Form::label('note', __( 'brand.note' ) . ':') !!}
{!! Form::textarea('note', null, ['class' => 'form-control', 'placeholder' => __( 'brand.note'), 'rows' => 3 ]); !!}