app/Models/WorkOrder.php
public function getRevisedStatusAttribute($id)
    {
        if ($id) {
            $status = $this->status()->find($id);

            if ($status instanceof Status) {
                return $status->getLabel();
            }
        }

        return;
    }
public function getRevisedStatusAttribute($id)
    {
        if ($id) {
            $status = $this->status()->find($id);

            if ($status instanceof Status) {
                return $status->getLabel();
            }
        }

        return;
    }
Retrieves the revised status attribute.

@param int|string $id

@return null|string