Ejemplo n.º 1
0
 /**
  * Show the form for creating a new resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function create()
 {
     $subjects = Subject::orderBy('name')->get();
     $subjectmapping = [];
     foreach ($subjects as $subject) {
         $subjectmapping[$subject->id] = $subject->name;
     }
     return view('circle.create', ['subjectmapping' => $subjectmapping]);
 }
Ejemplo n.º 2
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $subjects = Subject::orderBy('created_at', 'desc')->paginate(10);
     return view('admin.subject.subject', compact('subjects'));
 }
Ejemplo n.º 3
0
 public function subject()
 {
     $subjects = Subject::orderBy('catalog_no')->get();
     return view('admin.subject', compact('subjects'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $subjects = Subject::orderBy('semester_id')->get();
     return view('subject.index', compact('subjects'));
 }
Ejemplo n.º 5
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $subjects = Subject::orderBy('name')->get();
     return view('subject.index', ['subjects' => $subjects]);
 }