@php $statCounts = array_merge([ 'active' => 0, 'inactive' => 0, 'archived' => 0, 'draft' => 0, ], $stats ?? []); @endphp