2018-01-17 11:19:46 +01:00
|
|
|
@if (empty($raw))
|
|
|
|
@if (strpos($label, '|') !== false)
|
|
|
|
{!! Former::select($field)
|
|
|
|
->label(Utils::getCustomLabel($label))
|
|
|
|
->addOption('', '')
|
|
|
|
->options(Utils::getCustomValues($label))
|
|
|
|
->data_bind(empty($databind) ? '' : $databind) !!}
|
|
|
|
@else
|
2018-04-05 12:12:03 +02:00
|
|
|
{!! Former::textarea($field)
|
|
|
|
->rows(1)
|
2018-01-17 11:19:46 +01:00
|
|
|
->label(e($label))
|
|
|
|
->data_bind(empty($databind) ? '' : $databind) !!}
|
|
|
|
@endif
|
|
|
|
@else
|
|
|
|
@if (strpos($label, '|') !== false)
|
|
|
|
{!! Former::select($field)
|
|
|
|
->label(Utils::getCustomLabel($label))
|
|
|
|
->addOption('', '')
|
|
|
|
->options(Utils::getCustomValues($label))
|
|
|
|
->data_bind(empty($databind) ? '' : $databind)
|
|
|
|
->addClass('form-control invoice-item')
|
|
|
|
->raw() !!}
|
|
|
|
@else
|
2018-04-05 12:12:03 +02:00
|
|
|
{!! Former::textarea($field)
|
|
|
|
->rows(1)
|
2018-01-17 11:19:46 +01:00
|
|
|
->label(e($label))
|
|
|
|
->data_bind(empty($databind) ? '' : $databind)
|
|
|
|
->addClass('form-control invoice-item')
|
|
|
|
->raw() !!}
|
|
|
|
@endif
|
|
|
|
@endif
|