';
foreach ($row->users as $key => $member) {
if ($key < 4) {
$img = '
';
$position = $key > 0 ? 'position-absolute' : '';
$members .= '
';
}
}
if (count($row->users) > 4 && $key) {
$members .= '
';
}
$members .= '
';
return $members;
})
->addColumn('name', function ($row) {
$members = [];
foreach ($row->users as $member) {
$members[] = $member->name;
}
return implode(',', $members);
})
->addColumn('timer', function ($row) {
if ($row->boardColumn->slug != 'completed' && !is_null($row->is_task_user)) {
if (is_null($row->userActiveTimer)) {
return '