| Commercial | Total | @foreach($types as $type){{ $type }} | @endforeach|
|---|---|---|---|
| @foreach($types as $type) | Nb | % | @endforeach|
| {{ $this->getCommercialNom($data['commercial']) }} | {{ $data['total'] }} | @foreach($types as $k => $type) @php $stat1 = $data['stats'][$k] ?? 0; $stat2 = $data['total'] ? round($stat1 / $data['total'] * 100, 1) : 0; @endphp@if($stat1 > 0) {{ $stat1 }} @else 0 @endif | @if($stat2 > 0) {{ $stat2 }}% @else 0% @endif | @endforeach