2019-11-22 15:16:57 +03:00
|
|
|
@stack($name . '_input_start')
|
|
|
|
|
2020-02-01 13:32:43 +03:00
|
|
|
<div
|
2020-02-01 18:47:15 +03:00
|
|
|
class="form-group {{ $col }}{{ isset($attributes['required']) ? ' required' : '' }}{{ isset($attributes['readonly']) ? ' readonly' : '' }}{{ isset($attributes['disabled']) ? ' disabled' : '' }}"
|
2020-02-01 13:32:43 +03:00
|
|
|
:class="[{'has-error': {{ isset($attributes['v-error']) ? $attributes['v-error'] : 'form.errors.get("' . $name . '")' }} }]">
|
2020-02-01 18:47:15 +03:00
|
|
|
@if (!empty($text))
|
|
|
|
{!! Form::label($name, $text, ['class' => 'form-control-label'])!!}
|
|
|
|
@endif
|
2019-11-22 15:16:57 +03:00
|
|
|
|
2020-02-01 13:32:43 +03:00
|
|
|
<html-editor
|
2020-02-14 14:56:58 +03:00
|
|
|
name="{{ $name }}"
|
2020-01-20 18:16:56 +03:00
|
|
|
|
2020-02-01 13:32:43 +03:00
|
|
|
@if (!empty($attributes['v-model']))
|
|
|
|
:value="{{ $attributes['v-model'] . ' = ' . $value }}"
|
|
|
|
@elseif (!empty($attributes['data-field']))
|
|
|
|
:value="{{ 'form.' . $attributes['data-field'] . '.' . $name . ' = '. $value }}"
|
|
|
|
@else
|
|
|
|
:value="form.{{ $name }} = '{{ $value }}'"
|
|
|
|
@endif
|
2020-01-20 18:16:56 +03:00
|
|
|
|
2020-02-01 13:32:43 +03:00
|
|
|
@if (!empty($attributes['v-model']))
|
|
|
|
@input="{{ $attributes['v-model'] . ' = $event' }}"
|
|
|
|
@elseif (!empty($attributes['data-field']))
|
|
|
|
@input="{{ 'form.' . $attributes['data-field'] . '.' . $name . ' = $event' }}"
|
|
|
|
@else
|
|
|
|
@input="form.{{ $name }} = $event"
|
|
|
|
@endif
|
2020-02-01 18:47:15 +03:00
|
|
|
|
|
|
|
@if (isset($attributes['disabled']))
|
|
|
|
:disabled="'{{ $attributes['disabled'] }}'"
|
|
|
|
@endif
|
|
|
|
></html-editor>
|
2019-11-22 15:16:57 +03:00
|
|
|
|
2020-02-01 13:32:43 +03:00
|
|
|
<div class="invalid-feedback d-block"
|
|
|
|
v-if="{{ isset($attributes['v-error']) ? $attributes['v-error'] : 'form.errors.has("' . $name . '")' }}"
|
|
|
|
v-html="{{ isset($attributes['v-error-message']) ? $attributes['v-error-message'] : 'form.errors.get("' . $name . '")' }}">
|
|
|
|
</div>
|
2019-11-22 15:16:57 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@stack($name . '_input_end')
|