@extends('layouts.app') @section('content')
Edital - {{$evento->nome}}
Propostas Submetidas

Proposta Pendente Proposta Recomendada Proposta Negada
Proposta Parcialmente Recomendada
@foreach( $trabalhos as $trabalho )

Título: {{ $trabalho->titulo }}
@if($trabalho->status == "aprovado") @elseif($trabalho->status == "reprovado") @elseif($trabalho->status == "corrigido") @else @endif

Proponente: {{ App\Proponente::find($trabalho->proponente_id)->user->name }}

Discentes: @foreach($trabalho->participantes as $participante) {{$participante->user->name}}; @endforeach

@if($trabalho->grande_area_id != null && $trabalho->area_id != null && $trabalho->sub_area_id != null)
{{$trabalho->grandeArea->nome}} > {{$trabalho->area->nome}} > {{$trabalho->subArea->nome}}
@endif
@endforeach

{{ $trabalhos->appends(['evento_id' => $evento->id])->links() }}
@endsection @section('javascript') @endsection