Unverified Commit b7d2533c authored by Gabriel Antônio da Silva's avatar Gabriel Antônio da Silva Committed by GitHub
Browse files

Merge branch 'master' into modificacoes_layout_2

parents 8de6a88e 18615797
This diff is collapsed.
...@@ -3,14 +3,15 @@ ...@@ -3,14 +3,15 @@
@section('content') @section('content')
<div class="container" style="margin-top: 100px;"> <div class="container" style="margin-top: 100px;">
@if(isset($mensagem)) {{-- @if(isset($mensagem))
<div class="col-sm-12"> <div class="col-sm-12">
<br> <br>
<div class="alert alert-success"> <div class="alert alert-success">
<p>{{ $mensagem }}</p> <p>{{ $mensagem }}</p>
</div> </div>
</div> </div>
@endif @endif --}}
<div class="container" > <div class="container" >
<div class="row" > <div class="row" >
<div class="col-sm-1"> <div class="col-sm-1">
...@@ -39,91 +40,105 @@ ...@@ -39,91 +40,105 @@
</div> </div>
</div> </div>
</div> </div>
@if(session('mensagem'))
<div class="row">
<div class="col-sm-12">
<br>
<div class="alert alert-success">
<p>{{session('mensagem')}}</p>
</div>
</div>
</div>
@endif
<hr> <hr>
<table class="table table-bordered"> <div class="row">
<thead> <div class="col-md-12">
<tr> <table class="table table-bordered">
<th scope="col">Projeto</th> <thead>
<th scope="col">Status</th> <tr>
<th scope="col">Data de Criação</th> <th scope="col">Projeto</th>
<th scope="col">Opção</th> <th scope="col">Status</th>
</tr> <th scope="col">Data de Criação</th>
</thead> <th scope="col">Opção</th>
<tbody> </tr>
@foreach ($projetos as $projeto) </thead>
<tbody>
<tr> @foreach ($projetos as $projeto)
<td>
{{ $projeto->titulo }} <tr>
</td> <td>
@if($projeto->status == 'Avaliado') {{ $projeto->titulo }}
<td style="color: rgb(6, 85, 6)">Avaliado</td> </td>
@elseif($projeto->status == 'Submetido') @if($projeto->status == 'Avaliado')
<td style="color: rgb(0, 0, 0)">Submetido</td> <td style="color: rgb(6, 85, 6)">Avaliado</td>
@elseif($projeto->status == 'Rascunho') @elseif($projeto->status == 'Submetido')
<td style="color: rgb(0, 0, 0)">Rascunho</td> <td style="color: rgb(0, 0, 0)">Submetido</td>
@endif @elseif($projeto->status == 'Rascunho')
<td>{{ date('d/m/Y', strtotime($projeto->updated_at)) }}</td> <td style="color: rgb(0, 0, 0)">Rascunho</td>
<td> @endif
<div class="btn-group dropright dropdown-options"> <td>{{ date('d/m/Y', strtotime($projeto->updated_at)) }}</td>
<a id="options" class="dropdown-toggle " data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <td>
<img src="{{asset('img/icons/ellipsis-v-solid.svg')}}" style="width:8px"> <div class="btn-group dropright dropdown-options">
</a> <a id="options" class="dropdown-toggle " data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<div class="dropdown-menu"> <img src="{{asset('img/icons/ellipsis-v-solid.svg')}}" style="width:8px">
@if($projeto->evento->inicioSubmissao <= $hoje && $hoje <= $projeto->evento->fimSubmissao) </a>
<a href="{{ route('trabalho.editar', ['id' => $projeto->id]) }}" class="dropdown-item" style="text-align: center;"> <div class="dropdown-menu">
Editar @if($projeto->evento->inicioSubmissao <= $hoje && $hoje <= $projeto->evento->fimSubmissao)
</a> <a href="{{ route('trabalho.editar', ['id' => $projeto->id]) }}" class="dropdown-item" style="text-align: center;">
<hr class="dropdown-hr"> Editar
@else </a>
@endif
<a href="{{ route('trabalho.show', ['id' => $projeto->id]) }}" class="dropdown-item" style="text-align: center">
Visualizar
</a>
{{-- <a href="" class="dropdown-item" style="text-align: center">
Recorrer
</a>
<a href="" class="dropdown-item" style="text-align: center">
Resultado
</a> --}}
@if($projeto->status == 'Submetido')
<hr class="dropdown-hr"> <hr class="dropdown-hr">
<!-- Button trigger modal --> @else
<button type="button" class="dropdown-item dropdown-item-delete" style="text-align: center" data-toggle="modal" data-target="#modal{{$projeto->id}}">
<img src="{{asset('img/icons/logo_lixeira.png')}}" alt=""> Deletar
</button>
@endif @endif
<a href="{{ route('trabalho.show', ['id' => $projeto->id]) }}" class="dropdown-item" style="text-align: center">
</div> Visualizar
</div> </a>
</td> {{-- <a href="" class="dropdown-item" style="text-align: center">
</tr> Recorrer
</a>
<!-- Modal --> <a href="" class="dropdown-item" style="text-align: center">
<div class="modal fade" id="modal{{$projeto->id}}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> Resultado
<div class="modal-dialog"> </a> --}}
<div class="modal-content"> @if($projeto->status == 'Submetido')
<div class="modal-header"> <hr class="dropdown-hr">
<h5 class="modal-title" id="exampleModalLabel">Deletar o projeto: {{ $projeto->titulo }}</h5> <!-- Button trigger modal -->
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> <button type="button" class="dropdown-item dropdown-item-delete" style="text-align: center" data-toggle="modal" data-target="#modal{{$projeto->id}}">
<span aria-hidden="true">&times;</span> <img src="{{asset('img/icons/logo_lixeira.png')}}" alt=""> Deletar
</button> </button>
</div> @endif
<div class="modal-body">
<p>Você tem certeza que deseja deletar o projeto: {{ $projeto->titulo }}?</p> </div>
</div> </div>
<div class="modal-footer"> </td>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancelar</button> </tr>
<a href="{{ route('trabalho.destroy', ['id' => $projeto->id]) }}" class="btn btn-primary">
Deletar <!-- Modal -->
</a> <div class="modal fade" id="modal{{$projeto->id}}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Deletar o projeto: {{ $projeto->titulo }}</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 deletar o projeto: {{ $projeto->titulo }}?</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancelar</button>
<a href="{{ route('trabalho.destroy', ['id' => $projeto->id]) }}" class="btn btn-primary">
Deletar
</a>
</div>
</div> </div>
</div> </div>
</div> </div>
</div> @endforeach
@endforeach </tbody>
</tbody> </table>
</table> </div>
</div>
</div> </div>
@endsection @endsection
......
...@@ -41,12 +41,15 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function(){ ...@@ -41,12 +41,15 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function(){
//######## Rotas Avaliador #################################### //######## Rotas Avaliador ####################################
Route::prefix('avaliador')->name('avaliador.')->group(function(){ Route::prefix('avaliador')->name('avaliador.')->group(function(){
Route::get('/index', 'AvaliadorController@index' )->name('index')->middleware('auth'); Route::get('/index', 'AvaliadorController@index' )->name('index')->middleware('auth');
Route::get('/trabalhos', 'AvaliadorController@visualizarTrabalhos' )->name('visualizarTrabalho')->middleware('auth'); Route::get('/trabalhos', 'AvaliadorController@visualizarTrabalhos' )->name('visualizarTrabalho')->middleware('auth');
Route::post('/parecer', 'AvaliadorController@parecer' )->name('parecer')->middleware('auth'); Route::get('/planos', 'AvaliadorController@listarPlanos' )->name('listarPlanos')->middleware('auth');
Route::get('/editais', 'AvaliadorController@editais' )->name('editais')->middleware('auth'); Route::post('/parecer', 'AvaliadorController@parecer' )->name('parecer')->middleware('auth');
Route::post('/Enviarparecer', 'AvaliadorController@enviarParecer' )->name('enviarParecer')->middleware('auth'); Route::post('/parecer/plano', 'AvaliadorController@parecerPlano' )->name('parecer.plano')->middleware('auth');
Route::get('/Resposta', 'AvaliadorController@conviteResposta' )->name('conviteResposta')->middleware('auth'); Route::get('/editais', 'AvaliadorController@editais' )->name('editais')->middleware('auth');
Route::post('/Enviarparecer', 'AvaliadorController@enviarParecer' )->name('enviarParecer')->middleware('auth');
Route::post('/Enviarparecer', 'AvaliadorController@enviarParecerPlano' )->name('enviarParecerPlano')->middleware('auth');
Route::get('/Resposta', 'AvaliadorController@conviteResposta' )->name('conviteResposta')->middleware('auth');
}); });
...@@ -73,6 +76,14 @@ Route::prefix('avaliador')->name('avaliador.')->group(function(){ ...@@ -73,6 +76,14 @@ Route::prefix('avaliador')->name('avaliador.')->group(function(){
Route::get('/participante/index', 'ParticipanteController@index' )->name('participante.index'); Route::get('/participante/index', 'ParticipanteController@index' )->name('participante.index');
Route::get('/participante/edital/{id}', 'ParticipanteController@edital' )->name('participante.edital'); Route::get('/participante/edital/{id}', 'ParticipanteController@edital' )->name('participante.edital');
//######### Plano de Trablho ########################################
Route::prefix('/plano/trabalho')->name('plano.trabalho.')->group(function(){
Route::get('/index/{evento_id}', 'PlanoTrabalhoController@index' )->name('index');
Route::get('/selecionar/{evento_id}', 'PlanoTrabalhoController@selecionarPlanos' )->name('selecionarPlanos');
Route::post('/atribuicao', 'PlanoTrabalhoController@atribuicao' )->name('atribuicao');
});
//########## Area da comissao ################################### //########## Area da comissao ###################################
Route::get( '/comissoes', 'EventoController@listComissao' )->name('comissoes'); Route::get( '/comissoes', 'EventoController@listComissao' )->name('comissoes');
Route::get( '/area/comissao', 'EventoController@listComissaoTrabalhos' )->name('area.comissao'); Route::get( '/area/comissao', 'EventoController@listComissaoTrabalhos' )->name('area.comissao');
...@@ -102,7 +113,7 @@ Route::prefix('avaliador')->name('avaliador.')->group(function(){ ...@@ -102,7 +113,7 @@ Route::prefix('avaliador')->name('avaliador.')->group(function(){
Route::get( '/edital/{id}/projetos', 'TrabalhoController@projetosDoEdital' )->name('projetos.edital'); Route::get( '/edital/{id}/projetos', 'TrabalhoController@projetosDoEdital' )->name('projetos.edital');
Route::get( '/projeto/{id}/visualizar', 'TrabalhoController@show' )->name('trabalho.show'); Route::get( '/projeto/{id}/visualizar', 'TrabalhoController@show' )->name('trabalho.show');
Route::get( '/projeto/{id}/editar', 'TrabalhoController@edit' )->name('trabalho.editar'); Route::get( '/projeto/{id}/editar', 'TrabalhoController@edit' )->name('trabalho.editar');
Route::post( '/projeto/{id}/atualizar', 'TrabalhoController@update' )->name('trabalho.update'); Route::post( '/projeto/{id}/atualizar', 'TrabalhoController@atualizar' )->name('trabalho.update');
Route::get( '/projeto/{id}/excluir', 'TrabalhoController@destroy' )->name('trabalho.destroy'); Route::get( '/projeto/{id}/excluir', 'TrabalhoController@destroy' )->name('trabalho.destroy');
Route::get( '/projeto/{id}/excluirParticipante','TrabalhoController@excluirParticipante')->name('trabalho.excluirParticipante'); Route::get( '/projeto/{id}/excluirParticipante','TrabalhoController@excluirParticipante')->name('trabalho.excluirParticipante');
......
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