2022-06-07 10:47:17 +03:00
|
|
|
@if (! $attributes->has('withoutAddNew') && ! $attributes->has('without-add-new'))
|
2022-06-01 10:15:55 +03:00
|
|
|
<x-form.group.select
|
|
|
|
add-new
|
|
|
|
:path="$path"
|
|
|
|
|
|
|
|
name="{{ $name }}"
|
|
|
|
label="{{ trans_choice('general.accounts', 1) }}"
|
|
|
|
:options="$accounts"
|
|
|
|
:selected="$selected"
|
|
|
|
change="onChangeAccount"
|
|
|
|
form-group-class="{{ $formGroupClass }}"
|
|
|
|
{{ $attributes }}
|
|
|
|
/>
|
|
|
|
@else
|
|
|
|
<x-form.group.select
|
|
|
|
name="{{ $name }}"
|
|
|
|
label="{{ trans_choice('general.accounts', 1) }}"
|
|
|
|
:options="$accounts"
|
|
|
|
:selected="$selected"
|
|
|
|
change="onChangeAccount"
|
|
|
|
form-group-class="{{ $formGroupClass }}"
|
|
|
|
{{ $attributes }}
|
|
|
|
/>
|
|
|
|
@endif
|