@if($customer->company->country->id == 46) @else @endif
CC o NIT: {{$customer->company->identification_number}}-{{$request->customer['dv'] ?? NULL}}
Cliente: {{$customer->name}}
Régimen: {{$customer->company->type_regime->name}}
Obligación: {{$customer->company->type_liability->name}}
Dirección: {{$customer->company->address}}
Ciudad:{{$customer->company->municipality->name}} - {{$customer->company->country->name}} {{$customer->company->municipality_name}} - {{$customer->company->state_name}} - {{$customer->company->country->name}}
Teléfono: {{$customer->company->phone}}
Email: {{$customer->email}}
@if($request['currency_id'] != 35 && $request['currency_id'] !== null) @inject('currency', 'App\Models\TypeCurrency') @endif
Forma de Pago: {{$paymentForm[0]->name}}
Plazo Para Pagar: {{$paymentForm[0]->duration_measure}} Dias
Fecha Vencimiento: {{$paymentForm[0]->payment_due_date}}
Tipo Moneda: {{$currency->where('id', 'like', $request['currency_id'].'%')->firstOrFail()['name']}}
T.R.M: {{number_format($request['calculationrate'], 2)}}

@foreach($request['invoice_lines'] as $item) @inject('um', 'App\Models\UnitMeasure') @if(isset($item['tax_totals'])) @if(isset($item['allowance_charges'])) @else @endif @else @if(isset($item['allowance_charges'])) @else @endif @endif @if(isset($item['tax_totals'])) @if(isset($item['tax_totals'][0]['tax_amount'])) @else @endif @else @endif @if(isset($item['allowance_charges'])) @if(isset($item['tax_totals'])) @else @endif @else @endif @endforeach
# Código Descripción Cantidad Val. Unit IVA Val. Item
{{$ItemNro}} {{$item['code']}} @if(isset($item['notes'])) {{$item['description']}} - {{$item['notes']}} @else {{$item['description']}} @endif {{number_format($item['invoiced_quantity'], 2)}}{{number_format(($item['line_extension_amount'] + $item['allowance_charges'][0]['amount']) / $item['invoiced_quantity'], 2)}}{{number_format($item['line_extension_amount'] / $item['invoiced_quantity'], 2)}}{{number_format(($item['line_extension_amount'] + $item['allowance_charges'][0]['amount']) / $item['invoiced_quantity'], 2)}}{{number_format($item['line_extension_amount'] / $item['invoiced_quantity'], 2)}}{{number_format($item['tax_totals'][0]['tax_amount'], 2)}}{{number_format(0, 2)}}-{{number_format(($item['line_extension_amount'] + ($item['tax_totals'][0]['tax_amount'])), 2)}}{{number_format(($item['line_extension_amount']), 2)}}{{number_format($item['invoiced_quantity'] * ($item['line_extension_amount'] / $item['invoiced_quantity']), 2)}}

@if(isset($request->tax_totals)) @foreach($request->tax_totals as $item)
Warning: Undefined variable $item in C:\laragon\www\apidian-laravel-8-s3\resources\views\pdfs\invoice\template4_alt.blade.php on line 163

Warning: Trying to access array offset on value of type null in C:\laragon\www\apidian-laravel-8-s3\resources\views\pdfs\invoice\template4_alt.blade.php on line 163
@inject('tax', 'App\Models\Tax') @endforeach @else @endif
Impuestos Base Valor
{{$tax->findOrFail($item['tax_id'])['name']}} {{number_format($item['taxable_amount'], 2)}} {{number_format($item['tax_amount'], 2)}}
@if(isset($request->legal_monetary_totals['allowance_total_amount'])) @else @endif
Concepto Valor
Nro Lineas: {{$ItemNro}}
Base: {{number_format($request->legal_monetary_totals['line_extension_amount'], 2)}}
Impuestos: {{number_format($TotalImpuestos, 2)}}
Descuentos:{{number_format($request->legal_monetary_totals['allowance_total_amount'], 2)}}{{number_format(0, 2)}}
Total a Pagar {{number_format($request->legal_monetary_totals['payable_amount'], 2)}}
@inject('Varios', 'App\Custom\NumberSpellOut')

@php $totalAmount = $request->legal_monetary_totals['payable_amount']; $totalAmount = round($totalAmount, 2); $idcurrency = $request->idcurrency ?? null; @endphp

SON: {{$Varios->convertir($totalAmount, $idcurrency)}} M/CTE*********.

@if(isset($notes))

NOTAS:

{{$notes}}

@endif

Factura No: {{$resolution->prefix}} - {{$request->number}}
Fecha y Hora de Generación: {{$date}} - {{$time}}
CUFE: {{$cufecude}}

@isset($request->foot_note)

{{$request->foot_note}}

@endisset