@php $totalProjects = 0; foreach ($projects_by_type as $projects) { $totalProjects += count($projects); } @endphp