/** * Show the form for creating a new resource. * * @return Response */ public function create() { $statuses = $this->repository->availableStatus(); $roles = Role::all()->pluck('name', 'id'); return view('epicentrum::create', compact('statuses', 'roles')); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $roles = Role::all(); return view('admin.roles.index', compact('roles')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $user = $this->repository->skipPresenter()->find($id); $roles = Role::all(); return view('admin.users.role.edit', compact('user', 'roles')); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $roles = Role::all(); return view('epicentrum::roles.index', compact('roles')); }