Remove extra client info fields from modal

Deleted sections displaying Servicio, Estado, and Restante information from the extraInfo modal in show-clientes.blade.php, leaving only the Contraseña and Acciones fields. This streamlines the modal and reduces displayed client details.
This commit is contained in:
Juan Felipe Duarte
2025-09-22 13:26:49 -05:00
parent 2a5c655d1e
commit 9b9ada492a
@@ -161,71 +161,11 @@
</div>
</div>
</div>
<div x-cloak x-show="extraInfo" class="mt-2 mx-2 p-2 bg-gray-200 rounded-md shadow-md"
@click.outside="extraInfo = false">
<div x-cloak x-show="extraInfo" class="mt-2 mx-2 p-2 bg-gray-200 rounded-md shadow-md" @click.outside="extraInfo = false">
<div class="mb-2">
<p class="text-center font-semibold mb-1">Contraseña</p>
<p>{{ $this->consultaPassword($cliente->id) }}</p>
</div>
<div class="mb-2">
<p class="text-center font-semibold mb-1">Servicio</p>
@if (!empty($cliente->tarifa->servicio))
<p>{{ $cliente->tarifa->servicio->nombre }}
@if ($cliente->tarifa->servicio->nombre != 'Spotify Premium' && $cliente->tarifa->servicio->nombre != 'Youtube Premium')
{{ $cliente->tarifa->pantallas }} Pantallas
@endif
</p>
@endif
@if (!empty($cliente->promocion_id))
<p>{{ $cliente->promocion->nombre }}</p>
@endif
</div>
<div class="mb-2">
<p class="text-center font-semibold mb-1">Estado</p>
<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>
</div>
<div class="mb-2">
<p class="text-center font-semibold mb-1 capitalize">Restante</p>
<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">
@php
$date1 = new DateTime(strtr(strval($fechaActual), '/', '-'));
$date2 = new DateTime(strtr(strval($cliente->fecha_final), '/', '-'));
@endphp
@if ($date1 < $date2)
<p>
@php
$diff = $date1->diff($date2);
echo $diff->days . ' dias';
@endphp
</p>
@endif
@if ($date1 > $date2)
<p>
@php
echo 'Vencido';
@endphp
</p>
@endif
@if ($date1 == $date2)
<p>
@php
echo 'Vence hoy!!';
@endphp
</p>
@endif
</p>
</div>
<div class="mb-2">
<p class="text-center font-semibold mb-1">Acciones</p>