From 09e4568bbe80c2ce7d787786cc710373da20f803 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 12 Jun 2023 17:52:19 -0300 Subject: [PATCH] =?UTF-8?q?CORRE=C3=87=C3=83O,=20problema=20ao=20substitui?= =?UTF-8?q?r=20participante=20e=20projeto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/avaliacaoRelatorio/avaliacao.blade.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/views/avaliacaoRelatorio/avaliacao.blade.php b/resources/views/avaliacaoRelatorio/avaliacao.blade.php index 13f9b05..e534b70 100644 --- a/resources/views/avaliacaoRelatorio/avaliacao.blade.php +++ b/resources/views/avaliacaoRelatorio/avaliacao.blade.php @@ -3,7 +3,12 @@
@if ($arquivo->trabalho->evento->numParticipantes != 0)
Discente: - {{\App\Participante::find($arquivo->participanteId)->user->name}}
+ @if(\App\Participante::find($arquivo->participanteId)) + {{\App\Participante::find($arquivo->participanteId)->user->name}} + @else + {{\App\Participante::withTrashed()->find($arquivo->participanteId)->user->name}} + @endif + @else
Proponente: {{$arquivo->trabalho->proponente->user->name}}
-- GitLab