Ejemplo n.º 1
0
 /**
  * Display a listing of the resource.
  * GET /modules
  *
  * @return Response
  */
 public function index()
 {
     //
     return Excel::create('Mastersheet BQu version', function ($excel) {
         $excel->sheet('Marks-Input Sheet', function ($sheet) {
             $sheet->loadView('export.input_sheet')->with('student_module_marks_input', StudentModuleMarksInput::all()->reverse())->with('module_element', ModuleElement::all())->with('modules', Module::all())->with('courses', ApplicationCourse::all())->with('users', User::all());
         });
         $excel->setcreator('BQu');
         $excel->setlastModifiedBy('BQu');
         $excel->setcompany('BQuServices(PVT)LTD');
         $excel->setmanager('Rajitha');
     })->download('xls');
 }