Reporte de comisión de vendedores


Empresa:

{{$company->name}}

Fecha:

{{date('Y-m-d')}}

Ruc:

{{$company->number}}

@if(!empty($users))
@foreach($users as $row) @php $document = $documents->where('user_id', $row->id)->first(); $commission = $usersWithComission->where('user_id', $row->id)->first(); @endphp @endforeach
# Vendedor Cantidad transacciones Total Efectivo Total Banco/Transferencias Ventas acumuladas Total comisiones
{{ $loop->iteration }} {{ $row->name}} S/ {{ $document->document_count ?? 0 }} S/ {{ number_format($document->total_cash ?? 0, 2, '.', '') }} S/ {{ number_format($document->total_bank ?? 0, 2, '.', '') }} S/ {{ number_format($document->total_sum ?? 0, 2, '.', '') }} S/ {{ number_format($commission->commission ?? 0, 2, '.', '') }}
@else

No se encontraron registros.

@endif