Код: Выделить всё
@php
$syncLogsCountPending = $sidebarCounters['sync_logs']['pending'];
$syncLogsCountCompleted = $sidebarCounters['sync_logs']['completed'];
@endphp
cut

Я вроде понимаю такое поведение, поскольку это самое первое появление этой переменной в шаблон, но очевидно, что переменная существует, но взята из:
Код: Выделить всё
Подробнее здесь: [url]https://stackoverflow.com/questions/78792095/how-to-let-phpstorm-know-that-the-first-occurrence-of-a-variable-in-blade-templa[/url]