update
This commit is contained in:
@@ -126,6 +126,8 @@
|
||||
</td>
|
||||
@endif
|
||||
|
||||
{{$cliente->tarifa->valor}}
|
||||
|
||||
@if (!empty($cliente->tarifa_id))
|
||||
<td class=" w-[1rem]">
|
||||
<button
|
||||
@@ -156,15 +158,22 @@
|
||||
<button x-on:click="openOption=!openOption"
|
||||
wire:click="verCliente({{ $cliente->id }})"
|
||||
class="text-gray-500 w-full py-1 hover:bg-gray-200 border-b border-gray-300 hover:rounded-t-[1rem]">Ver</button>
|
||||
|
||||
@if (!empty($cliente->cuentas->first()->estado))
|
||||
|
||||
@if (!empty($cliente->cuentas->first()->estado))
|
||||
@if ($cliente->cuentas->first()->estado == 'pendiente' && $cliente->tarifa->servicio->renovacion == true)
|
||||
{{-- renovar --}}
|
||||
<button x-on:click="openOption=!openOption"
|
||||
wire:click="renovar({{ $cliente->id }})"
|
||||
class="text-gray-500 w-full py-1 hover:bg-gray-200 border-b border-gray-300 hover:rounded-t-[1rem]">Renovar</button>
|
||||
|
||||
@if (Auth::user()->saldo->valor >= $cliente->tarifa->valor)
|
||||
<button x-on:click="openOption=!openOption"
|
||||
wire:click="renovar({{ $cliente->id }})"
|
||||
class="text-gray-500 w-full py-1 hover:bg-gray-200 border-b border-gray-300">Renovar</button>
|
||||
@else
|
||||
<button
|
||||
class="text-gray-500 w-full py-1 hover:bg-gray-200 border-b border-gray-300 active:bg-red-500 active:text-white cursor-not-allowed">Renovar</button>
|
||||
@endif
|
||||
@endif
|
||||
@endif
|
||||
|
||||
{{-- whatsapp --}}
|
||||
<a x-on:click="openOption=!openOption" target="_blank"
|
||||
href="https://wa.me/57{{ $cliente->cliente->celular ?? '' }}?text=Hola *{{ $cliente->cliente->name ?? '' }}* tu servicio de *{{ $cliente->tarifa->servicio->nombre }} de {{ $cliente->tarifa->pantallas }} pantallas * vence el *{{ $cliente->fecha_final }}*"
|
||||
|
||||
Reference in New Issue
Block a user