feat: chat module

This commit is contained in:
amazuecos
2024-09-23 09:19:45 +02:00
parent bfea4aa67c
commit 766347ad81
28 changed files with 1598 additions and 801 deletions

View File

@ -36,23 +36,7 @@ class MensajesDirectos extends BaseResourceController
public function index()
{
// Modelos
$participantModel = model('App\Models\Mensajeria\ParticipanteModel');
$viewData = [
'pageSubTitle' => lang('Basic.global.ManageAllRecords', [lang('Paises.pais')]),
'conversacionesEntity' => new ConversacionEntity(),
'usingServerSideDataTable' => true,
];
//$viewData['conversaciones'] = $participantModel->getChatsByUser(auth()->user()->id);
$viewData['conversaciones'] = $participantModel->getChatsByUser(639);
$viewData = array_merge($this->viewData, $viewData); // merge any possible values from the parent controller class
return view(static::$viewPath . static::$indexRoute, $viewData);
return view(static::$viewPath . static::$indexRoute);
}