<div class="modobox-sub-header-modify-element-name">{{ $name }}</div>

<div class="row margin-bottom-0">
	<div class="col-sm-12 information_messages_manage p-2">
		<div class="alert alert-info noradius mb-0">
			<div class="bg-blue alert-icon">
				<i class="glyph-icon icon-info"></i>
			</div>
			<div class="alert-content">
				<h4 class="alert-title">{{ __('informations') }}</h4>
				<p>{{ __('manage_clients_for_user') }}</p>
			</div>
		</div>
	</div>
</div>

<div class="row">
	<div class="col-sm-12">
		<div class="content-box noborder noradius mb-0" id="user_client_content_box">
			<h3 class="content-box-header noradius bg-default" id="toggle_button_user_clients">
				<span class="header-wrapper">
					<i class="glyph-icon icon-caret-right mr-1"></i>
					{{ __('clients') }}
					<span class="bs-badge badge-info {{ $label_opacity }}">
						{{ count($clients_selected) }}
					</span>
				</span>
				<div class="header-buttons-separator">
					<a href="#" id="user_clients_assoc_submit" class="assoc-submit-btn hidden icon-separator">
						<i class="glyph-icon icon-save"></i>
					</a>
				</div>
			</h3>
			<div class="content-box-wrapper noradius" style="display:none;">
				<div id="user_clients_assoc_list">
					<form class="form-horizontal form_inline" name="user_clients_assoc_form" onsubmit="return false;" method="POST">
						<div class="form-group margin-bottom-0">
							<div class="col-sm-12 padding-left-15 padding-right-15">
								<input type="hidden" name="user_id_client_assoc" id="user_id_client_assoc" value="{{ $id }}" class="form-control" />
								<select multiple class="multi-select form-no-control" name="user_clients_list" id="user_clients_list">
									@foreach ($clients as $client)
										<option value="{{ $client->id }}" {{ !($client->active) ? 'disabled' : '' }}  {{ in_array($client->id, $clients_selected ?? []) ? 'selected' : '' }}>
											{{ $client->name }}
										</option>
									@endforeach
								</select>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>

