From 2ec4089cf40ca56b48b430912b9b21850190071b Mon Sep 17 00:00:00 2001 From: Guilherme Silva Date: Sun, 30 Jan 2022 17:24:55 -0300 Subject: [PATCH] =?UTF-8?q?Adicionado=20'acesso=20r=C3=A1pido'=20aos=20pro?= =?UTF-8?q?jetos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../administrador/listaProjetos.blade.php | 368 +++++++++++++++--- resources/views/layouts/app.blade.php | 3 +- 2 files changed, 308 insertions(+), 63 deletions(-) diff --git a/resources/views/administrador/listaProjetos.blade.php b/resources/views/administrador/listaProjetos.blade.php index a39c2f7..a24914c 100755 --- a/resources/views/administrador/listaProjetos.blade.php +++ b/resources/views/administrador/listaProjetos.blade.php @@ -1,85 +1,329 @@ @extends('layouts.app') @section('content') -
-
-
-

Editais

+
+ +
+
+
+

Projetos

+
+
- -
-
- @if(session('mensagem')) -
-
-
-

{{session('mensagem')}}

+
+ @if(session('mensagem')) +
+
+
+

{{session('mensagem')}}

+
-
- @endif -
- -
- @foreach ($editais as $edital) -
- -
-
-

- -

-
- -
-
+ @endif +
+ +
+ @foreach ($projetos as $trabalho) + @php + $evento = $trabalho->evento + @endphp +
+ +
+
+

+ +

+
+ +
+
+ {{--
--}} +
Visualizar Projeto
+

+ + + {{-- Nome do Projeto --}} +

+
+ + {{ $trabalho->titulo }} +
+
+ + {{-- Grande Area --}} +
+
+ + {{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 +
+
+
+ +

Coordenador

+ {{-- Coordenador --}} +
+ +
+ + {{ App\Proponente::find($trabalho->proponente_id)->user->name }} +
+
+ + {{ App\Proponente::find($trabalho->proponente_id)->user->email }} +
+ +
+ + + @if(App\Proponente::where('id', $trabalho->proponente_id)->first()->linkLattes != null) + {{ App\Proponente::where('id', $trabalho->proponente_id)->first()->linkLattes }} + @endif + +
+ +
+ + {{$trabalho->pontuacaoPlanilha}} +
+ +
+ + {{ $trabalho->linkGrupoPesquisa }} +
+ +
+
+ +

Anexos

+ + {{-- Anexo do Projeto --}} +
+ {{-- Arquivo --}} +
+ + Arquivo atual +
+ +
+ + Arquivo atual +
+ +
+ + @if($trabalho->anexoAutorizacaoComiteEtica != null) + Arquivo atual + @else + - + @endif +
- - +
+ + Arquivo atual +
+ +
+ + @if($trabalho->justificativaAutorizacaoEtica != null) + Arquivo atual + @else + - + @endif +
+ + @if($evento->tipo == 'PIBIC' || $evento->tipo == 'PIBIC-EM') + {{-- Decisão do CONSU --}} +
+ + Arquivo atual +
+ @endif + + +
+ + {{--Discentes--}} +

Discentes

+ + Substituições + + {{-- Participantes --}} +
+
+
+ @foreach($trabalho->participantes as $participante) + {{-- @foreach($users as $user) --}} + {{-- @if($participante->user_id === $user->id) --}} +
+
+
Dados do discente
+
+
+ + {{ $participante->user->name }} +
+ +
+ + {{ $participante->user->email }} +
+ +
+ + +
+
+ +
Dados do plano de trabalho
+ @php + $arquivos = App\Arquivo::where('trabalhoId', $trabalho->id)->get(); + @endphp + @foreach($arquivos as $arquivo) + @if($arquivo->participanteId === $participante->id) +
+
+
+
+
+ + + {{$arquivo->titulo}} + +
+ + +
+ +

+ Plano de trabalho atual +

+
+
+
+
+
+ @endif + @endforeach +
Relatórios
+
+
+
+
+
+ + + +
+
+ + + +
+
+
+
+ + + +
+
+ + + +
+
+
+ +
+
+
+ {{-- @endif --}} + {{-- @endforeach --}} + @endforeach +
+
+
+
+ + {{--Avaliadores--}} +

Avaliadores

+
+ - - - - - - + + + + - - - - @foreach ($edital->trabalhos as $projeto) + + + @foreach($trabalho->avaliadors as $avaliador) + + + - - - - - - - @endforeach - -
Nome da PropostaAutorEmailData de CriaçãoStatusOpçãoNomeE-mailStatus avaliaçãoAção
{{$avaliador->user->name}}{{$avaliador->user->email}}@if($avaliador->pivot->parecer == null) Pendente @else Avaliado @endif - - {{ $projeto->titulo }} - - {{ $projeto->proponente->user->name }}{{ $projeto->proponente->user->email }}{{ date('d/m/Y \à\s H:i\h', strtotime($projeto->created_at)) }}{{ $projeto->status }} - +
+ + + + +
+
+ @endforeach +
-
- @endforeach -
+
-
- +
@endsection \ No newline at end of file diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 4ac4f0b..4b6c060 100755 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -181,7 +181,8 @@ @if(Auth::user()->administradors != null) Editais - @else + Projetos + @else Editais @endif