/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $results = Result::all();
     return view('results.index')->with('results', $results)->with('title', trans('titles.results'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $results = Result::all();
     return view('result.index', compact('results'));
 }
 public function api()
 {
     return response()->json(Result::all());
 }