2018-08-04 19:07:32 +03:00
|
|
|
@stack($name . '_input_start')
|
2019-11-16 10:21:14 +03:00
|
|
|
<akaunting-select
|
|
|
|
class="{{ $col }} {{ isset($attributes['required']) ? 'required' : '' }}"
|
|
|
|
:form-classes="[{'has-error': {{ isset($attributes['v-error']) ? $attributes['v-error'] : 'form.errors.get("' . $name . '")' }} }]"
|
|
|
|
:title="'{{ $text }}'"
|
|
|
|
:placeholder="'{{ trans('general.form.select.field', ['field' => $text]) }}'"
|
|
|
|
:name="'{{ $name }}'"
|
|
|
|
:options="{{ json_encode($values) }}"
|
2020-01-01 15:57:21 +03:00
|
|
|
:value="'{{ old($name, $selected) }}'"
|
2019-11-16 10:21:14 +03:00
|
|
|
:icon="'{{ $icon }}'"
|
|
|
|
@interface="{{ !empty($attributes['v-model']) ? $attributes['v-model'] . ' = $event' : 'form.' . $name . ' = $event' }}"
|
|
|
|
@if (!empty($attributes['change']))
|
|
|
|
@change="{{ $attributes['change'] }}($event)"
|
|
|
|
@endif
|
2019-12-20 20:12:43 +03:00
|
|
|
@if (isset($attributes['disabled']))
|
|
|
|
:disabled="{{ $attributes['disabled'] }}"
|
|
|
|
@endif
|
2019-11-16 10:21:14 +03:00
|
|
|
@if(isset($attributes['v-error-message']))
|
|
|
|
:form-error="{{ $attributes['v-error-message'] }}"
|
|
|
|
@else
|
|
|
|
:form-error="form.errors.get('{{ $name }}')"
|
|
|
|
@endif
|
2020-01-18 11:45:03 +03:00
|
|
|
:no-data="'{{ trans('general.no_data') }}'"
|
|
|
|
:no-matching-data="'{{ trans('general.no_matching_data') }}'"
|
2019-11-16 10:21:14 +03:00
|
|
|
></akaunting-select>
|
2018-08-04 19:07:32 +03:00
|
|
|
@stack($name . '_input_end')
|