From f898e4414d3d3c17a671f33d7c273cb9da8a637f Mon Sep 17 00:00:00 2001 From: Guilherme Silva Date: Sun, 30 Jan 2022 18:03:28 -0300 Subject: [PATCH] =?UTF-8?q?Criada=20nova=20tela=20para=20visualiza=C3=A7?= =?UTF-8?q?=C3=A3o=20de=20proposta?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/AdministradorController.php | 18 + .../administrador/analisarProposta.blade.php | 601 ++++++++++++++++++ 2 files changed, 619 insertions(+) create mode 100644 resources/views/administrador/analisarProposta.blade.php diff --git a/app/Http/Controllers/AdministradorController.php b/app/Http/Controllers/AdministradorController.php index c25f930..eba1a11 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 0000000..e434e67 --- /dev/null +++ b/resources/views/administrador/analisarProposta.blade.php @@ -0,0 +1,601 @@ +@extends('layouts.app') + +@section('content') + +
+ +
+
+
+
+
+
{{$trabalho->titulo}}
+
{{$evento->nome}}
+
+
+
+
+
+ +
+
+
+
+
+
Área de Ensino
+
+ {{App\GrandeArea::where('id', $trabalho->grande_area_id)->first()->nome}}> + {{App\Area::where('id', $trabalho->area_id)->first()->nome}} + @if(App\SubArea::where('id', $trabalho->sub_area_id)->first() != null)> {{App\SubArea::where('id', $trabalho->sub_area_id)->first()->nome}}@endif + +
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
Informações do Proponente
+
+
+
+

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 }}

+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
Discentes
+
+ Substituições Pendentes + @if($substituicoesPendentes->count() > 0) + + @endif +
+
+
+ +
+ @foreach($trabalho->participantes as $participante) +
+ +
+
+
{{$participante->user->name}}
+ + Informações + +
+ + Remover + +
+ + + + + + + + + + @endforeach +
+
+
+
+
+
+ + +
+
+
+
+
+
+
Anexos
+
+ + {{-- Anexo do Projeto --}} +
+ {{-- Arquivo --}} +
+ + Arquivo + +
+ +
+ + Arquivo + +
+ +
+ + @if($trabalho->anexoAutorizacaoComiteEtica != null) + Arquivo + + @else + - + @endif +
+ +
+ + Arquivo + +
+ +
+ + @if($trabalho->justificativaAutorizacaoEtica != null) + Arquivo + + @else + - + @endif +
+ + @if($evento->tipo == 'PIBIC' || $evento->tipo == 'PIBIC-EM') + {{-- Decisão do CONSU --}} +
+ + Arquivo + + +
+ @endif + +
+
+
+
+
+
+ + +
+
+
+
+
+
+
Avaliadores
+
+
+
+
+ @foreach($trabalho->avaliadors as $avaliador) +
+ +
+
+
{{$avaliador->user->name}}
+ @if($avaliador->pivot->parecer == null) Pendente @else Avaliado @endif +
+ + Remover + +
+ @endforeach +
+
+
+
+
+
+ + +
+
+
+
+
+
+
Aprovação
+
+
1/3
+
+
+
+
+
+
+ Comentário + +
+
+ + Aprovar + + Negar +
+
+ + +
+
+
+
+
+
+ + + + + + + +@endsection + +@section('javascript') + + + + + +@endsection -- GitLab