@for($i = 1; $i <= 9; $i++) @foreach ($withHoldingTaxTotal as $key => $taxTotal) @if(preg_replace("/[\r\n|\n|\r]+/", "", $taxTotal->tax->code) === '0'.$i) @endif @endforeach @if($CantItems > 0) @if(isset($idcurrency)) code)}}">{{preg_replace("/[\r\n|\n|\r]+/", "", number_format($TotalImpuesto, 3, '.', ''))}} @else type_currency->code)}}">{{preg_replace("/[\r\n|\n|\r]+/", "", number_format($TotalImpuesto, 3, '.', ''))}} @endif @foreach($withHoldingTaxTotal as $key => $taxTotal) @if(preg_replace("/[\r\n|\n|\r]+/", "", $taxTotal->tax->code) === '0'.$i) @if (!$taxTotal->is_fixed_value) @if(isset($idcurrency)) code)}}">{{preg_replace("/[\r\n|\n|\r]+/", "", number_format($taxTotal->taxable_amount, 3, '.', ''))}} @else type_currency->code)}}">{{preg_replace("/[\r\n|\n|\r]+/", "", number_format($taxTotal->taxable_amount, 3, '.', ''))}} @endif @endif @if ($taxTotal->is_fixed_value) unit_measure->code)}}">{{preg_replace("/[\r\n|\n|\r]+/", "", number_format($taxTotal->base_unit_measure, 6, '.', ''))}} @if(isset($idcurrency)) code)}}">{{preg_replace("/[\r\n|\n|\r]+/", "", number_format($taxTotal->per_unit_amount, 3, '.', ''))}} @else type_currency->code)}}">{{preg_replace("/[\r\n|\n|\r]+/", "", number_format($taxTotal->per_unit_amount, 3, '.', ''))}} @endif @endif @if(isset($idcurrency)) code)}}">{{preg_replace("/[\r\n|\n|\r]+/", "", number_format($taxTotal->tax_amount, 3, '.', ''))}} @else type_currency->code)}}">{{preg_replace("/[\r\n|\n|\r]+/", "", number_format($taxTotal->tax_amount, 3, '.', ''))}} @endif @if (!$taxTotal->is_fixed_value) {{preg_replace("/[\r\n|\n|\r]+/", "", number_format($taxTotal->percent, 3, '.', ''))}} @endif {{preg_replace("/[\r\n|\n|\r]+/", "", $taxTotal->tax->code)}} {{preg_replace("/[\r\n|\n|\r]+/", "", $taxTotal->tax->name)}} @endif @endforeach @endif @endfor