';
if (count($row->members) > 0) {
foreach ($row->members as $key => $member) {
if ($key < 4) {
$img = '
';
$position = $key > 0 ? 'position-absolute' : '';
$members .= '
';
}
}
}
else if($this->addProjectMemberPermission == 'all') {
$members .= '
' . __('modules.projects.addMemberTitle') . '';
}
else {
$members .= '--';
}
if (count($row->members) > 4) {
$members .= '
';
}
$members .= '
';
return $members;
}
);
$datatables->addColumn(
'name', function ($row) {
$members = [];
if (count($row->members) > 0) {
foreach ($row->members as $member) {
$members[] = $member->user->name;
}
return implode(',', $members);
}
}
);
$datatables->addColumn(
'project', function ($row) {
return $row->project_name;
}
);
$datatables->editColumn(
'project_name', function ($row) {
$pin = '';
if (($row->pinned_project)) {
$pin .= '