*/ public function toArray(Request $request): array { return [ 'check_status' => $this->check_status, 'check_status_text' => $this->check_status?->text(), 'checked_at' => $this->checked_at?->getTimestamp(), 'check_remarks' => (string) $this->check_remarks, 'logs' => WorkflowLogResource::collection($this->whenLoaded('logs')), ]; } }