@php $fmtm = function ($v) { return '$ ' . number_format((float) $v, 2, ',', '.'); }; $fmtf = function ($f) { return $f ? date('d/m/Y', strtotime($f)) : ''; }; @endphp
@foreach($cantidad_recibos as $recibo_num) @php $r = $recibo_num['recibo']; // Solo conceptos reales (se descartan los renglones de relleno del controlador). $reales = collect($r['conceptos'])->filter(function ($c) { return isset($c['syj_concepto']['id']) || (is_object($c) && $c->syj_concepto); }); $haberes = $reales->filter(function ($c) { return in_array((int) $c['syj_concepto']['syj_concepto_tipo_id'], [2, 3]); }); $descuentos = $reales->filter(function ($c) { return (int) $c['syj_concepto']['syj_concepto_tipo_id'] === 5; }); @endphp
@foreach($recibo_num['firmas'] as $firma)
{{-- Encabezado --}}
{{ $r['empresa'] }}
{{ $r['provincia_empresa'] }}
C.U.I.T. EMPRESA: {{ $r['cuit_empresa'] }} RECIBO Nº {{ $r['numero_recibo'] }}
Q MES AÑO APELLIDO Y NOMBRE Nº LEGAJO SUELDO BRUTO ANTIGÜEDAD
{{ $r['quincena'] }} {{ $r['mes'] }} {{ $r['anio'] }} {{ $r['apeynombre'] }} {{ $r['legajo'] }} {{ $fmtm($r['sueldo_bruto']) }} {{ $r['antiguedad'] }}
FECHA INGRESO CATEGORÍA LABORAL C.U.I.L LUGAR DE PAGO F. PAGO APORTES
{{ $fmtf($r['fecha_ingreso']) }} {{ $r['categoria'] }} {{ $r['cuil_empleado'] }} {{ $r['lugar_de_pago'] }} {{ $fmtf($r['fecha_pago_ultima_ccss']) }}
{{-- COSTO TOTAL EMPLEADOR + contribuciones + SUB TOTAL + SUELDO BRUTO --}} @include('sueldo.liquidaciones.recibos.parcial_contribuciones_empleador') {{-- Conceptos del trabajador: una sola columna MONTO --}} @foreach($haberes as $c) @endforeach @foreach($descuentos as $c) @endforeach @if($reales->count() == 0) @endif
CONCEPTO CANTIDAD BASE MONTO
{{ $c['syj_concepto']['descripcion'] }} {{ (float) $c['cantidad'] != 0 ? number_format($c['cantidad'], 2, ',', '.') : '' }} {{ $fmtm($c['importe']) }}
{{ $c['syj_concepto']['descripcion'] }} {{ (float) $c['cantidad'] != 0 ? number_format($c['cantidad'], 2, ',', '.') . '%' : '' }} {{ (float) $c['valor'] != 0 ? $fmtm($c['valor']) : '' }} {{ $fmtm($c['importe']) }}
 
{{-- COMPOSICION SALARIAL, SUELDO NETO y detalle con torta --}} @include('sueldo.liquidaciones.recibos.parcial_composicion_salarial') {{-- Observaciones y firmas --}} @if(!empty($r['observaciones']))
Observaciones: {{ $r['observaciones'] }}
@endif
Son: {{ $r['total_letra'] }}.-
@isset($firmaempleador) @if($firma == 'FIRMA EMPLEADOR')
@else
@endif @else
@endisset
FIRMA EMPLEADOR
@if($firma == 'FIRMA EMPLEADO' && isset($r['firma_empleado'])) @if(!empty($r['firma_manuscrita_url'])) Firma @else {{ ucwords(strtolower($r['apeynombre'])) }} @endif
{{ $r['firma_empleado'] }} Electronicamente · {{ date('d/m/Y', strtotime($r['firma_fecha'])) }}
@else
@endif
FIRMA EMPLEADO
@endforeach
@endforeach