/** * تابعی برای نمایش یک پست و کامنتهای مربوطه با آیدی پست * @param int $pst_id * @return view */ public function readPost($pst_id) { $post = $this->PostRepository->getIsAdmin($pst_id); //----> کوئری ادمین $comments = $this->CommentRepository->getApprovedByPostId($pst_id); $newPostsList = $this->PostRepository->newPostsList($this->nbrPages); $mostLikePostsList = $this->PostRepository->mostLikePostsList($this->nbrPages); return view('layout.ReadPost', compact('newPostsList', 'mostLikePostsList', 'pst_id', 'post', 'comments')); }