join('transformative_action_status')
->where('trans_id', $this->id)
->where('semester_id', $semester_id)
->first();
}
public static function getCategoriesHtml($program_id)
{
$categories = "";
$types = DB::table('transformative_actions')
->select('type_of_TA', 'is_custom')
->where('type_of_TA', '<>', '')
->where(function ($query) use (&$program_id) {
$query->whereNull('program_id')
->orWhere('program_id', $program_id);
})
->where('by_professor', 0)
->groupBy('type_of_TA')
->get();
$optGroupGeneral = "';
$categories .= '';
return $categories;
}
}