app/Http/Controllers/AttendenceController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
       $arr_class = Classes::orderby('class_name','ASC')->get();
                     $arr_section = Sections::orderby('section_name','ASC')->get();
                     return view('attendence_info.index',compact('arr_class', 'arr_section'));
    }
public function index ( ) { $ arr_class = Classes :: orderby ( 'class_name' , 'ASC' ) -> get ( ) ; $ arr_section = Sections :: orderby ( 'section_name' , 'ASC' ) -> get ( ) ; return view ( 'attendence_info.index' , compact ( 'arr_class' , 'arr_section' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .