@php use App\Modules\Billing\Models\Mexico\Invoice; function faFi($str){ return Invoice::facturaFilter($str); } @endphp @foreach($products as $item) @php $importe = number_format($item->amount, 4, '.', ''); $base = $item->amount - $item->disc_cant; $tax_item = round($base * $tasa_o_cuota, 4); @endphp @endforeach @foreach($merchandise as $key => $value) @if($value->dangerous_material) @else @endif @endforeach @if($merchandise->count('dangerous_material') > 0) @else @endif @foreach($figureTypes as $idx => $figure) @if($figure->figure_type == '01') @elseif($figure->figure_type == '04') @else @endif @endforeach