diff --git a/app/Http/Controllers/TrabalhoController.php b/app/Http/Controllers/TrabalhoController.php index 95a53346a166d11b1ee643790b0db71f98f28fb7..b6a4afb13fc567e617a4695c5b4932e61c7d370a 100755 --- a/app/Http/Controllers/TrabalhoController.php +++ b/app/Http/Controllers/TrabalhoController.php @@ -848,6 +848,16 @@ class TrabalhoController extends Controller return abort(404); } + public function baixarAnexoSIPAC($id) + { + $projeto = Trabalho::find($id); + if (Storage::disk()->exists($projeto->anexo_SIPAC)) { + ob_end_clean(); + return Storage::download($projeto->anexo_SIPAC); + } + return abort(404); + } + public function baixarAnexoTemp($eventoId, $nomeAnexo) { $proponente = Proponente::where('user_id', Auth::user()->id)->first(); diff --git a/resources/views/administrador/analisarProposta.blade.php b/resources/views/administrador/analisarProposta.blade.php index 3acdac51c490b0cb1ba244a421d9fe2e346aedb0..e96e6227c2b6965647855eb15c75c4f1c2be2101 100644 --- a/resources/views/administrador/analisarProposta.blade.php +++ b/resources/views/administrador/analisarProposta.blade.php @@ -435,94 +435,105 @@
- {{-- Anexo do Projeto --}}
- {{-- Arquivo --}} -
- - - -
- - @if($evento->tipo != "PIBEX") + @if($evento->tipo != "CONTINUO") + {{-- Anexo do Projeto --}} + {{-- Arquivo --}}
- - + +
- @endif - @if($evento->tipo != "PIBEX") -
- @if($trabalho->anexoAutorizacaoComiteEtica != null) - - - @else - - @if($trabalho->justificativaAutorizacaoEtica != null) - - @else - - - @endif - @endif -
- @endif + @if($evento->tipo != "PIBEX") +
+ + - @if($evento->tipo != "PIBEX") -
- - +
+ @endif -
- @endif + @if($evento->tipo != "PIBEX") +
+ @if($trabalho->anexoAutorizacaoComiteEtica != null) + + + @else + + @if($trabalho->justificativaAutorizacaoEtica != null) + + @else + - + @endif + @endif +
+ @endif - @if($evento->tipo != "PIBEX") -
- - @if($trabalho->anexoGrupoPesquisa != null) - tipo != "PIBEX") + - @endif - @if($evento->tipo == 'PIBIC' || $evento->tipo == 'PIBIC-EM' || $evento->tipo == "PIBEX") - {{-- Decisão do CONSU --}} -
- - -
- @endif - @if($evento->nome_docExtra != null) - {{-- Documento Extra --}} -
- - @if($trabalho->anexo_docExtra) - - @else - - - - @endif -
- @endif +
+ @endif + @if($evento->tipo != "PIBEX") +
+ + @if($trabalho->anexoGrupoPesquisa != null) + + @else + - + @endif +
+ @endif + + @if($evento->tipo == 'PIBIC' || $evento->tipo == 'PIBIC-EM' || $evento->tipo == "PIBEX") + {{-- Decisão do CONSU --}} +
+ + +
+ @endif + @if($evento->nome_docExtra != null) + {{-- Documento Extra --}} +
+ + @if($trabalho->anexo_docExtra) + + @else + + + + @endif +
+ @endif + @else +
+ + + +
+ @endif
@@ -530,6 +541,7 @@ + @if($evento->tipo != "CONTINUO")
@@ -913,6 +925,7 @@
+
@@ -1279,7 +1292,7 @@
- + @endif
diff --git a/resources/views/projeto/formularioVisualizar/anexos2.blade.php b/resources/views/projeto/formularioVisualizar/anexos2.blade.php index 24fed1fb00310d35c2a2152440345d0c83bcb26c..44f8cc425fdb7a504898f561c719721832e9db01 100644 --- a/resources/views/projeto/formularioVisualizar/anexos2.blade.php +++ b/resources/views/projeto/formularioVisualizar/anexos2.blade.php @@ -10,77 +10,88 @@ {{-- Anexo do Projeto --}}
- {{-- Arquivo --}} -
- - + @if($edital->tipo != "CONTINUO") + {{-- Arquivo --}} +
+ + -
+
- @if($edital->tipo != "PIBEX") -
- - + @if($edital->tipo != "PIBEX") +
+ + -
- @endif +
+ @endif - @if($edital->tipo != "PIBEX") -
- @if($projeto->anexoAutorizacaoComiteEtica != null) - - - @else - - @if($projeto->justificativaAutorizacaoEtica != null) - + @if($edital->tipo != "PIBEX") +
+ @if($projeto->anexoAutorizacaoComiteEtica != null) + + @else - - + + @if($projeto->justificativaAutorizacaoEtica != null) + + @else + - + @endif @endif +
@endif -
- @endif - @if($edital->tipo != "PIBEX") -
- - - -
- @endif + @if($edital->tipo != "PIBEX") +
+ + - @if($edital->tipo != "PIBEX") -
- - @if($projeto->anexoGrupoPesquisa != null) - - @else - - +
@endif -
- @endif - @if($edital->tipo == 'PIBIC' || $edital->tipo == 'PIBIC-EM' || $edital->tipo == "PIBEX") - {{-- Decisão do CONSU --}} + @if($edital->tipo != "PIBEX")
- - + + @if($projeto->anexoGrupoPesquisa != null) + + @else + - + @endif
- @endif + @endif - @if($edital->nome_docExtra != null) - {{-- Documento Extra --}} + @if($edital->tipo == 'PIBIC' || $edital->tipo == 'PIBIC-EM' || $edital->tipo == "PIBEX") + {{-- Decisão do CONSU --}} +
+ + +
+ @endif + + @if($edital->nome_docExtra != null) + {{-- Documento Extra --}} +
+ + @if($projeto->anexo_docExtra != null) + + @else + + + + @endif +
+ @endif + @else
- - @if($projeto->anexo_docExtra != null) - - @else - - - - @endif -
- @endif + + +
+ @endif
diff --git a/resources/views/projeto/visualizar.blade.php b/resources/views/projeto/visualizar.blade.php index d8b7ec15ffd737666019cbef447e3c0e94689ac0..2f41b9485e04c2f84fcd6f336fe2ed8bff656c26 100755 --- a/resources/views/projeto/visualizar.blade.php +++ b/resources/views/projeto/visualizar.blade.php @@ -42,10 +42,11 @@ @endcomponent @endif + @if($edital->tipo != "CONTINUO") @component('projeto.formularioVisualizar.relatorio',['edital' => $edital,'projeto' => $projeto,'flagSubstituicao' =>$flagSubstituicao, 'AvalRelatParcial' => $AvalRelatParcial, 'AvalRelatFinal' => $AvalRelatFinal, 'cont' => 0]) @endcomponent - + @endif @component('projeto.formularioVisualizar.resultado2', ['projeto' => $projeto]) @endcomponent diff --git a/routes/web.php b/routes/web.php index 6869244b9d48f9015edb937a6b0a2243350a7f28..4ddeb71b3b648f56320f6b833b8b0092af19732e 100755 --- a/routes/web.php +++ b/routes/web.php @@ -219,6 +219,7 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function () { Route::get('/baixar/evento-temp/{nomeAnexo}', 'TrabalhoController@baixarEventoTemp')->name('baixar.evento.temp'); Route::get('/baixar/documentosParticipante', 'ParticipanteController@baixarDocumento')->name('baixar.documentosParticipante'); Route::get('/baixar/anexoDocExtra/{id}', 'TrabalhoController@baixarAnexoDocExtra')->name('baixar.anexo.docExtra'); + Route::get('/baixar/anexoSIPAC/{id}', 'TrabalhoController@baixarAnexoSIPAC')->name('baixar.anexo.SIPAC'); }); Route::get('/baixar/edital/{id}', 'EventoController@baixarEdital')->name('baixar.edital');