Hash->extract($row, $field['data_path']); $displayField = $this->Hash->get($row, $field['display_field_data_path']); if ($status['local'] && $status['up_to_date']) { $variant = 'success'; $text = __('Ok'); } else if ($status['local'] && !$status['up_to_date']) { $variant = 'warning'; $text = __('Outdated'); } else { $variant = 'danger'; $text = __('N/A'); } echo $this->Bootstrap->badge([ 'id' => $seed, 'variant' => $variant, 'text' => $text, 'icon' => ($status['local'] && !$status['up_to_date']) ? 'question-circle' : false, 'title' => $status['title'], 'class' => [ (($status['local'] && !$status['up_to_date']) ? 'cursor-pointer' : ''), ], ]); ?>