2019-11-16 10:21:14 +03:00
|
|
|
@stack($name . '_input_start')
|
2020-02-01 13:32:43 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
<akaunting-select
|
2020-02-01 13:32:43 +03:00
|
|
|
class="{{ $col }}{{ isset($attributes['required']) ? ' required' : '' }}{{ isset($attributes['disabled']) ? ' disabled' : '' }}"
|
2020-01-20 18:16:56 +03:00
|
|
|
|
|
|
|
@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 }}"
|
2019-11-16 10:21:14 +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-01-03 14:04:00 +03:00
|
|
|
:add-new="{{ json_encode([
|
|
|
|
'status' => true,
|
2020-01-23 10:55:42 +03:00
|
|
|
'text' => trans('general.add_new'),
|
2020-01-03 14:04:00 +03:00
|
|
|
'path' => isset($attributes['path']) ? $attributes['path']: false,
|
|
|
|
'type' => isset($attributes['type']) ? $attributes['type'] : 'modal',
|
2020-01-13 12:37:05 +03:00
|
|
|
'field' => isset($attributes['field']) ? $attributes['field'] : 'name',
|
|
|
|
'buttons' => [
|
|
|
|
'cancel' => [
|
|
|
|
'text' => trans('general.cancel'),
|
|
|
|
'icon' => 'fas fa-times',
|
|
|
|
'class' => 'btn-outline-secondary'
|
|
|
|
],
|
|
|
|
'confirm' => [
|
|
|
|
'text' => trans('general.save'),
|
|
|
|
'icon' => 'fas fa-save',
|
|
|
|
'class' => 'btn-success'
|
|
|
|
]
|
|
|
|
]
|
2020-01-03 14:04:00 +03:00
|
|
|
])}}"
|
2020-01-20 18:16:56 +03:00
|
|
|
|
|
|
|
@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
|
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
@if (!empty($attributes['change']))
|
|
|
|
@change="{{ $attributes['change'] }}($event)"
|
|
|
|
@endif
|
2020-01-20 18:16:56 +03:00
|
|
|
|
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-01-20 18:16:56 +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') }}"
|
2019-11-16 10:21:14 +03:00
|
|
|
></akaunting-select>
|
2020-02-01 13:32:43 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
@stack($name . '_input_end')
|