Crédito @if ($credito !== null) @else @endif @if ($credito !== null) {{ $format->percent($credito->pago->valor() / $venta->valor, 2, true) }} {{$format->ufs($credito->pago->valor())}} {{$format->pesos($credito->pago->valor)}} {{$credito->pago->currentEstado->fecha->format('d-m-Y')}} @if ($credito->pago->currentEstado->tipoEstadoPago->descripcion === 'no pagado') @elseif($credito->pago->currentEstado->tipoEstadoPago->descripcion === 'depositado') @endif Banco: {{$credito->pago->banco?->nombre}} @else @endif