Commit 09e4568b authored by unknown's avatar unknown
Browse files

CORREÇÃO, problema ao substituir participante e projeto

parent f6cde4cf
...@@ -3,7 +3,12 @@ ...@@ -3,7 +3,12 @@
<div class="row"> <div class="row">
@if ($arquivo->trabalho->evento->numParticipantes != 0) @if ($arquivo->trabalho->evento->numParticipantes != 0)
<h5><b>Discente:</b> <h5><b>Discente:</b>
{{\App\Participante::find($arquivo->participanteId)->user->name}}</h5> @if(\App\Participante::find($arquivo->participanteId))
{{\App\Participante::find($arquivo->participanteId)->user->name}}
@else
{{\App\Participante::withTrashed()->find($arquivo->participanteId)->user->name}}
@endif
</h5>
@else @else
<h5><b>Proponente:</b> <h5><b>Proponente:</b>
{{$arquivo->trabalho->proponente->user->name}}</h5> {{$arquivo->trabalho->proponente->user->name}}</h5>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment