{{-- FACTURA ELECTRONICA Nro: {{$resolution->prefix}} - {{$request->number}} --}} @if(isset($request->head_note))

{{$request->head_note}}

@endif @if($request->type_document_id == 9 || ($request->type_document_id == 10 && $request->type_note == 1)) @else @endif
@if(isset($request->worker_code) || isset($worker->worker_code)) @if(isset($request->worker_code)) @else @endif @endif
Documento ID: {{$worker->identification_number}}
Nombre: {{$worker->first_name}} {{$worker->middle_name ?? ' '}} {{$worker->surname ?? ' '}} {{$worker->second_surname ?? NULL}}
Codigo Interno:{{$request->worker_code}}{{$worker->worker_code}}
Basico Mensual: {{number_format($worker->salary, 2)}}
Dirección: {{$worker->address}}
Ciudad: {{$worker->municipality->name}} - {{$worker->country->name}}
Tipo de Contrato: {{$worker->type_contract->name}}
Tipo de Trabajador: {{$worker->type_worker->name}}
Forma de Pago: {{$payment->payment_method->name}}
Banco: {{$payment->bank_name ?? ''}}
Tipo de Cuenta: {{$payment->account_type ?? ''}}
Numero de Cuenta: {{$payment->account_number ?? ''}}
Dias Trabajados: {{$accrued->worked_days}}
P E R I O D O
Fecha Inicial: {{$period->settlement_start_date}}
Fecha Final: {{$period->settlement_end_date}}
Numero Predecesor: {{$predecessor->predecessor_number}}
CUNE Predecesor: {{$predecessor->predecessor_cune}}
Fecha Predecesor: {{$predecessor->predecessor_issue_date}}
@if(isset($request->type_note) && ($request->type_note == 1))
Numero Predecesor: {{$predecessor->predecessor_number}}
CUNE Predecesor: {{$predecessor->predecessor_cune}}
Fecha Predecesor: {{$predecessor->predecessor_issue_date}}
@endif @if($request->type_document_id == 9 || ($request->type_document_id == 10 && $request->type_note == 1)) @if(isset($request['accrued']['transportation_allowance'])) @endif @if(isset($request['accrued']['HEDs'])) @foreach($request['accrued']['HEDs'] as $HED) @endforeach @endif @if(isset($request['accrued']['HENs'])) @foreach($request['accrued']['HENs'] as $HEN) @endforeach @endif @if(isset($request['accrued']['HRNs'])) @foreach($request['accrued']['HRNs'] as $HRN) @endforeach @endif @if(isset($request['accrued']['HEDDFs'])) @foreach($request['accrued']['HEDDFs'] as $HEDDF) @endforeach @endif @if(isset($request['accrued']['HRDDFs'])) @foreach($request['accrued']['HRDDFs'] as $HRDDF) @endforeach @endif @if(isset($request['accrued']['HENDFs'])) @foreach($request['accrued']['HENDFs'] as $HENDF) @endforeach @endif @if(isset($request['accrued']['HRNDFs'])) @foreach($request['accrued']['HRNDFs'] as $HRNDF) @endforeach @endif @if(isset($request['accrued']['common_vacation'])) @foreach($request['accrued']['common_vacation'] as $common_vacation) @endforeach @endif @if(isset($request['accrued']['paid_vacation'])) @foreach($request['accrued']['paid_vacation'] as $paid_vacation) @endforeach @endif @if(isset($request['accrued']['service_bonus'])) @foreach($request['accrued']['service_bonus'] as $service_bonus) @if(array_key_exists('paymentNS', $service_bonus)) @endif @endforeach @endif @if(isset($request['accrued']['severance'])) @foreach($request['accrued']['severance'] as $severance) @endforeach @endif @if(isset($request['accrued']['work_disabilities'])) @foreach($request['accrued']['work_disabilities'] as $work_disabilities) @endforeach @endif @if(isset($request['accrued']['maternity_leave'])) @foreach($request['accrued']['maternity_leave'] as $maternity_leave) @endforeach @endif @if(isset($request['accrued']['paid_leave'])) @foreach($request['accrued']['paid_leave'] as $paid_leave) @endforeach @endif @if(isset($request['accrued']['non_paid_leave'])) @foreach($request['accrued']['non_paid_leave'] as $non_paid_leave) @endforeach @endif @if(isset($request['accrued']['bonuses'])) @foreach($request['accrued']['bonuses'] as $bonuses) @if(array_key_exists('salary_bonus', $bonuses)) @endif @if(array_key_exists('non_salary_bonus', $bonuses)) @endif @endforeach @endif @if(isset($request['accrued']['aid'])) @foreach($request['accrued']['aid'] as $aid) @if(array_key_exists('salary_assistance', $aid)) @endif @if(array_key_exists('non_salary_assistance', $aid)) @endif @endforeach @endif @if(isset($request['accrued']['legal_strike'])) @foreach($request['accrued']['legal_strike'] as $legal_strike) @endforeach @endif @if(isset($request['accrued']['other_concepts'])) @foreach($request['accrued']['other_concepts'] as $other_concepts) @if(array_key_exists('salary_concept', $other_concepts)) @endif @if(array_key_exists('non_salary_concept', $other_concepts)) @endif @endforeach @endif @if(isset($request['accrued']['compensations'])) @foreach($request['accrued']['compensations'] as $compensations) @if(array_key_exists('ordinary_compensation', $compensations)) @endif @if(array_key_exists('extraordinary_compensation', $compensations)) @endif @endforeach @endif @if(isset($request['accrued']['epctv_bonuses'])) @foreach($request['accrued']['epctv_bonuses'] as $epctv_bonuses) @if(array_key_exists('paymentS', $epctv_bonuses)) @endif @if(array_key_exists('paymentNS', $epctv_bonuses)) @endif @if(array_key_exists('salary_food_payment', $epctv_bonuses)) @endif @if(array_key_exists('non_salary_food_payment', $epctv_bonuses)) @endif @endforeach @endif @if(isset($request['accrued']['commissions'])) @foreach($request['accrued']['commissions'] as $commissions) @endforeach @endif @if(isset($request['accrued']['third_party_payments'])) @foreach($request['accrued']['third_party_payments'] as $third_party_payments) @endforeach @endif @if(isset($request['accrued']['advances'])) @foreach($request['accrued']['advances'] as $advances) @endforeach @endif @if(isset($request['accrued']['endowment'])) @endif @if(isset($request['accrued']['sustenance_support'])) @endif @if(isset($request['accrued']['telecommuting'])) @endif @if(isset($request['accrued']['withdrawal_bonus'])) @endif @if(isset($request['accrued']['compensation'])) @endif @if(isset($request['accrued']['refund'])) @endif @if(isset($request['deductions']['eps_deduction'])) @endif @if(isset($request['deductions']['pension_deduction'])) @endif @if(isset($request['deductions']['labor_union'])) @foreach($request['deductions']['labor_union'] as $labor_union) @endforeach @endif @if(isset($request['deductions']['sanctions'])) @foreach($request['deductions']['sanctions'] as $sanction) @if(array_key_exists('public_sanction', $sanction)) @endif @if(array_key_exists('private_sanction', $sanction)) @endif @endforeach @endif @if(isset($request['deductions']['orders'])) @foreach($request['deductions']['orders'] as $order) @endforeach @endif @if(isset($request['deductions']['third_party_payments'])) @foreach($request['deductions']['third_party_payments'] as $third_party_payment) @endforeach @endif @if(isset($request['deductions']['advances'])) @foreach($request['deductions']['advances'] as $advance) @endforeach @endif @if(isset($request['deductions']['other_deductions'])) @foreach($request['deductions']['other_deductions'] as $other_deduction) @endforeach @endif @if(isset($request['deductions']['voluntary_pension'])) @endif @if(isset($request['deductions']['withholding_at_source'])) @endif @if(isset($request['deductions']['afc'])) @endif @if(isset($request['deductions']['cooperative'])) @endif @if(isset($request['deductions']['tax_liens'])) @endif @if(isset($request['deductions']['supplementary_plan'])) @endif @if(isset($request['deductions']['education'])) @endif @if(isset($request['deductions']['refund'])) @endif @if(isset($request['deductions']['debt'])) @endif
# Concepto Devengados Deducciones
{{$ItemNro}} INGRESO SALARIAL BASICO POR TIEMPO LABORADO {{number_format($request['accrued']['salary'], 2)}}
{{$ItemNro}} SUBSIDIO DE TRANSPORTE {{number_format($request['accrued']['transportation_allowance'], 2)}}
{{$ItemNro}} PAGO DE {{$HED['quantity']}} HORA(S) EXTRA(S) DIURNA(S) DESDE - {{$HED['start_time']}} HASTA {{$HED['end_time']}} {{number_format($HED['payment'], 2)}}
{{$ItemNro}} PAGO DE {{$HEN['quantity']}} HORA(S) EXTRA(S) NOCTURNA(S) DESDE - {{$HEN['start_time']}} HASTA {{$HEN['end_time']}} {{number_format($HEN['payment'], 2)}}
{{$ItemNro}} PAGO DE {{$HRN['quantity']}} HORA(S) EXTRA(S) RECARGO NOCTURNO DESDE - {{$HRN['start_time']}} HASTA {{$HRN['end_time']}} {{number_format($HRN['payment'], 2)}}
{{$ItemNro}} PAGO DE {{$HEDDF['quantity']}} HORA(S) EXTRA(S) DIURNA(S) DOMINICAL Y FESTIVO DESDE - {{$HEDDF['start_time']}} HASTA {{$HEDDF['end_time']}} {{number_format($HEDDF['payment'], 2)}}
{{$ItemNro}} PAGO DE {{$HRDDF['quantity']}} HORA(S) EXTRA(S) RECARGO DIURNO DOMINICAL Y FESTIVO DESDE - {{$HRDDF['start_time']}} HASTA {{$HRDDF['end_time']}} {{number_format($HRDDF['payment'], 2)}}
{{$ItemNro}} PAGO DE {{$HENDF['quantity']}} HORA(S) EXTRA(S) NOCTURNA(S) DOMINICAL Y FESTIVO DESDE - {{$HENDF['start_time']}} HASTA {{$HENDF['end_time']}} {{number_format($HENDF['payment'], 2)}}
{{$ItemNro}} PAGO DE {{$HRNDF['quantity']}} HORA(S) EXTRA(S) RECARGO NOCTURNO DOMINICAL Y FESTIVO DESDE - {{$HRNDF['start_time']}} HASTA {{$HRNDF['end_time']}} {{number_format($HRNDF['payment'], 2)}}
{{$ItemNro}} PAGO DE {{$common_vacation['quantity']}} DIA(S) DE VACACIONES DESDE - {{$common_vacation['start_date']}} HASTA {{$common_vacation['end_date']}} {{number_format($common_vacation['payment'], 2)}}
{{$ItemNro}} PAGO DE {{$paid_vacation['quantity']}} DIA(S) DE VACACIONES COMPENSADAS. {{number_format($paid_vacation['payment'], 2)}}
{{$ItemNro}} PAGO DE {{$service_bonus['quantity']}} DIA(S) DE PRIMA LEGAL {{number_format($service_bonus['payment'], 2)}}
{{$ItemNro}} PAGO DE {{$service_bonus['quantity']}} DIA(S) DE PRIMA EXTRA LEGAL NO SALARIAL {{number_format($service_bonus['paymentNS'], 2)}}
{{$ItemNro}} PAGO DE CESANTIAS {{number_format($severance['payment'], 2)}}
{{$ItemNro}} PAGO DE INTERESES A LAS CESANTIAS A UNA TASA DE {{$severance['percentage']}}% {{number_format($severance['interest_payment'], 2)}}
{{$ItemNro}} PAGO DE {{$work_disabilities['quantity']}} DIA(S) DE INCAPACIDAD TIPO {{$work_disabilities['type']}} DESDE - {{$work_disabilities['start_date']}} HASTA {{$work_disabilities['end_date']}} {{number_format($work_disabilities['payment'], 2)}}
{{$ItemNro}} PAGO DE {{$maternity_leave['quantity']}} DIA(S) DE LICENCIA DE MATERNIDAD DESDE - {{$maternity_leave['start_date']}} HASTA {{$maternity_leave['end_date']}} {{number_format($maternity_leave['payment'], 2)}}
{{$ItemNro}} PAGO DE {{$paid_leave['quantity']}} DIA(S) DE LICENCIA REMUNERADA DESDE - {{$paid_leave['start_date']}} HASTA {{$paid_leave['end_date']}} {{number_format($paid_leave['payment'], 2)}}
{{$ItemNro}} PAGO DE {{$non_paid_leave['quantity']}} DIA(S) DE LICENCIA NO REMUNERADA DESDE - {{$non_paid_leave['start_date']}} HASTA {{$non_paid_leave['end_date']}} {{number_format(0, 2)}}
{{$ItemNro}} PAGO DE BONIFICACION SALARIAL {{number_format($bonuses['salary_bonus'], 2)}}
{{$ItemNro}} PAGO DE BONIFICACION NO SALARIAL {{number_format($bonuses['non_salary_bonus'], 2)}}
{{$ItemNro}} PAGO DE AUXILIO SALARIAL {{number_format($aid['salary_assistance'], 2)}}
{{$ItemNro}} PAGO DE AUXILIO NO SALARIAL {{number_format($aid['non_salary_assistance'], 2)}}
{{$ItemNro}} PAGO DE {{$legal_strike['quantity']}} DIA(S) DE HUELGA LEGAL DESDE - {{$legal_strike['start_date']}} HASTA {{$legal_strike['end_date']}} {{number_format(0, 2)}}
{{$ItemNro}} {{$other_concepts['description_concept']}} - SALARIAL {{number_format($other_concepts['salary_concept'], 2)}}
{{$ItemNro}} {{$other_concepts['description_concept']}} - NO SALARIAL {{number_format($other_concepts['non_salary_concept'], 2)}}
{{$ItemNro}} COMPENSACION ORDINARIA {{number_format($compensations['ordinary_compensation'], 2)}}
{{$ItemNro}} COMPENSACION EXTRAORDINARIA {{number_format($compensations['extraordinary_compensation'], 2)}}
{{$ItemNro}} PAGO SALARIAL MEDIANTE BONOS Y MEDIOS DIFERENTES A EFECTIVO O CONSIGNACION BANCARIA {{number_format($epctv_bonuses['paymentS'], 2)}}
{{$ItemNro}} PAGO NO SALARIAL MEDIANTE BONOS Y MEDIOS DIFERENTES A EFECTIVO O CONSIGNACION BANCARIA {{number_format($epctv_bonuses['paymentNS'], 2)}}
{{$ItemNro}} PAGO SALARIAL PARA ALIMENTACION MEDIANTE BONOS Y MEDIOS DIFERENTES A EFECTIVO O CONSIGNACION BANCARIA {{number_format($epctv_bonuses['salary_food_payment'], 2)}}
{{$ItemNro}} PAGO NO SALARIAL PARA ALIMENTACION MEDIANTE BONOS Y MEDIOS DIFERENTES A EFECTIVO O CONSIGNACION BANCARIA {{number_format($epctv_bonuses['non_salary_food_payment'], 2)}}
{{$ItemNro}} PAGO DE COMISION {{number_format($commissions['commission'], 2)}}
{{$ItemNro}} PAGO DE TERCERAS PARTES {{number_format($third_party_payments['third_party_payment'], 2)}}
{{$ItemNro}} ANTICIPO DE NOMINA {{number_format($advances['advance'], 2)}}
{{$ItemNro}} PAGO POR DOTACIONES {{number_format($request['accrued']['endowment'], 2)}}
{{$ItemNro}} PAGO POR APOYO A SOSTENIMIENTO {{number_format($request['accrued']['sustenance_support'], 2)}}
{{$ItemNro}} PAGO POR TELETRABAJO {{number_format($request['accrued']['telecommuting'], 2)}}
{{$ItemNro}} PAGO POR RETIRO DE LA EMPRESA {{number_format($request['accrued']['withdrawal_bonus'], 2)}}
{{$ItemNro}} PAGO POR INDEMNIZACION {{number_format($request['accrued']['compensation'], 2)}}
{{$ItemNro}} PAGO POR REINTEGRO DE NOMINA {{number_format($request['accrued']['refund'], 2)}}
{{$ItemNro}} DEDUCCION CORRESPONDIENTE A SALUD POR PARTE DEL TRABAJADOR {{number_format($request['deductions']['eps_deduction'], 2)}}
{{$ItemNro}} DEDUCCION CORRESPONDIENTE A PENSION POR PARTE DEL TRABAJADOR {{number_format($request['deductions']['pension_deduction'], 2)}}
{{$ItemNro}} DEDUCCION POR APORTE A SINDICATO DEL {{$labor_union['percentage']}}% {{number_format($labor_union['deduction'], 2)}}
{{$ItemNro}} DEDUCCION POR SANCION PUBLICA {{number_format($sanction['public_sanction'], 2)}}
{{$ItemNro}} DEDUCCION POR SANCION PRIVADA {{number_format($sanction['private_sanction'], 2)}}
{{$ItemNro}} DEDUCCION POR {{$order['description']}} {{number_format($order['deduction'], 2)}}
{{$ItemNro}} DEDUCCION POR PAGO A TERCEROS {{number_format($third_party_payment['third_party_payment'], 2)}}
{{$ItemNro}} DEDUCCION POR ANTICIPO {{number_format($advance['advance'], 2)}}
{{$ItemNro}} OTRA DEDUCCION {{number_format($other_deduction['other_deduction'], 2)}}
{{$ItemNro}} DESCUENTO POR PENSION VOLUNTARIA {{number_format($request['deductions']['voluntary_pension'], 2)}}
{{$ItemNro}} DESCUENTO POR RETENCION EN LA FUENTE {{number_format($request['deductions']['withholding_at_source'], 2)}}
{{$ItemNro}} DESCUENTO POR FOMENTO Y AHORRO A LA CONSTRUCCION {{number_format($request['deductions']['afc'], 2)}}
{{$ItemNro}} DESCUENTO POR COOPERATIVA {{number_format($request['deductions']['cooperative'], 2)}}
{{$ItemNro}} DESCUENTO POR EMBARGOS FISCALES {{number_format($request['deductions']['tax_liens'], 2)}}
{{$ItemNro}} DESCUENTO POR PLAN SUPLEMENTARIO {{number_format($request['deductions']['supplementary_plan'], 2)}}
{{$ItemNro}} DESCUENTO POR EDUCACION {{number_format($request['deductions']['education'], 2)}}
{{$ItemNro}} DESCUENTO POR REINTEGRO {{number_format($request['deductions']['refund'], 2)}}
{{$ItemNro}} DESCUENTO POR DEUDA {{number_format($request['deductions']['debt'], 2)}}

Totales
Concepto Valor
Nro Lineas: {{$ItemNro}}
Total Devengado: {{number_format($accrued->accrued_total, 2)}}
Total Deducido: {{number_format($deductions->deductions_total, 2)}}
Neto a Pagar: {{number_format($accrued->accrued_total - $deductions->deductions_total, 2)}}


@endif

NOTAS:

{{$notes}}