['fas fa-circle-dot has-text-success', "π"], 'in_progress' => ['fas fa-circle-play has-text-link', "π"], 'on_hold' => ['fas fa-pause-circle has-text-warning',"βΈοΈ"], 'completed' => ['fas fa-check has-text-danger', "β "] ]; static public $status_names = [ 'open' => 'Open', 'in_progress' => 'In Progress', 'on_hold' => 'On Hold', 'completed' => 'Completed' ]; static public $priority_icons = [ 'Low' => ['fas fa-circle-down',"π’"], 'Medium' => ['fas fa-circle-dot', "π‘"], 'High' => ['fas fa-circle-up', "π΄"] ]; static public $priority_colors = [ 'Low' => 'success', 'Medium' => 'warning', 'High' => 'danger', '' => 'info' ]; static public function icons($node){ $attr = $node['@attrib']; $tpl = Template::instance(); $f3 = Base::instance(); $context = $f3->hive(); $inner = $tpl->token($node[0], $context); return ''; } static function do_the_switch($type, $value){ if($value !== null) { $value = str_replace(' ', '_', strtolower($value)); } $icon_class = ''; switch(strtolower($type)){ case 'status': $icon_class = IconsHelper::$status_icons[$value] ?? ['fas fa-question-circle has-text-info', "π²"]; break; case 'priority': $icon_class = IconsHelper::$priority_icons[$value] ?? ['fas fa-question-circle', "π²"]; $icon_color = IconsHelper::$priority_colors[$value] ?? 'info'; break; default: $icon_class = 'fas fa-question-circle'; } if($type == 'priority'){ // return '