Visitors by Language

@if ($languages->isNotEmpty()) @php $total = $languages->sum('visitors'); @endphp
@foreach ($languages as $row)
{{ $row->language }} {{ number_format($row->visitors) }} ({{ $total > 0 ? round(($row->visitors / $total) * 100, 1) : 0 }}%)
@endforeach
@else @endif