2022-06-01 10:15:55 +03:00

40 lines
988 B
PHP

@if (! $attributes->has('withoutAddNew'))
<x-form.group.select
add-new
:path="$path"
:field="$field"
name="{{ $name }}"
label="{{ trans_choice('general.currencies', 1) }}"
:options="$currencies"
:selected="$selected"
change="onChangeCurrency"
:multiple="$multiple"
:group="$group"
form-group-class="{{ $formGroupClass }}"
:required="$required"
:readonly="$readonly"
:disabled="$disabled"
{{ $attributes }}
/>
@else
<x-form.group.select
name="{{ $name }}"
label="{{ trans_choice('general.currencies', 1) }}"
:options="$currencies"
:selected="$selected"
change="onChangeCurrency"
:multiple="$multiple"
:group="$group"
form-group-class="{{ $formGroupClass }}"
:required="$required"
:readonly="$readonly"
:disabled="$disabled"
{{ $attributes }}
/>
@endif