Commit 1933f6ed authored by Yuri Resende's avatar Yuri Resende
Browse files

Atualizando o fork com os commits do repositório principal

parent 4e61e3b6
......@@ -404,24 +404,28 @@ class TrabalhoController extends Controller
$trabalhos_user = TrabalhoUser::where('trabalho_id', $projeto->id)->get();
$avals_projeto = [];
$AvalRelatParcial = [];
$AvalRelatFinal = [];
foreach ($participantes as $participante) {
if (isset($participante->planoTrabalho)) {
$avals = AvaliacaoRelatorio::where('arquivo_id', $participante->planoTrabalho->id)->get();
} else {
$avals = [];
if (isset($arquivos)) {
foreach ($arquivos as $arquivo) {
array_push($avals_projeto, AvaliacaoRelatorio::where('arquivo_id', $arquivo->id)->get());
}
foreach ($avals as $aval) {
}
foreach ($avals_projeto as $avals) {
foreach ($avals as $aval){
if ($aval->tipo == 'Parcial') {
array_push($AvalRelatParcial, $aval);
} else {
array_push($AvalRelatFinal, $aval);
}
}
}
}
return view('projeto.visualizar')->with(['projeto' => $projeto,
'grandeAreas' => $grandeAreas,
'areas' => $areas,
......
......@@ -739,82 +739,85 @@
<hr style="border-top: 1px solid#1492E6">
@if(count($arquivos) > 0)
<div class="row justify-content-start" style="alignment: center">
<div class="col-md-11"><h6 style="color: #234B8B; font-weight: bold">Avaliações de Relatórios Parciais</h6></div>
</div>
@for ($i = 0; $i < count($arquivos); $i++)
<div class='row justify-content-start' style='margin-top:40px;'>
<div class="row justify-content-start" style="alignment: center">
<div class="col-md-11"><h6 style="color: #234B8B; font-weight: bold">Avaliações de Relatórios Parciais</h6></div>
</div>
@for ($i = 0; $i < count($arquivos); $i++)
<div class='row justify-content-start' style='margin-top:40px;'>
<h6 class='col-4' style="color: black; font-weight: bold">Título:<span style="font-weight: normal"> {{$arquivos[$i]->titulo}}</span><h6>
<h6 class='col-9' style="color: black; font-weight: bold">Média das avaliações:<span style="font-weight: normal"> {{$mediaAval[$i]['relatorio_parcial']}}</span><h6>
<h6 class='col-4' style="color: black; font-weight: bold">Média da apresentação:<span style="font-weight: normal"> {{$mediaAval[$i]['apresentacao_parcial']}}</span><h6>
<h6 class='col-3' style="color: black; font-weight: bold">Avaliações pendentes: <span style="font-weight: normal"> {{$mediaAval[$i]['pendentes_parcial']}}</span><h6>
<br><br>
</div>
<div class="row justify-content-start" style="alignment: center">
@foreach($mediaAval[$i]['avaliacoes_parciais'] as $aval)
<div class="col-sm-1" style="margin-bottom: 7px">
<img src="{{asset('img/icons/usuario.svg')}}" style="width:60px" alt="">
</div>
<div class="col-sm-3">
<h5>{{\App\User::find($aval->user_id)->name}}</h5>
<h6><a href="" data-toggle="modal"
data-target="#modalVizuRelatParcial{{$aval->id}}" class="button">
@if($aval->nota == null) Pendente </a>@else Avaliação</a> @endif</h6>
@if($aval->nota == null)
<h6><a href="" data-toggle="modal"
data-target="#removerAvaliadorReltorioParcial{{$aval->id}}" class="button"><b style="color: red">Remover</b></a></h6>
@endif
</div>
</div>
<div class='row justify-content-start'>
<h6 class='col-4' style="color: black; font-weight: bold">Média das avaliações:<span style="font-weight: normal"> {{$mediaAval[$i]['relatorio_parcial']}}</span><h6>
<h6 class='col-4' style="color: black; font-weight: bold">Média da apresentação:<span style="font-weight: normal"> {{$mediaAval[$i]['apresentacao_parcial']}}</span><h6>
<h6 class='col-3' style="color: black; font-weight: bold">Avaliações pendentes: <span style="font-weight: normal"> {{$mediaAval[$i]['pendentes_parcial']}}</span><h6>
<br><br>
</div>
<div class="row justify-content-start" style="alignment: center">
@foreach($mediaAval[$i]['avaliacoes_parciais'] as $aval)
<div class="col-sm-1" style="margin-bottom: 7px">
<img src="{{asset('img/icons/usuario.svg')}}" style="width:60px" alt="">
</div>
<div class="col-sm-3">
<h5>{{\App\User::find($aval->user_id)->name}}</h5>
<h6><a href="" data-toggle="modal"
data-target="#modalVizuRelatParcial{{$aval->id}}" class="button">
@if($aval->nota == null) Pendente </a>@else Avaliação</a> @endif</h6>
@if($aval->nota == null)
<h6><a href="" data-toggle="modal"
data-target="#removerAvaliadorReltorioParcial{{$aval->id}}" class="button"><b style="color: red">Remover</b></a></h6>
@endif
</div>
<!-- Modal Remover -->
<div class="modal fade" id="removerAvaliadorReltorioParcial{{ $aval->id }}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Remover Avaliador Do Relatório Parcial</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<p>Você tem certeza que deseja remover o avaliador: {{ $aval->user->name }}?</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancelar</button>
<a type="button" class="btn btn-danger" href="{{route('avaliacaoRelatorio.remover.avaliador',$aval->id)}}">Remover</a>
</div>
<!-- Modal Remover -->
<div class="modal fade" id="removerAvaliadorReltorioParcial{{ $aval->id }}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Remover Avaliador Do Relatório Parcial</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<p>Você tem certeza que deseja remover o avaliador: {{ $aval->user->name }}?</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancelar</button>
<a type="button" class="btn btn-danger" href="{{route('avaliacaoRelatorio.remover.avaliador',$aval->id)}}">Remover</a>
</div>
</div>
</div>
<!-- Modal visualizar informações participante -->
<div class="modal fade" id="modalVizuRelatParcial{{$aval->id}}" tabindex="-1"
role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<!-- Modal visualizar informações participante -->
<div class="modal fade" id="modalVizuRelatParcial{{$aval->id}}" tabindex="-1"
role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<div class="modal-header" style="overflow-x:auto; padding-left: 31px">
<h5 class="modal-title" id="exampleModalLabel" style="color:#1492E6">
Avaliação do relatório parcial @if($aval->nota == null) <b style="color: red">Pendente</b>@endif</h5>
<div class="modal-header" style="overflow-x:auto; padding-left: 31px">
<h5 class="modal-title" id="exampleModalLabel" style="color:#1492E6">
Avaliação do relatório parcial @if($aval->nota == null) <b style="color: red">Pendente</b>@endif</h5>
<button type="button" class="close" data-dismiss="modal"
aria-label="Close" style="padding-top: 8px; color:#1492E6">
<span aria-hidden="true">&times;</span>
</button>
</div>
<button type="button" class="close" data-dismiss="modal"
aria-label="Close" style="padding-top: 8px; color:#1492E6">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body"
style="padding-right: 32px;padding-left: 32px;padding-top: 20px;padding-bottom: 32px;">
@include('avaliacaoRelatorio.avaliacao', ['avaliacao' => $aval])
</div>
<div class="modal-body"
style="padding-right: 32px;padding-left: 32px;padding-top: 20px;padding-bottom: 32px;">
@include('avaliacaoRelatorio.avaliacao', ['avaliacao' => $aval])
</div>
</div>
</div>
@endforeach
</div>
@endfor
@endforeach
</div>
@endforeach
</div>
@endfor
@endif
@if(count($arquivos) > 0)
......@@ -824,7 +827,7 @@
<div class="row justify-content-start" style="alignment: center" >
<div class="col-md-11"><h6 style="color: #234B8B; font-weight: bold">Avaliações de Relatórios Finais</h6></div>
</div>
@for ($i = 0; $i < count($arquivos); $i++)
<div class='row justify-content-start' style='margin-top:40px;'>
......
......@@ -310,10 +310,6 @@
@endforeach
</tbody>
</table>
</div>
</div>
......
@php $arquivo = \App\Arquivo::find($aval->arquivo_id); @endphp
<div class="container-fluid">
<div class="row">
@if ($arquivo->trabalho->evento->numParticipante != 0)
@if ($arquivo->trabalho->evento->numParticipantes != 0)
<h5><b>Discente:</b>
{{\App\Participante::find($arquivo->participanteId)->user->name}}</h5>
@else
......@@ -20,10 +20,19 @@
<label for="lattes" class="col-form-label font-tam"
style="font-weight: bold">{{ __('Nota: ') }}</label>
</div>
<div class="col-sm-6 text-center padEsquerda">
<div class="col-sm-5 text-center padEsquerda">
<input class="form-control" name="nota" type="number"
style="width: 60px" @if(isset($aval)) value="{{$aval->nota}}" @endif disabled>
</div>
<div class="col-sm-2 padEsquerda">
<label for="lattes" class="col-form-label font-tam"
style="font-weight: bold">{{ __('Apresentação: ') }}</label>
</div>
<div class="col-sm-4 text-center padEsquerda">
<input class="form-control" name="nota" type="number"
style="width: 60px" @if(isset($aval)) value="{{$aval->nota_apresentacao}}" @endif disabled>
</div>
</div>
<div class="row">
<div class="col-sm-12 padEsquerda">
......
......@@ -45,7 +45,6 @@
</div>
</div>
@if($edital->numParticipantes > 0)
<br>
<div class="row justify-content-start">
<div class="col-md-3"><h6 style="color: #234B8B; font-weight: bold">Avaliações dos Relatórios</h6></div>
......@@ -63,7 +62,7 @@
</thead>
<tbody>
@foreach($AvalRelatParcial as $aval)
@php $arquivo = \App\Arquivo::find($aval->arquivo_id);@endphp
@php $arquivo = \App\Arquivo::find($aval->arquivo_id);@endphp
<tr>
<th style="color: black;">{{$cont += 1}}</th>
<td>
......@@ -96,7 +95,7 @@
</div>
@endforeach
@foreach($AvalRelatFinal as $aval)
@php $arquivo = \App\Arquivo::find($aval->arquivo_id);@endphp
@php $arquivo = \App\Arquivo::find($aval->arquivo_id);@endphp
<tr>
<th style="color: black;">{{$cont += 1}}</th>
<td>
......@@ -131,7 +130,6 @@
@endforeach
</tbody>
</table>
@endif
</div>
</div>
</div>
......
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