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