Unverified Commit 92caee14 authored by GuilhermeGz's avatar GuilhermeGz Committed by GitHub
Browse files

Merge pull request #422 from antonioDurval/master

Correção edição PIVIC e botão que da acesso aos projetos que um avaliador está definido
parents cc459d4b 1d086076
......@@ -599,12 +599,16 @@ class AdministradorController extends Controller
$avalSelecionados = $evento->avaliadors;
$avalNaoSelecionadosId = $evento->avaliadors->pluck('id');
$avaliadores = Avaliador::whereNotIn('id', $avalNaoSelecionadosId)->get();
$trabalhos = $evento->trabalhos->whereNotIn('status', 'rascunho');
//dd($avaliadores);
return view('administrador.selecionarAvaliadores', [
'evento'=> $evento,
'avaliadores'=>$avaliadores,
'avalSelecionados'=>$avalSelecionados,
'grandeAreas' => $grandeAreas
'grandeAreas' => $grandeAreas,
'trabalhos' => $trabalhos
]);
}
public function projetos(Request $request){
......
......@@ -94,6 +94,7 @@
<th scope="col">Tipo</th>
<th scope="col">Email</th>
<th scope="col">Status</th>
<th scope="col">Projetos</th>
<th scope="col" style="text-align:center">Ação</th>
</tr>
</thead>
......@@ -112,6 +113,42 @@
@endif
<td><button data-toggle="modal" class="btn btn-primary" style="color:white;
" data-target="#avaliadorModalCenter{{$avaliador->id}}" @if($avaliador->trabalhos->where('evento_id', $evento->id)->count() == 0) disabled="disabled" @endif>Visualizar</button></td>
<!-- MODAL Projetos -->
<div class="modal fade" id="avaliadorModalCenter{{$avaliador->id}}" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true" style="overflow-y: hidden">
<div class="modal-dialog modal-dialog-centered modal-xl" role="document">
<div class="modal-content modal-submeta modal-xl">
<div class="modal-header modal-header-submeta">
<div class="col-md-8" style="padding-left: 0px">
<h5 class="modal-title titulo-table" id="avaliacaoModalLongTitle">
Projetos do Avaliador</h5>
</div>
<div class="col-md-4" style="text-align: right">
<button type="button" class="close" aria-label="Close"
data-dismiss="modal" style="color: rgb(182, 182, 182);padding-right: 0px;">
<span aria-hidden="true">&times;</span>
</button>
</div>
</div>
<div class="modal-body" style="margin-left: 20px; margin-right: 20px;">
@foreach($trabalhos as $trabalho)
@foreach($trabalho->avaliadors as $avaliador1)
@if($avaliador1->id == $avaliador->id)
{{-- {{ $avaliador->trabalhos->where('id', $trabalho->id)->first()->pivot }} --}}
<a href="{{route('admin.analisarProposta',['id'=>$trabalho->id])}}">Título: {{ $trabalho->titulo }}</a><br>
@endif
@endforeach
@endforeach
</div>
</div>
</div>
</div>
<td @if($avaliador->eventos->where('id', $evento->id)->first()->pivot->convite != null) style="text-align:center" @endif style="text-align:center; display:flex; justify-content: space-evenly">
<form action="{{ route('admin.remover') }}" method="POST">
@csrf
......
<!-- Participantes -->
<!-- Participantes AKI-->
<div class="col-md-12" style="margin-top: 20px">
<div class="card" style="border-radius: 5px">
<div class="card-body" style="padding-top: 0.2rem;">
......@@ -34,7 +34,7 @@
<a href="" style="" class="justify-content-center" data-toggle="modal" data-target="#exampleModal{{$i}}" id="nomePart{{$i+1}}">
@if($participante)
@if(isset(old('name')[$i]))Nome: {{old('name')[$i]}} @else Nome: {{$participante->user->name}} @endif
@if(isset(old('nomePlanoTrabalho')[$i]))<br> Plano: {{old('nomePlanoTrabalho')[$i]}} @else <br>Plano: {{$participante->planoTrabalho->titulo}} @endif
@if(isset(old('nomePlanoTrabalho')[$i]))<br> Plano: {{old('nomePlanoTrabalho')[$i]}} @else <br>Plano: {{$participante->planoTrabalho->titulo ?? 'Não informado'}} @endif
@else
Discente
@endif
......
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