diff --git a/app/Models/Organization/WorkstationModel.php b/app/Models/Organization/WorkstationModel.php index 862ab46..fb8e8e9 100644 --- a/app/Models/Organization/WorkstationModel.php +++ b/app/Models/Organization/WorkstationModel.php @@ -23,7 +23,11 @@ class WorkstationModel extends BaseModel { } public function getWorkstation($WorkstationID) { - $rows = $this->select('workstation.*, department.DepartmentName, wst1.WorkstationName as LinkToName') + $rows = $this->select("workstation.*, department.DepartmentName, wst1.WorkstationName as LinkToName, + CASE + WHEN workstation.Enable = 1 THEN 'Enabled' + ELSE 'Disabled' + END AS EnableText") ->join('workstation wst1', 'workstation.LinkTo=wst1.WorkstationID', 'left') ->join('department', 'department.DepartmentID=workstation.DepartmentID', 'left') ->where('workstation.WorkstationID', $WorkstationID)