successResponse(HarimState::query()->get(['id', 'name'])); } /** * @throws Throwable */ public function histories(Harim $harim): JsonResponse { throw_if($this->harim->edareh_shahri_id == auth()->user()->edarate_shahri_id, new ProhibitedAction("unauthorized")); return $this->successResponse($harim->histories()->get(['id', 'expert_description', 'action_name', 'previous_state_name'])); } }