@stack($name . '_input_start')
    <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) }}"
        :value="'{{ old($name, $selected) }}'"
        :icon="'{{ $icon }}'"
        :add-new="{{ json_encode([
            'status' => true,
            'text' => trans('general.form.add_new', ['field' => $text]),
            'path' => isset($attributes['path']) ? $attributes['path']: false,
            'type' => isset($attributes['type']) ? $attributes['type'] : 'modal',
            'field' => isset($attributes['field']) ? $attributes['field'] : 'name'
        ])}}"
        :group="true"
        @interface="{{ !empty($attributes['v-model']) ? $attributes['v-model'] . ' = $event' : 'form.' . $name . ' = $event' }}"
        @if (!empty($attributes['change']))
        @change="{{ $attributes['change'] }}($event)"
        @endif
        :form-error="{{ isset($attributes['v-error-message']) ? $attributes['v-error-message'] : 'form.errors.get("' . $name . '")' }}"
    ></akaunting-select>
@stack($name . '_input_end')
