@extends('layouts.app') @section('content')

Trabalhos do evento: {{ $evento->nome }}

{{--
Data inicioSubmissao: {{ date('d/m/Y', strtotime($evento->inicioSubmissao)) }}
Data fim da submissao: {{ date('d/m/Y', strtotime($evento->fimSubmissao)) }}
--}}
Data inicioRevisao: {{ date('d/m/Y', strtotime($evento->inicioRevisao)) }}
Data fimRevisao: {{ date('d/m/Y', strtotime($evento->fimRevisao)) }}
Data do resultado: {{ date('d/m/Y', strtotime($evento->resultado)) }}

@foreach( $trabalhos as $trabalho )
{{--
--}}
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 --}}
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

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

{{--
--}}
@endforeach
@endsection @section('javascript') @endsection