@extends('layouts.app') @section('content') @php $grandesAreas = \App\GrandeArea::all(); @endphp
@if (session('sucesso'))
{{ session('sucesso') }}
@endif
{{$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
Discentes
@if($substituicoesPendentes->count() > 0) Substituições Pendentes @else Substituições @endif

@foreach($trabalho->participantes as $participante)
{{$participante->user->name}}
Informações
Remover
@foreach($substituicoesProjeto as $subs) @endforeach @endforeach
Anexos

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

{{-- Relatório Parcial --}}
{{-- Relatório Final --}}
Avaliadores

Avaliadores - Externos
@foreach($trabalho->avaliadors as $avaliador) @if($avaliador->tipo == 'Externo' || $avaliador->tipo == null)
{{$avaliador->user->name}}
@if($avaliador->tipo == 'Externo' || $avaliador->tipo == null) @if($avaliador->trabalhos->where('id', $trabalho->id)->first()->pivot->parecer == null) Pendente @else Avaliado @endif @else @php $parecerInterno = App\ParecerInterno::where([['avaliador_id',$avaliador->id],['trabalho_id',$trabalho->id]])->first(); @endphp @if($parecerInterno == null) Pendente @else Avaliado @endif @endif {{--
Remover --}}
Reenviar convite
@endif @endforeach

Avaliadores - Internos
@foreach($trabalho->avaliadors as $avaliador) @if($avaliador->tipo == 'Interno')
{{$avaliador->user->name}}
@php $parecerInterno = App\ParecerInterno::where([['avaliador_id',$avaliador->id],['trabalho_id',$trabalho->id]])->first(); @endphp @if($parecerInterno == null) Pendente @else Avaliado @endif
{{-- Remover --}} Reenviar convite
@endif @endforeach
Aprovação

@csrf
Comentário
@endsection @section('javascript') @endsection