5, ]; /** * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function run() { $pirepRepo = app(PirepRepository::class); $pireps = $pirepRepo ->whereNotInOrder('state', [ PirepState::CANCELLED, PirepState::DRAFT, PirepState::IN_PROGRESS, ], 'created_at', 'desc') ->recent($this->config['count']); return view('widgets.latest_pireps', [ 'config' => $this->config, 'pireps' => $pireps, ]); } }