@if($type === 'pdf') @else @endif Comisión vendores @php $colspan = 12; @endphp
Reporte de comisión de vendedores - utilidades detallado
Empresa: {{$company['name']}}
RUC: {{$company['number']}}
Fecha: {{date('Y-m-d')}}
@if(count($records) > 0) @foreach($records as $row) @endforeach
# Fecha Comprobante Serie Ruc/Dni Comercial Detalle Cantidad Precio compra Precio venta Ganancia unidad Ganancia total
{{ $loop->iteration}} {{ $row['date_of_issue'] }} {{ $row['type_document'] }} {{ $row['number_full'] }} {{ $row['customer_number'] }} {{ $row['customer_name'] }} {{ $row['name'] }} {{ $row['quantity'] }} {{ $row['purchase_unit_price']}} {{ $row['unit_price'] }} {{ $row['unit_gain'] }} {{ $row['overall_profit'] }}
TOTAL: {{ $totals['total_unit_gain'] }} {{ $totals['total_overall_profit'] }}
@else
No se encontraron registros
@endif