예제 #1
0
 public function create()
 {
     $perfis = ['-1' => 'Selecione o perfil'] + PerfilUsuario::orderBy('tipo', 'asc')->lists('tipo', 'id')->all();
     $planos = ['-1' => 'Selecione o plano'] + Plano::orderBy('nome', 'asc')->lists('nome', 'id')->all();
     $tiposVendedores = ['-1' => 'Selecione o tipo de vendedor'] + TipoVendedor::orderBy('tipo', 'asc')->lists('tipo', 'id')->all();
     $metas = ['-1' => 'Selecione a meta'] + Meta::orderBy('numeroEmpresas', 'asc')->lists('numeroEmpresas', 'id')->all();
     return View('Usuario.create')->with('perfis', $perfis)->with('planos', $planos)->with('tiposVendedores', $tiposVendedores)->with('metas', $metas);
 }
예제 #2
0
 public function index()
 {
     $metas = Meta::orderBy('numeroAssinaturas', 'asc')->paginate(10);
     //        $metas = Meta::orderBy('nome','asc')->lists('nome', 'id');
     return view('Meta.Index')->with('metas', $metas);
 }