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}}
{{App\SubArea::where('id', $trabalho->sub_area_id)->first()->nome}}
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 --}}
@if($trabalho->anexoAutorizacaoComiteEtica != null)
Arquivo atual
@else
-
@endif
@if($trabalho->justificativaAutorizacaoEtica != null)
Arquivo atual
@else
-
@endif
@if($evento->tipo == 'PIBIC' || $evento->tipo == 'PIBIC-EM')
{{-- Decisão do CONSU --}}
@endif
Discentes
{{-- 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}}
@endif
@endforeach
{{-- @endif --}}
{{-- @endforeach --}}
@endforeach