freescout-customers-groups/Resources/views/conversations/partials/groups-selection.blade.php
Antoine Le Gonidec 48c129c812
Add the ability to select Customers Groups when starting a new Conversation
This is only a cosmetic addition for now, the selected groups are ignored when the form is submitted.
2024-07-18 16:18:10 +02:00

36 lines
939 B
PHP

<?php
/*
SPDX-License-Identifier: AGPL-3.0-only
SPDX-FileCopyrightText: © 2024 Millions Missing FRANCE <info@millionsmissing.fr>
*/
?>
@include('partials/flash_messages')
<!-- List of Customers Groups that should be included in this Conversation -->
<div class="form-group{{ $errors->has('groups') ? ' has-error' : '' }}">
<label for="groups" class="col-sm-2 control-label">{{ __('Groups selection') }}</label>
<div class="col-sm-9">
<div class="multi-container">
@foreach ( $groups as $group )
<div class="control-group">
<div class="controls">
<label
class="control-label checkbox"
for="group-{{ $group->id }}"
style="text-align: left;"
>
<input
type="checkbox"
name="groups[]"
id="group-{{ $group->id }}"
value="{{ $group->id }}"
>
{{ $group->name }}
</label>
</div>
</div>
@endforeach
</div>
</div>
</div>