APOPSA EL SALVADOR S.A DE C.V
DIRECCIÓN FINANCIERA

REPORTE DE FACTURACION POR VENDEDOR

DEL: {{$dateFormater($desde)}} AL: {{$dateFormater($hasta)}}

{{--

(Valores expresados en Dólares de Estados Unidos de America)

--}}
@php $totalCosto_r =0; $totalFacturado_r=0; $totalIva_r =0; $totalSubTotal_r=0; $profit_r = 0; $retenido_r = 0; @endphp @foreach ($datos as $dato_vendedor) @php $totalCosto =0; $totalFacturado=0; $totalIva =0; $totalSubTotal=0; $profit = 0; $retenido = 0; @endphp @php $x=1; @endphp @foreach ($dato_vendedor as $documento) @php $totalFacturado += $documento->total_cancelar; $totalIva += $documento->iva; $totalSubTotal+= $documento->sub_total-$documento->iva; $totalCosto += $documento->costo; $profit+= $documento->sub_total-$documento->iva -$documento->costo; $retenido+= $documento->iva_retenido; @endphp @endforeach
Vendedor: {{$dato_vendedor[0]->name}}
# File Servicio Tipo Doc Fecha Nombre Cliente Costo Venta Profit IVA 1 % Total
{{$x++}} {{$documento->file_code}} {{ $documento->codigo_cotizacion }} {{$documento->nombre_servicio}} @php $doc = $tipoDocumentoFormater($documento->tipo); if($doc=="Other"){ $doc = "FEX"; } @endphp {{$doc}} {{$documento->documento_code}} {{$dateFormater($documento->fecha)}} {{$documento->nombre_cliente}} {{number_format($documento->costo,2)}} {{number_format($documento->sub_total -$documento->iva,2)}} {{number_format( ($documento->sub_total -$documento->iva - $documento->costo) ,2)}} {{number_format($documento->iva,2)}} {{number_format($documento->iva_retenido,2)}} {{number_format($documento->total_cancelar-$documento->iva_retenido,2)}}
Total {{number_format($totalCosto,2)}} {{number_format($totalSubTotal,2)}} {{number_format($profit,2)}} {{number_format($totalIva,2)}} {{number_format($retenido,2)}} {{number_format($totalFacturado,2)}}
@php $totalCosto_r +=$totalCosto; $totalFacturado_r+=$totalFacturado; $totalIva_r +=$totalIva; $totalSubTotal_r+=$totalSubTotal; $profit_r += $profit; $retenido_r += $retenido; @endphp @endforeach @php $font = "13px"; @endphp
Resumen
Total Costo: {{number_format($totalCosto_r,2)}}
Total Ventas: {{number_format($totalSubTotal_r,2)}}
Profit: {{number_format($profit_r,2)}}
Iva: {{number_format($totalIva_r,2)}}
Retención 1%: {{number_format($retenido_r,2)}}
Total Facturado: {{number_format($totalFacturado_r,2)}}