示例#1
0
 public function update($id)
 {
     $announcement = Announcement::findOrFail($id);
     $levels = Level::all();
     $dataView = ['announcement' => $announcement, 'levels' => $levels];
     return view('admin.announcement.edit', $dataView);
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $level = Level::all();
     return view('admin/level')->with('levels', $level);
     // admin/level; here level is view name,
     // where as ('level',$level); level is alise for $level.i.e;
     // level vararable should be catched in view
 }
 /**
  * Despliega la forma para editar una sugerencia específica, basados en el id
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $levels = Level::all();
     $suggestion = Suggestion::find($id);
     //dd($suggestion->level);
     //return view('suggestions.edit')->with('suggestion',$suggestion);
     return view('suggestions.edit')->with(['suggestion' => $suggestion, 'levels' => $levels]);
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $crs = Course::find($id);
     $aff = Affiliate::all();
     $stm = Stream::all();
     $lvl = Level::all();
     return view('admin/edit_course')->with('course', $crs)->with('affiliates', $aff)->with('streams', $stm)->with('levels', $lvl);
 }
示例#5
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     if (\Auth::user()->role_id != 4) {
         return view('html.error-403');
     }
     $title = "Level";
     $data = Level::all();
     return view('html.level.list', compact('data', 'title'));
 }
示例#6
0
 public function update($id)
 {
     $lines = Line::all();
     $levels = Level::all();
     $employee = Employee::findOrFail($id);
     $salesManagers = Employee::where('level_id', 2)->get();
     $areaManagers = Employee::where('level_id', 3)->get();
     $dataView = ['lines' => $lines, 'levels' => $levels, 'employee' => $employee, 'salesManagers' => $salesManagers, 'areaManagers' => $areaManagers];
     return view('admin.employee.edit', $dataView);
 }
 public function levelManage(Request $request)
 {
     $username = $request->session()->get("username");
     $levels = Level::all();
     $msg = $request->session()->get("msg");
     $view = view('/admin/LevelManage', ['username' => $username, 'levels' => $levels]);
     if ($msg == null) {
         return $view;
     } else {
         return $view->with("msg", $msg);
     }
 }
 public function info(Request $request)
 {
     $username = $request->session()->get("username");
     $user = User::where('username', '=', $username)->first();
     if ($user == null) {
         return redirect('home');
     }
     $reader = Reader::find($user['reader-id']);
     $levels = Level::all();
     return view('/reader/info', ['username' => $username, 'user' => $user, 'reader' => $reader, 'levels' => $levels]);
 }
示例#9
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $title = "Role";
     $data = Level::all();
     return view('html.level.list', compact('data', 'title'));
 }
 public function readerDetail(Request $request)
 {
     $msg = $request->session()->get("msg");
     $username = $request->session()->get("username");
     $id = $request->input("id");
     $reader = Reader::find($id);
     $user = User::where('reader-id', '=', $id)->first();
     $levels = Level::all();
     $view = view('admin/ReaderDetail', ['username' => $username, 'reader' => $reader, 'user' => $user, "levels" => $levels]);
     if ($msg == null) {
         return $view;
     } else {
         return $view->with("msg", $msg);
     }
 }
示例#11
0
 public function listAll()
 {
     $levels = Level::all();
     $dataView = ['levels' => $levels];
     return view('admin.level.list', $dataView);
 }
 public function levelUpIfPossible()
 {
     $points = $this->getUserPoints();
     $currentLevel = $this->getUserLevel();
     $levels = \App\Level::all();
     if ($currentLevel->id != count($levels)) {
         $nextLevel = $levels[$currentLevel->id];
         if ($nextLevel->criteria <= $points) {
             $this->setUserLevel($nextLevel->id);
         }
     }
 }
示例#13
0
 /**
  * Update the specified resource in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function view()
 {
     $data = \App\Level::all();
     return view('level.view')->withData($data);
 }
 public function compose(View $view)
 {
     $examList = array('' => 'Select a exam date') + DB::table('sittings')->select(DB::raw('concat (month," / ",year) as sitting,id'))->lists('sitting', 'id');
     $view->with('methodList', \App\Method::all())->with('levelList', \App\Level::all())->with('paperList', \App\Paper::all())->with('centreList', \App\Centre::all())->with('elementList', \App\Element::all())->with('examList', $examList);
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $levels = Level::all();
     return view('admin.level.base', ['levels' => $levels]);
 }
 /**
  * Muestra la forma para una busqueda general
  * https://www.youtube.com/watch?v=FY6Pmrmz0Ws
  * @return Response
  */
 public function general()
 {
     $levels = Level::all();
     return view('search.general_seek')->with('levels', $levels);
 }
示例#17
0
 /**
  *Get all the levels available in the locate system
  * @return mixed
  */
 public function getAllLevels()
 {
     return $this->level->all();
 }