diff --git a/resources/views/livewire/show-clientes.blade.php b/resources/views/livewire/show-clientes.blade.php index fa2aad1..8b44910 100755 --- a/resources/views/livewire/show-clientes.blade.php +++ b/resources/views/livewire/show-clientes.blade.php @@ -178,7 +178,7 @@ wire:click="verCliente({{ $cliente->id }})"> Ver
- @if (!empty($cliente->cuentas->first()->estado)) + @if (!empty($cliente->cuentas->first()->estado) && !empty($cliente->tarifa->servicio)) @if ($cliente->cuentas->first()->estado == 'pendiente' && $cliente->tarifa->servicio->renovacion == true) {{-- renovar --}} @if (Auth::user()->saldo->valor >= $cliente->tarifa->valor) @@ -262,7 +262,7 @@Ver
- @if (!empty($cliente->cuentas->first()->estado)) + @if (!empty($cliente->cuentas->first()->estado) && !empty($cliente->tarifa->servicio)) @if ($cliente->cuentas->first()->estado == 'pendiente' && $cliente->tarifa->servicio->renovacion == true) {{-- renovar --}} @if (Auth::user()->saldo->valor >= $cliente->tarifa->valor) @@ -429,7 +429,7 @@ class="sm:absolute bg-white text-center w-32 rounded-md shadow-md [&>p]:py-1 [&>p]:cursor-pointer overflow-hidden text-gray-800">Ver
- @if (!empty($cliente->cuentas->first()->estado)) + @if (!empty($cliente->cuentas->first()->estado) && !empty($cliente->tarifa->servicio)) @if ($cliente->cuentas->first()->estado == 'pendiente' && $cliente->tarifa->servicio->renovacion == true) {{-- renovar --}} @if (Auth::user()->saldo->valor >= $cliente->tarifa->valor) @@ -509,7 +509,8 @@ class="sm:absolute bg-white text-center w-32 rounded-md shadow-md [&>p]:py-1 [&>p]:cursor-pointer overflow-hidden text-gray-800">Ver
- @if (!empty($cliente->cuentas->first()->estado)) + + @if (!empty($cliente->cuentas->first()->estado) && !empty($cliente->tarifa->servicio)) @if ($cliente->cuentas->first()->estado == 'pendiente' && $cliente->tarifa->servicio->renovacion == true) {{-- renovar --}} @if (Auth::user()->saldo->valor >= $cliente->tarifa->valor)