82 lines
2.2 KiB
PHP
Raw Normal View History

@if ((! $attributes->has('withoutRemote') && ! $attributes->has('without-remote')) && (! $attributes->has('withoutAddNew') && ! $attributes->has('without-add-new')))
2022-06-01 10:15:55 +03:00
<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('without-remote')) && (! $attributes->has('withoutAddNew') && ! $attributes->has('without-add-new')))
2022-06-01 10:15:55 +03:00
<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('without-remote')) && ($attributes->has('withoutAddNew') && $attributes->has('without-add-new')))
2022-06-01 10:15:55 +03:00
<x-form.group.select
remote
remote_action="{{ $remoteAction }}
2022-06-01 10:15:55 +03:00
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