Unverified Commit fe60acab authored by Yuri Resende's avatar Yuri Resende Committed by GitHub
Browse files

Merge pull request #922 from yuriresendematias/master

Colocando os avaliadores em ordem alfabetica
parents cc814f41 af3ff9a4
......@@ -206,7 +206,9 @@ class AdministradorController extends Controller
$substituicoesPendentes = Substituicao::where('trabalho_id', $trabalho->id)->where('status', 'Em Aguardo')->orderBy('created_at', 'DESC')->get();
$avalSelecionadosId = $trabalho->avaliadors->pluck('id');
$avalProjeto = Avaliador::whereNotIn('id', $avalSelecionadosId)->get();
$avalProjeto = Avaliador::whereNotIn('id', $avalSelecionadosId)->with('user')->get()->sortBy(function($aval){
return $aval->user->name;
});;
$trabalho->aval = $avalProjeto;
// Usuarios que possuem avaliações de relatório
//$avaliacoesRelatorio = [];->join('users','users.id','=','candidatos.user_id')
......
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