feat: página de comprobantes, búsqueda por email en conversaciones, quitar menús del bot
- Nueva página /chat/comprobantes: tabla paginada de solicitudes_recarga con búsqueda por email/nombre, filtros por estado y canal, botón "Ver chat" - ShowConversaciones: búsqueda también por email del usuario autenticado - ShowConversaciones: soporta ?conv=ID para abrir conversación desde comprobantes - Nav: reemplaza "Menús del Bot" (no funcional) por "Comprobantes" - SolicitudRecarga: relación user() agregada - ChatController: método comprobantes() agregado Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
1572fb72cd
commit
60ddc4b9df
Regular → Executable
+11
-1
@@ -15,6 +15,15 @@ class ShowConversaciones extends Component
|
||||
public string $replyText = '';
|
||||
public array $mensajes = [];
|
||||
|
||||
protected $queryString = ['convSelecId' => ['except' => null, 'as' => 'conv']];
|
||||
|
||||
public function mount(): void
|
||||
{
|
||||
if ($this->convSelecId) {
|
||||
$this->cargarMensajes();
|
||||
}
|
||||
}
|
||||
|
||||
public function selectConv(int $convId): void
|
||||
{
|
||||
$this->convSelecId = $convId;
|
||||
@@ -124,7 +133,8 @@ class ShowConversaciones extends Component
|
||||
$q->whereHas('contact', function ($s) {
|
||||
$s->where('nombre', 'like', "%{$this->busqueda}%")
|
||||
->orWhere('telefono', 'like', "%{$this->busqueda}%")
|
||||
->orWhere('canal_id', 'like', "%{$this->busqueda}%");
|
||||
->orWhere('canal_id', 'like', "%{$this->busqueda}%")
|
||||
->orWhereHas('user', fn($u) => $u->where('email', 'like', "%{$this->busqueda}%"));
|
||||
});
|
||||
})
|
||||
->orderByDesc('ultimo_mensaje_at')
|
||||
|
||||
Reference in New Issue
Block a user