@php
$cta1220 = $cuentas_aporte->first(function($c) { return strpos($c->codeC, '1220') === 0; });
$defaultAporteCta = $cta1220 ? $cta1220->codeC : ($cuentas_aporte->first(function($c) { return $c->codeC == '311505'; })->codeC ?? ($cuentas_aporte->first()->codeC ?? '1220'));
@endphp