<!-- Modal -->
<div class="modal fade" id="modalNewDirectMessage" tabindex="-1" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel1"><?= lang('Chat.modal.new_message') ?></h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <div class="col-12 mb-0">
                    <?= view("themes/vuexy/components/alerts/alert", ["id" => "alertDirectMessage"]) ?>
                </div>
                <form id="formNewDirectMessage">
                    <div class="form-group">
                        <div class="row">

                            <div class="col-12 mb-0">
                                <label for="new-direct-message-title" class="form-label"><?= lang('Chat.modal.title') ?></label>
                                <input type="input" rows="4" cols="10" id="new-direct-message-title" name="title" placeholder="Escriba un título" name="title" class="form-control" required />
                            </div>
                            <div class="col-12 mb-0">
                                <label for="description" class="required form-label"><?= lang('Chat.modal.new_message') ?></label>
                                <textarea type="input" rows="4" cols="10" id="new-direct-message-text" name="message" placeholder="Escribe el mensaje ..." name="message" class="form-control" required></textarea>
                            </div>
                            <div class="col-12 mb-0">
                                <label for="select-users" class="required form-label"><?= lang('Chat.modal.new_receivers') ?></label>
                                <select id="select-users" name="users" class="form-control" multiple required>
                                    <option value="0"></option>
                                </select>
                            </div>


                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-label-secondary" data-bs-dismiss="modal"><?= lang('App.global_come_back') ?></button>
                <?php if (auth()->user()->inGroup('admin')) { ?>
                    <button type="button" id="submit-new-direct-message" class="btn btn-primary"><?= lang('Chat.modal.btn_send') ?></button>
                <?php } ?>


            </div>
        </div>
    </div>
</div>