@extends('layouts.app') @section('content')
| Posição | Funcionário | % Comissão | Total de Vendas | Total Faturado | Total de Comissões |
|---|---|---|---|---|---|
| #{{ $index + 1 }} | {{ $item->funcionario->nome ?? 'N/A' }} | {{ number_format($item->funcionario->porcentagem_vendas ?? 0, 2, ',', '.') }}% | {{ $item->total_vendas }} | R$ {{ number_format($item->total_faturado, 2, ',', '.') }} | R$ {{ number_format($item->total_comissao, 2, ',', '.') }} |
| Funcionário | % Comissão | Total de Vendas | Total Faturado | Total de Comissões | Média por Venda | Ações |
|---|---|---|---|---|---|---|
| {{ $item->funcionario->nome ?? 'N/A' }} | {{ number_format($item->funcionario->porcentagem_vendas ?? 0, 2, ',', '.') }}% | {{ $item->total_vendas }} | R$ {{ number_format($item->total_faturado, 2, ',', '.') }} | R$ {{ number_format($item->total_comissao, 2, ',', '.') }} | R$ {{ number_format($item->media_comissao, 2, ',', '.') }} | @if($item->funcionario) Detalhes @endif |