Commit c8298a4e authored by Guilherme Silva's avatar Guilherme Silva
Browse files

Ajuste de função da listagem 'rapida' de projetos

Showing with 4 additions and 4 deletions
+4 -4
......@@ -2,6 +2,7 @@
namespace App\Http\Controllers;
use App\Substituicao;
use Illuminate\Http\Request;
use App\Administrador;
use App\User;
......@@ -76,11 +77,10 @@ class AdministradorController extends Controller
public function showProjetos(Request $request){
$evento = Evento::where('id', $request->evento_id)->first();
$editais = Evento::with('trabalhos')->get();
$projetos = Trabalho::all();
$projetos = Trabalho::all()->where('status','submetido');
$funcaoParticipantes = FuncaoParticipantes::all();
return view('administrador.listaProjetos', compact('projetos', 'evento','editais'));
return view('administrador.listaProjetos')->with(['projetos'=>$projetos,'funcaoParticipantes'=>$funcaoParticipantes]);
}
public function showResultados(Request $request){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment