@show_tooltip(__('lang_v1.recurring_expense_help'))
{!! Form::label('recur_interval', __('lang_v1.recur_interval') . ':*' ) !!}
{!! Form::number('recur_interval', !empty($expense->recur_interval) ? $expense->recur_interval : null, ['class' => 'form-control', 'style' => 'width: 50%;']); !!} {!! Form::select('recur_interval_type', ['days' => __('lang_v1.days'), 'months' => __('lang_v1.months'), 'years' => __('lang_v1.years')], !empty($expense->recur_interval_type) ? $expense->recur_interval_type : 'days', ['class' => 'form-control', 'style' => 'width: 50%;', 'id' => 'recur_interval_type']); !!}
{!! Form::label('recur_repetitions', __('lang_v1.no_of_repetitions') . ':' ) !!} {!! Form::number('recur_repetitions', !empty($expense->recur_repetitions) ? $expense->recur_repetitions : null, ['class' => 'form-control']); !!}

@lang('lang_v1.recur_expense_repetition_help')

@php $repetitions = []; for ($i=1; $i <= 30; $i++) { $repetitions[$i] = str_ordinal($i); } @endphp
{!! Form::label('subscription_repeat_on', __('lang_v1.repeat_on') . ':' ) !!} {!! Form::select('subscription_repeat_on', $repetitions, !empty($expense->subscription_repeat_on) ? $expense->subscription_repeat_on : null, ['class' => 'form-control', 'placeholder' => __('messages.please_select')]); !!}