backdrop-filter: blur(10px);
$url = Url::to(['locations/statuses', 'restaurant_id' => $restaurant->id]);
$script = <<< JS
var timerId = setTimeout(function tick() {
$.getJSON('$url', function(data) {
data.forEach(function(item){
//обработка массива полученных данных
});
});
timerId = setTimeout(tick, 1000);
}, 1000);
JS;
$this->registerJs($script, yii\web\View::POS_READY);