use yii\web\View;
$assetDir = Yii::$app->assetManager->getPublishedUrl('@vendor/almasaeed2010/adminlte/dist');
foreach($users as $userid => $data){
$op = ( $userid == $id )?0.5:1;
$mark = ( time()-$data['time'] < $obj::sleep )?'fas fa-user-check':'fas fa-mug-hot';
$mark = ( time()-$data['time'] < $obj::dead )?'fas fa-user-check':'fas fa-bed';
$markd = ( time()-$data['time'] < $obj::sleep )?'text-success':'text-warning';
$markd = ( time()-$data['time'] < $obj::dead )?'text-success':'text-danger';
if( time()-$data['time'] < $obj::kill ) {
$photo = "/images/users/".$userid."_sm.jpg";
if( !file_exists( Yii::getAlias('@webroot').$photo ) ){
$photo = $assetDir."/img/user1-128x128.jpg";
}
?>
Думает... =date("i:s", time()-$data['time'])?> м:сек
=$data['name']?>