{{-- Formato oficial de recibo (Anexo Reforma Laboral Ley 27.802): COSTO TOTAL EMPLEADOR -> contribuciones -> SUB TOTAL CONTRIBUCIONES EMPLEADOR -> SUELDO BRUTO. Se imprime SIEMPRE, aunque el recibo no tenga contribuciones. --}} @php $fmtm = function ($v) { return '$ ' . number_format((float) $v, 2, ',', '.'); }; $contribs = $recibo_num['recibo']['contribuciones']; // "Costo derivado del CCT": contribuciones de sindicatos/convenio (tipo 6). El resto va como contribuciones generales. $contribs_generales = $contribs->filter(function ($c) { return (int) ($c->syj_concepto->syj_contribuciones_tipo_id ?? 0) !== 6; }); $contribs_cct = $contribs->filter(function ($c) { return (int) ($c->syj_concepto->syj_contribuciones_tipo_id ?? 0) === 6; }); @endphp
COSTO TOTAL EMPLEADOR {{ $fmtm($recibo_num['recibo']['costo_total_empleador']) }}
@foreach($contribs_generales as $contrib) @endforeach @if($contribs_cct->count() > 0) @foreach($contribs_cct as $contrib) @endforeach @endif @if($contribs->count() == 0) @endif
CONCEPTO CANTIDAD BASE MONTO
{{ $contrib->syj_concepto->descripcion }} {{ (float) $contrib->cantidad != 0 ? number_format($contrib->cantidad, 2, ',', '.') . '%' : '' }} {{ (float) $contrib->valor != 0 ? $fmtm($contrib->valor) : '' }} {{ $fmtm($contrib->importe) }}
Costo derivado del CCT:
{{ $contrib->syj_concepto->descripcion }} {{ (float) $contrib->cantidad != 0 ? number_format($contrib->cantidad, 2, ',', '.') . '%' : '' }} {{ (float) $contrib->valor != 0 ? $fmtm($contrib->valor) : '' }} {{ $fmtm($contrib->importe) }}
 
SUB TOTAL CONTRIBUCIONES EMPLEADOR {{ $fmtm($recibo_num['recibo']['total_contribuciones']) }}
SUELDO BRUTO {{ $fmtm($recibo_num['recibo']['sueldo_bruto']) }}