/** * Display a listing of the resource. * * @return Response */ public function index() { $attendances = Attendance::get_all_attendances(); return view('attendances.index', compact('attendances')); }