{!! Former::text('fee_amount')
->label('amount')
->onchange('updateFeeSample()')
->type('number')
->step('any') !!}
{!! Former::text('fee_percent')
->label('percent')
->onchange('updateFeeSample()')
->type('number')
->step('any')
->append('%') !!}
@if ($account->invoice_item_taxes)
{!! Former::select('tax_rate1')
->onchange('onTaxRateChange(1)')
->addOption('', '')
->label(trans('texts.tax_rate'))
->fromQuery($taxRates, function($model) { return $model->name . ': ' . $model->rate . '%'; }, 'public_id') !!}
@if ($account->enable_second_tax_rate)
{!! Former::select('tax_rate2')
->onchange('onTaxRateChange(2)')
->addOption('', '')
->label(trans('texts.tax_rate'))
->fromQuery($taxRates, function($model) { return $model->name . ': ' . $model->rate . '%'; }, 'public_id') !!}
@endif
@endif
{!! Former::text('fee_tax_name1') !!}
{!! Former::text('fee_tax_rate1') !!}
{!! Former::text('fee_tax_name2') !!}
{!! Former::text('fee_tax_rate2') !!}
@if ($account->gateway_fee_enabled && !$account->invoice_item_taxes && $account->invoice_taxes && count($taxRates))
{{ trans('texts.fees_tax_help') }}
@endif
{{ trans('texts.gateway_fees_disclaimer') }}