send direct message to client users from presupuesto,facturas or pedido forms

This commit is contained in:
amazuecos
2024-12-15 17:57:22 +01:00
parent 7998e2424e
commit 4cacf28d49
12 changed files with 288 additions and 12 deletions

View File

@ -1,7 +1,11 @@
<div class="col-md-12" id="chat-presupuesto" data-id="<?= $modelId ?>">
<div class="app-chat card overflow-hidden">
<?php if (auth()->user()->inGroup('admin')) { ?>
<div class="d-flex justify-content-start align-items-start gap-2 mb-3">
<button class="btn btn-primary btn-md" id="direct-message-cliente"><i class="ti ti-xs ti-message"></i> Mensaje directo a cliente</button>
</div>
<?php } ?>
<div class="app-chat card overflow-hidden border">
<div class="row g-0">
<!-- Chat & Contacts -->
<div class="col app-chat-contacts app-sidebar flex-grow-0 overflow-hidden border-end"
id="app-chat-contacts">
@ -30,8 +34,8 @@
</div>
<!-- Chats -->
<ul class="list-unstyled chat-contact-list" id="chat-list">
<!-- CHAT LIST -->
</ul>
@ -116,6 +120,7 @@
<div class="app-overlay"></div>
</div>
</div>
<?= view("themes/vuexy/components/modals/modalNewDirectMessageClient", ["modelId" => $modelId]) ?>
</div>
<?= $this->section('css') ?>