/** * Show all the attempts * * @param App\Repositories\AttemptRepository $attemptRepo * * @return response */ public function index(AttemptRepository $attemptRepo) { return view('attempts.index', ['attempts' => $attemptRepo->fetchOffline(), 'online_attempts' => $attemptRepo->fetchOnline()]); }