From 7b8d44e8c8cf2c8facc1516c0c0147fb70582687 Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Tue, 26 Mar 2024 13:59:18 -0300 Subject: [PATCH] Reordenar --- .../views/ventas/pies/cuotas.blade.php | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app/resources/views/ventas/pies/cuotas.blade.php b/app/resources/views/ventas/pies/cuotas.blade.php index d912fea..a0962b9 100644 --- a/app/resources/views/ventas/pies/cuotas.blade.php +++ b/app/resources/views/ventas/pies/cuotas.blade.php @@ -60,21 +60,18 @@ {{$cuota->pago->identificador}} {{$format->pesos($cuota->pago->valor)}} - @if (in_array($cuota->pago->currentEstado->tipoEstadoPago->descripcion, ['depositado', 'abonado']) and $cuota->pago->currentEstado->fecha <= $now) + @if (in_array($cuota->pago->currentEstado->tipoEstadoPago->descripcion, ['depositado', 'abonado']) + and $cuota->pago->currentEstado->fecha <= $now) {{$format->ufs($cuota->pago->valor())}} @else ~{{$format->ufs($cuota->pago->valor / $uf_venta)}} @endif - pago->currentEstado->tipoEstadoPago->descripcion === 'abonado') - class="green" - @elseif ($cuota->pago->currentEstado->tipoEstadoPago->descripcion === 'depositado') - class="yellow" - @elseif ($cuota->pago->currentEstado->tipoEstadoPago->activo !== 1) - class="red" - @endif - >{{ucwords($cuota->pago->currentEstado->tipoEstadoPago->descripcion)}} + pago->currentEstado->tipoEstadoPago->descripcion === 'abonado' ? ' class="green"' : + ($cuota->pago->currentEstado->tipoEstadoPago->descripcion === 'depositado' ? ' class="yellow"' : + ($cuota->pago->currentEstado->tipoEstadoPago->activo !== 1 ? ' class="red"' : ''))) !!}> + {{ucwords($cuota->pago->currentEstado->tipoEstadoPago->descripcion)}} + @if (in_array($cuota->pago->currentEstado->tipoEstadoPago->descripcion, ['abonado', 'anulado', 'reemplazado'])) {{$cuota->pago->currentEstado->fecha->format('d-m-Y')}} @@ -83,11 +80,14 @@
- @if ($cuota->pago->currentEstado->tipoEstadoPago->descripcion === 'depositado') - @endif