@if(count($comisiones) > 0) @foreach($comisiones as $c) @php $total_neto = \FCR::num_neto($c->dte_total); $porcentaje = (int)\DTE::getVendedoresComisiones($vendedores, $c->usuario_id); $comision = (int)\FCR::precioDscto($total_neto, $porcentaje); @endphp {{ $c->usuario_nombre }}@if(!empty($c->rut)) {{ \FCR::num_cl($c->rut).'-'.$c->rut_digito_verificador }}@endif ${{ \FCR::num_cl($total_neto) }} {{ $porcentaje }}% ${{ \FCR::num_cl($comision) }} @endforeach @else No hay ventas ingresadas @endif