diff --git a/app/Http/Controllers/AdministradorController.php b/app/Http/Controllers/AdministradorController.php index c25f93083a3357125b705d87b60ef2f051a37b4a..eba1a111a35748ea05471df120eb70b47fb29213 100755 --- a/app/Http/Controllers/AdministradorController.php +++ b/app/Http/Controllers/AdministradorController.php @@ -75,6 +75,24 @@ class AdministradorController extends Controller return view('administrador.analisar')->with(['trabalhos' => $trabalhos, 'evento' => $evento, 'funcaoParticipantes' => $funcaoParticipantes]); } + public function analisarProposta(Request $request){ + + $trabalho = Trabalho::where('id',$request->id)->first(); + $evento = Evento::where('id', $trabalho->evento_id)->first(); + $funcaoParticipantes = FuncaoParticipantes::all(); + $substituicoesProjeto = Substituicao::where('trabalho_id', $trabalho->id)->orderBy('created_at', 'DESC')->get(); + $substituicoesPendentes = Substituicao::where('trabalho_id', $trabalho->id)->where('status', 'Em Aguardo')->orderBy('created_at', 'DESC')->get(); + + + + return view('administrador.analisarProposta')->with( + [ 'trabalho' => $trabalho, + 'funcaoParticipantes' => $funcaoParticipantes, + 'evento' => $evento, + 'substituicoesPendentes' => $substituicoesPendentes, + 'substituicoesProjeto' => $substituicoesProjeto,]); + } + public function showProjetos(Request $request){ $projetos = Trabalho::all()->where('status','submetido'); diff --git a/resources/views/administrador/analisarProposta.blade.php b/resources/views/administrador/analisarProposta.blade.php new file mode 100644 index 0000000000000000000000000000000000000000..e434e67ab590d8bf8cc6570d9ded686b02fa1b6c --- /dev/null +++ b/resources/views/administrador/analisarProposta.blade.php @@ -0,0 +1,601 @@ +@extends('layouts.app') + +@section('content') + +
Nome: {{ App\Proponente::find($trabalho->proponente_id)->user->name }}
+Lattes: + @if(App\Proponente::where('id', $trabalho->proponente_id)->first()->linkLattes != null) + {{ App\Proponente::where('id', $trabalho->proponente_id)->first()->linkLattes }} + @endif +
+Grupo de Pesquisa: {{ $trabalho->linkGrupoPesquisa }}
+