Commit ce741f95 authored by Guilherme Silva's avatar Guilherme Silva
Browse files

Ajuste no acesso ao perfil avaliador

parent 0076dca1
......@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
use App\Area;
use App\Arquivo;
use App\AvaliacaoRelatorio;
use App\FuncaoParticipantes;
use App\GrandeArea;
use App\ParecerInterno;
......@@ -54,8 +55,8 @@ class AvaliadorController extends Controller
);
public function index(){
return view('avaliador.index');
$flagAvalRelatorio = count(AvaliacaoRelatorio::where('user_id',Auth::user()->id )->get());
return view('avaliador.index', compact('flagAvalRelatorio'));
}
public function editais(Request $request){
......
......@@ -46,6 +46,7 @@ class HomeController extends Controller
}
else if (Auth::user()->avaliadors != null) {
$flagAvalRelatorio = count(AvaliacaoRelatorio::where('user_id',Auth::user()->id )->get());
dd($flagAvalRelatorio);
return view('avaliador.index', compact('flagAvalRelatorio'));
}
else if (Auth::user()->participantes != null) {
......
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