@foreach ($invoiceLines as $key => $invoiceLine) @if($request->isMandate) {{preg_replace("/[\r\n|\n|\r]+/", "", ($key + 1))}} @else @if($request->isTransport) @if($invoiceLine->is_RNDC) {{preg_replace("/[\r\n|\n|\r]+/", "", ($key + 1))}} @else {{preg_replace("/[\r\n|\n|\r]+/", "", ($key + 1))}} @endif @else {{preg_replace("/[\r\n|\n|\r]+/", "", ($key + 1))}} @endif @endif @if (preg_replace("/[\r\n|\n|\r]+/", "", $invoiceLine->description) == 'Administración') @isset($noteAIU) {{"Contrato de servicios AIU por concepto de: ".preg_replace("/[\r\n|\n|\r]+/", "", $noteAIU)}} @endisset @endif @if(isset($invoiceLine->notes)) {{preg_replace("/[\r\n|\n|\r]+/", "", $invoiceLine->notes)}} @endif unit_measure->code)}}">{{preg_replace("/[\r\n|\n|\r]+/", "", number_format($invoiceLine->invoiced_quantity, 6, '.', ''))}} {{-- @if(isset($idcurrency)) code)}}">{{preg_replace("/[\r\n|\n|\r]+/", "", number_format($invoiceLine->line_extension_amount, 2, '.', ''))}} @else --}} type_currency->code)}}">{{preg_replace("/[\r\n|\n|\r]+/", "", number_format($invoiceLine->line_extension_amount, 2, '.', ''))}} {{-- @endif --}} @if(isset($invoiceLine->type_generation_transmition)) {{preg_replace("/[\r\n|\n|\r]+/", "", $invoiceLine->start_date)}} {{preg_replace("/[\r\n|\n|\r]+/", "", $invoiceLine->type_generation_transmition->id)}} {{preg_replace("/[\r\n|\n|\r]+/", "", $invoiceLine->type_generation_transmition->name)}} @endif @if($typeDocument->id != '11') {{preg_replace("/[\r\n|\n|\r]+/", "", $invoiceLine->free_of_charge_indicator)}} @endif @if (preg_replace("/[\r\n|\n|\r]+/", "", $invoiceLine->free_of_charge_indicator) === 'true') {{-- @if(isset($idcurrency)) code)}}">{{preg_replace("/[\r\n|\n|\r]+/", "", number_format($invoiceLine->price_amount, 2, '.', ''))}} @else --}} type_currency->code)}}">{{preg_replace("/[\r\n|\n|\r]+/", "", number_format($invoiceLine->price_amount, 2, '.', ''))}} {{-- @endif --}} @endif {{-- AllowanceCharges line --}} @include('xml._allowance_charges', ['allowanceCharges' => $invoiceLine->allowance_charges]) {{-- TaxTotals line --}} @include('xml._tax_totals', ['taxTotals' => $invoiceLine->tax_totals]) {{preg_replace("/[\r\n|\n|\r]+/", "", $invoiceLine->description)}} @if(isset($invoiceLine->brandname)) {{preg_replace("/[\r\n|\n|\r]+/", "", $invoiceLine->brandname)}} @endif @if(isset($invoiceLine->modelname)) {{preg_replace("/[\r\n|\n|\r]+/", "", $invoiceLine->modelname)}} @endif type_item_identification->code)}}" schemeName="{{preg_replace("/[\r\n|\n|\r]+/", "", $invoiceLine->type_item_identification->name)}}" schemeAgencyID="{{preg_replace("/[\r\n|\n|\r]+/", "", $invoiceLine->type_item_identification->code_agency)}}">{{preg_replace("/[\r\n|\n|\r]+/", "", $invoiceLine->code)}} @if(isset($invoiceLine->agentparty)) agentparty_dv)}}" schemeName="31">{{preg_replace("/[\r\n|\n|\r]+/", "", $invoiceLine->agentparty)}} @endif @if($request->isTransport) @if($invoiceLine->is_RNDC) 01 {{preg_replace("/[\r\n|\n|\r]+/", "", $invoiceLine->RNDC_consignment_number)}} 02 {{preg_replace("/[\r\n|\n|\r]+/", "", $invoiceLine->internal_consignment_number)}} 03 {{preg_replace("/[\r\n|\n|\r]+/", "", $invoiceLine->value_consignment)}} unit_measure_consignment->code)}}">{{preg_replace("/[\r\n|\n|\r]+/", "", $invoiceLine->quantity_consignment)}} @endif @endif {{-- @if(isset($idcurrency)) code)}}">{{preg_replace("/[\r\n|\n|\r]+/", "", number_format(($invoiceLine->free_of_charge_indicator === 'true') ? 0 : $invoiceLine->price_amount, 2, '.', ''))}} @else --}} type_currency->code)}}">{{preg_replace("/[\r\n|\n|\r]+/", "", number_format(($invoiceLine->free_of_charge_indicator === 'true') ? 0 : $invoiceLine->price_amount, 2, '.', ''))}} {{-- @endif --}} unit_measure->code)}}">{{preg_replace("/[\r\n|\n|\r]+/", "", number_format($invoiceLine->base_quantity, 6, '.', ''))}} @endforeach