program_pivots; if (sizeof($pivots) === 0) { $comment = $video->comments()->where("is_top", "=", 1)->first(); } else { $comment = null; } return view("video.index", [ "video" => $video, "video_pivots" => $pivots, "comment" => $comment, ]); } }