fix(chat): renombrar transferencia bancaria a Bre-B y clave a llave
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
9b76f63aa0
commit
4ddfdaeecc
@@ -850,7 +850,7 @@ class PublicChat extends Component
|
||||
'contenido' => "Recarga de $" . number_format($monto) . "\n¿Como quieres pagar?",
|
||||
'payload' => ['botones' => [
|
||||
['label' => 'MercadoPago', 'action' => 'recarga.mp', 'data' => ['monto' => $monto]],
|
||||
['label' => 'Transferencia bancaria', 'action' => 'recarga.transferencia', 'data' => ['monto' => $monto]],
|
||||
['label' => 'Bre-B', 'action' => 'recarga.transferencia', 'data' => ['monto' => $monto]],
|
||||
['label' => 'Volver', 'action' => 'recarga.iniciar', 'data' => []],
|
||||
]],
|
||||
'leido' => true,
|
||||
@@ -864,11 +864,11 @@ class PublicChat extends Component
|
||||
}
|
||||
|
||||
$banco = \App\Models\ChatConfig::get('recarga_banco_nombre', '');
|
||||
$clave = \App\Models\ChatConfig::get('recarga_banco_clave', '');
|
||||
$clave = \App\Models\ChatConfig::get('recarga_banco_llave', '');
|
||||
$titular = \App\Models\ChatConfig::get('recarga_banco_titular', '');
|
||||
|
||||
if (! $clave) {
|
||||
$this->guardarMensajeBot($this->convId, "La transferencia bancaria no esta disponible en este momento. Usa MercadoPago o contacta a un asesor.");
|
||||
$this->guardarMensajeBot($this->convId, "El pago por Bre-B no esta disponible en este momento. Usa MercadoPago o contacta a un asesor.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -26,9 +26,9 @@ class ShowConfiguracionChat extends Component
|
||||
public string $validacion_accion_auto = 'solo_notificar';
|
||||
public string $validacion_monto_tolerancia = '0';
|
||||
|
||||
// ── Transferencia bancaria ─────────────────────────────────
|
||||
// ── Bre-B ─────────────────────────────────────────────────
|
||||
public string $recarga_banco_nombre = '';
|
||||
public string $recarga_banco_clave = '';
|
||||
public string $recarga_banco_llave = '';
|
||||
public string $recarga_banco_titular = '';
|
||||
|
||||
public function mount(): void
|
||||
@@ -37,7 +37,7 @@ class ShowConfiguracionChat extends Component
|
||||
'telegram_token', 'mensaje_bienvenida', 'mensaje_transferencia',
|
||||
'gemini_api_key', 'gemini_habilitado', 'gemini_prompt_extra',
|
||||
'validacion_foto_habilitada', 'validacion_accion_auto', 'validacion_monto_tolerancia',
|
||||
'recarga_banco_nombre', 'recarga_banco_clave', 'recarga_banco_titular',
|
||||
'recarga_banco_nombre', 'recarga_banco_llave', 'recarga_banco_titular',
|
||||
];
|
||||
|
||||
$defaults = [
|
||||
@@ -59,7 +59,7 @@ class ShowConfiguracionChat extends Component
|
||||
'mensaje_transferencia' => 'required|string|max:500',
|
||||
'validacion_monto_tolerancia' => 'nullable|integer|min:0',
|
||||
'recarga_banco_nombre' => 'nullable|max:60',
|
||||
'recarga_banco_clave' => 'nullable|max:60',
|
||||
'recarga_banco_llave' => 'nullable|max:60',
|
||||
'recarga_banco_titular' => 'nullable|max:100',
|
||||
]);
|
||||
|
||||
@@ -67,7 +67,7 @@ class ShowConfiguracionChat extends Component
|
||||
'telegram_token', 'mensaje_bienvenida', 'mensaje_transferencia',
|
||||
'gemini_api_key', 'gemini_habilitado', 'gemini_prompt_extra',
|
||||
'validacion_foto_habilitada', 'validacion_accion_auto', 'validacion_monto_tolerancia',
|
||||
'recarga_banco_nombre', 'recarga_banco_clave', 'recarga_banco_titular',
|
||||
'recarga_banco_nombre', 'recarga_banco_llave', 'recarga_banco_titular',
|
||||
];
|
||||
|
||||
foreach ($keys as $key) {
|
||||
|
||||
@@ -397,7 +397,7 @@
|
||||
<svg class="w-4 h-4 text-blue-400 flex-shrink-0" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M12 21v-8.25M15.75 21v-8.25M8.25 21v-8.25M3 9l9-6 9 6m-1.5 12V10.332A48.36 48.36 0 0 0 12 9.75c-2.551 0-5.056.2-7.5.582V21M3 21h18M12 6.75h.008v.008H12V6.75Z" />
|
||||
</svg>
|
||||
<p class="text-blue-300 text-xs font-semibold uppercase tracking-wider">Transferencia bancaria</p>
|
||||
<p class="text-blue-300 text-xs font-semibold uppercase tracking-wider">Pago por Bre-B</p>
|
||||
</div>
|
||||
<div class="px-4 py-3 space-y-3">
|
||||
@if (!empty($payload['banco']))
|
||||
@@ -407,7 +407,7 @@
|
||||
</div>
|
||||
@endif
|
||||
<div class="bg-[#0b141a] rounded-xl px-4 py-3 text-center">
|
||||
<p class="text-[#8696a0] text-[11px] mb-1">Número / Clave</p>
|
||||
<p class="text-[#8696a0] text-[11px] mb-1">Llave Bre-B</p>
|
||||
<p class="text-[#00a884] text-xl font-bold font-mono tracking-widest">{{ $payload['clave'] ?? '' }}</p>
|
||||
</div>
|
||||
@if (!empty($payload['titular']))
|
||||
|
||||
@@ -116,22 +116,22 @@
|
||||
|
||||
<hr class="border-gray-100">
|
||||
|
||||
{{-- Transferencia bancaria --}}
|
||||
{{-- Bre-B --}}
|
||||
<div>
|
||||
<h3 class="text-sm font-bold text-gray-700 mb-1">Transferencia bancaria</h3>
|
||||
<p class="text-xs text-gray-400 mb-4">Datos que se muestran al cliente cuando elige pagar por transferencia. Deja vacío para deshabilitar esta opción.</p>
|
||||
<h3 class="text-sm font-bold text-gray-700 mb-1">Pago por Bre-B</h3>
|
||||
<p class="text-xs text-gray-400 mb-4">Datos que se muestran al cliente cuando elige pagar por Bre-B. Deja la llave vacía para deshabilitar esta opción.</p>
|
||||
<div class="space-y-4">
|
||||
<div>
|
||||
<label class="block text-sm font-semibold text-gray-700 mb-1">Banco / Billetera</label>
|
||||
<input wire:model.defer="recarga_banco_nombre" type="text" placeholder="Ej: Nequi, Bancolombia, Daviplata"
|
||||
<input wire:model.defer="recarga_banco_nombre" type="text" placeholder="Ej: Bancolombia, Nequi, Daviplata"
|
||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 text-sm focus:ring-2 focus:ring-emerald-500 outline-none">
|
||||
@error('recarga_banco_nombre') <span class="text-red-500 text-xs">{{ $message }}</span> @enderror
|
||||
</div>
|
||||
<div>
|
||||
<label class="block text-sm font-semibold text-gray-700 mb-1">Número / Clave</label>
|
||||
<input wire:model.defer="recarga_banco_clave" type="text" placeholder="Ej: 3001234567"
|
||||
<label class="block text-sm font-semibold text-gray-700 mb-1">Llave Bre-B</label>
|
||||
<input wire:model.defer="recarga_banco_llave" type="text" placeholder="Ej: 3001234567"
|
||||
class="w-full border border-gray-300 rounded-lg px-3 py-2 text-sm focus:ring-2 focus:ring-emerald-500 outline-none font-mono">
|
||||
@error('recarga_banco_clave') <span class="text-red-500 text-xs">{{ $message }}</span> @enderror
|
||||
@error('recarga_banco_llave') <span class="text-red-500 text-xs">{{ $message }}</span> @enderror
|
||||
</div>
|
||||
<div>
|
||||
<label class="block text-sm font-semibold text-gray-700 mb-1">Titular de la cuenta</label>
|
||||
|
||||
Reference in New Issue
Block a user