I get an error :
$count is undefined Make the variable optional in the blade template. Replace {{ $count }} with {{ $count ?? \'\' }}
Here is my blade file: