82 lines
2.0 KiB
PHP
Raw Normal View History

2022-06-01 10:15:55 +03:00
@if ((! $attributes->has('withoutRemote')) && (! $attributes->has('withoutAddNew')))
<x-form.group.select
remote
remote_action="{{ $remoteAction }}"
add-new
path="{{ $path }}"
add-new
name="{{ $name }}"
2022-06-03 09:12:58 +03:00
label="{!! $label !!}"
2022-06-01 10:15:55 +03:00
:options="$contacts"
:selected="$selected"
:multiple="$multiple"
:group="$group"
form-group-class="{{ $formGroupClass }}"
:required="$required"
:readonly="$readonly"
:disabled="$disabled"
{{ $attributes }}
/>
@elseif (($attributes->has('withoutRemote')) && (! $attributes->has('withoutAddNew')))
<x-form.group.select
add-new
path="{{ $path }}"
add-new
name="{{ $name }}"
2022-06-03 09:12:58 +03:00
label="{!! $label !!}"
2022-06-01 10:15:55 +03:00
:options="$contacts"
:selected="$selected"
:multiple="$multiple"
:group="$group"
form-group-class="{{ $formGroupClass }}"
:required="$required"
:readonly="$readonly"
:disabled="$disabled"
{{ $attributes }}
/>
@elseif ((!$attributes->has('withoutRemote')) && ($attributes->has('withoutAddNew')))
<x-form.group.select
remote
remote_action="{{ $remoteAction }}"
add-new
name="{{ $name }}"
2022-06-03 09:12:58 +03:00
label="{!! $label !!}"
2022-06-01 10:15:55 +03:00
:options="$contacts"
:selected="$selected"
:multiple="$multiple"
:group="$group"
form-group-class="{{ $formGroupClass }}"
:required="$required"
:readonly="$readonly"
:disabled="$disabled"
{{ $attributes }}
/>
@else
<x-form.group.select
add-new
name="{{ $name }}"
2022-06-03 09:12:58 +03:00
label="{!! $label !!}"
2022-06-01 10:15:55 +03:00
:options="$contacts"
:selected="$selected"
:multiple="$multiple"
:group="$group"
form-group-class="{{ $formGroupClass }}"
:required="$required"
:readonly="$readonly"
:disabled="$disabled"
{{ $attributes }}
/>
@endif