@foreach($payrolls as $index => $payroll)
{{-- ═══════════ CABECERA ═══════════ --}}
@if(file_exists(public_path('images/logoDonative.png'))) @endif FARMACIA BARRIO SUCRE 2024, C.A. R.I.F. Nº J-50540695-7 Calle Principal Local 05 (L3) Sector Barrio Sucre, La Fría, Táchira Tipo de Nómina: Quincenal
NÓMINA DE PERSONAL - {{ $payroll['name'] }}
Período: {{ $payroll['period'] }} Fecha de Emisión: {{ \Carbon\Carbon::now()->format('d/m/Y') }} Tasa BCV: {{ number_format($payroll['exchange_rate'], 2, ',', '.') }} Bs./$
{{-- ═══════════ TABLA ═══════════ --}} @php $items = $payroll['items']; $totBaseSal = 0; $totSalPago = 0; $totAlimento = 0; $totSalud = 0; $totBono = 0; $totDevengado = 0; $totIvss = 0; $totRpe = 0; $totFaov = 0; $totDeduc = 0; $totNeto = 0; $fmt = fn($v) => number_format(abs((float)$v), 2, ',', '.'); @endphp @foreach($items as $i => $row) @php $baseSal = (float)($row['base_salary_voucher'] ?? 0); $salPago = (float)($row['salary_to_pay_voucher'] ?? 0); $alimento = (float)($row['food_voucher'] ?? 0); $salud = (float)($row['health_support_voucher'] ?? 0); $bono = (float)($row['performance_voucher'] ?? 0); $ivss = abs((float)($row['social_security_voucher'] ?? 0)); $rpe = abs((float)($row['employment_voucher'] ?? 0)); $faov = abs((float)($row['housing_property_benefits_voucher'] ?? 0)); $devengado = $salPago + $alimento + $salud + $bono; $deduc = $ivss + $rpe + $faov; $neto = $devengado - $deduc; $totBaseSal += $baseSal; $totSalPago += $salPago; $totAlimento += $alimento; $totSalud += $salud; $totBono += $bono; $totDevengado += $devengado; $totIvss += $ivss; $totRpe += $rpe; $totFaov += $faov; $totDeduc += $deduc; $totNeto += $neto; @endphp @endforeach
# Nombre del
Trabajador
Cédula CONCEPTOS SALARIALES
(Art. 104 LOTTT)
CONCEPTOS NO SALARIALES
(Art. 105 LOTTT)
TOTAL
DEVENGADO
(Bs.)
DEDUCCIONES
(Base: Sal. Mensual)
TOTAL
DEDUCC.
(Bs.)
NETO A
COBRAR
(Bs.)
Sal. Mensual
(Bs.)
Sueldo
a Pagar
(Bs.)
Bono de
Alimentación
(Bs.)
Asistencia Social
de Salud
(Art. 105 LOTTT)
(Bs.)
Bono Extraordinario
de Rendimiento
(Bs.)
IVSS
4%
(Bs.)
RPE-Paro
Forzoso
0.5% (Bs.)
FAOV
1%
(Bs.)
{{ $i + 1 }} {{ trim(($row['name'] ?? '') . ' ' . ($row['last_name'] ?? '')) }} V-{{ number_format((int)($row['identification'] ?? 0), 0, ',', '.') }} {{ $fmt($baseSal) }} {{ $fmt($salPago) }} {{ $fmt($alimento) }} {{ $fmt($salud) }} {{ $fmt($bono) }} {{ $fmt($devengado) }} {{ $fmt($ivss) }} {{ $fmt($rpe) }} {{ $fmt($faov) }} {{ $fmt($deduc) }} {{ $fmt($neto) }}
TOTALES {{ number_format($totBaseSal, 2, ',', '.') }} {{ number_format($totSalPago, 2, ',', '.') }} {{ number_format($totAlimento, 2, ',', '.') }} {{ number_format($totSalud, 2, ',', '.') }} {{ number_format($totBono, 2, ',', '.') }} {{ number_format($totDevengado, 2, ',', '.') }} {{ number_format($totIvss, 2, ',', '.') }} {{ number_format($totRpe, 2, ',', '.') }} {{ number_format($totFaov, 2, ',', '.') }} {{ number_format($totDeduc, 2, ',', '.') }} {{ number_format($totNeto, 2, ',', '.') }}
Total Devengado: {{ number_format($totDevengado, 2, ',', '.') }} Bs.    Total Deducciones: {{ number_format($totDeduc, 2, ',', '.') }} Bs. NETO A PAGAR: {{ number_format($totNeto, 2, ',', '.') }} Bs.
{{-- ═══════════ FIRMAS POR EMPLEADO ═══════════ --}}
RECEPCIÓN DE PAGO — FIRMA DE TRABAJADORES
@foreach($items as $i => $row) @if($i % 3 === 0)@endif @php $neto2 = ((float)($row['salary_to_pay_voucher']??0) + (float)($row['food_voucher']??0) + (float)($row['health_support_voucher']??0) + (float)($row['performance_voucher']??0)) - (abs((float)($row['social_security_voucher']??0)) + abs((float)($row['employment_voucher']??0)) + abs((float)($row['housing_property_benefits_voucher']??0))); @endphp @if(($i + 1) % 3 === 0 || $i + 1 === count($items))@endif @endforeach
{{ trim(($row['name'] ?? '') . ' ' . ($row['last_name'] ?? '')) }}
V-{{ number_format((int)($row['identification']??0), 0, ',', '.') }}  |  Neto: {{ number_format($neto2, 2, ',', '.') }} Bs.
{{-- ═══════════ FIRMA PATRONO ═══════════ --}}
Representante Legal / Patrono
R.I.F. J-50540695-7 | FARMACIA BARRIO SUCRE 2024, C.A.
@endforeach