/**
  *   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()]);
 }
 /**
  *  Create a new command instance.
  *
  *  @param App\Repositories\AttemptRepository $attemptRepo
  *
  *  @return void
  */
 public function __construct(AttemptRepository $attemptRepo)
 {
     parent::__construct();
     $this->attempts = $attemptRepo->fetchInProgress();
 }