This commit is contained in:
Juan Felipe Duarte
2025-06-14 09:03:54 -07:00
parent 14d6665253
commit 6789ce3fb3
5 changed files with 64 additions and 30 deletions
@@ -65,7 +65,7 @@
<x-slot name="tbody">
@foreach ($clientes as $cliente)
<tr class="table-row md:hidden border-gray-200 text-left" x-data="{ extraInfo: false, openOption: false, isOpen1: false, isOpen2: false }">
<td @click="extraInfo = true">{{ $cliente->nombre_cliente ?? $cliente->cliente->name }}</td>
<td @click="extraInfo = true">{{ $cliente->nombre_cliente ?? $cliente->cliente->name ?? '' }}</td>
<td @click="extraInfo = true" class="relative">
@if (!empty($cliente->cuentas_obsoletas->unique()))
@foreach ($cliente->cuentas_obsoletas->unique() as $cuenta)
@@ -331,15 +331,14 @@
</td>
<td @click="extraInfo = true">{{ $this->consultaPassword($cliente->id) }}</td>
<td @click="extraInfo = true">
<p
class="rounded-md font-medium text-center @if ($cliente->estado == 'activo') bg-green-500 text-white @endif @if ($cliente->estado == 'pendiente') bg-yellow-500 @endif">
<p class="rounded-md font-medium text-center @if ($cliente->estado == 'activo') bg-green-500 text-white @endif @if ($cliente->estado == 'pendiente') bg-yellow-500 @endif">
{{ $cliente->estado ?? '' }}
</p>
</td>
</tr>
<tr class="hidden md:table-row border-gray-200 text-left w-full" x-data="{ openOption: false, isOpen1: false, isOpen2: false }">
<td>{{ $cliente->nombre_cliente ?? $cliente->cliente->name }}</td>
<td>{{ $cliente->nombre_cliente ?? $cliente->cliente->name ?? '' }}</td>
<td>
@if (!empty($cliente->cuentas_obsoletas->unique()))