{{ Form::text('code', Request::old('code'), array('id'=>'code','autocomplete'=>'off','class' => "form-control ".APFrmErrHelp::hasError($errors, 'code')." ",'placeholder' => 'Enter code')) }}
{!! APFrmErrHelp::showErrors($errors, 'code') !!}
{!! Form::select('type',['' => __('Select Discount Type'),'flat' => __('Flat'),'percentage' => __('Percentage')], '', array('class'=>"form-control ".APFrmErrHelp::hasError($errors, 'type')." ", 'id'=>'type')) !!}
{!! APFrmErrHelp::showErrors($errors, 'type') !!}
{{ Form::text('amount', Request::old('amount'), array('id'=>'amount','autocomplete'=>'off','maxlength' => 13,'onkeypress'=>"return /[0-9]/.test(String.fromCharCode(((event||window.event).which||(event||window.event).which)))",'class' => "form-control ".APFrmErrHelp::hasError($errors, 'amount')." ",'placeholder' => 'Enter amount')) }}
{!! APFrmErrHelp::showErrors($errors, 'amount') !!}
{{ Form::text('usage_limit', Request::old('usage_limit'), array('id'=>'usage_limit','autocomplete'=>'off','class' => "form-control ".APFrmErrHelp::hasError($errors, 'usage_limit')." ",'placeholder' => 'Enter usage limit (per user)')) }}
{!! APFrmErrHelp::showErrors($errors, 'usage_limit') !!}
{{ Form::date('start_date', Request::old('start_date'), array('id'=>'start_date','autocomplete'=>'off','class' => "form-control ".APFrmErrHelp::hasError($errors, 'start_date')." ",'placeholder' => 'Enter start date')) }}
{!! APFrmErrHelp::showErrors($errors, 'start_date') !!}
{{ Form::date('end_date', Request::old('end_date'), array('id'=>'end_date','autocomplete'=>'off','class' => "form-control ".APFrmErrHelp::hasError($errors, 'end_date')." ",'placeholder' => 'Enter end date')) }}
{!! APFrmErrHelp::showErrors($errors, 'end_date') !!}
Active
Inactive
{{ Form::close() }}