Stats Contacts

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