diff --git a/resources/views/administrador/analiseSubstituicoes.blade.php b/resources/views/administrador/analiseSubstituicoes.blade.php index 5d79a532b1f7e831ab5fb9d1a89fc09a22e1089a..6fb64638cf007422126c5d6c228f11246518c513 100644 --- a/resources/views/administrador/analiseSubstituicoes.blade.php +++ b/resources/views/administrador/analiseSubstituicoes.blade.php @@ -22,7 +22,7 @@
{{$subs->participanteSubstituido->user->name}} | -{{$subs->participanteSubstituto->user->name}} | -{{$subs->planoSubstituto->titulo}} | +{{$subs->participanteSubstituido()->withTrashed()->first()->user->name}} | +{{$subs->participanteSubstituto()->withTrashed()->first()->user->name}} | +{{$subs->planoSubstituto()->withTrashed()->first()->titulo}} |
-
+
@@ -149,7 +149,7 @@
-
+
@@ -175,50 +175,106 @@
- @if($substituicoesPendentes->count() > 0)
- Nenhuma substituição Pendente@endif -Histórico de participantes+Substituições
-
+
- Nome/Periodo -+
+
+
+ + Participante Substituido ++
+
+ + Participante Substituto ++
+
+ + Tipo ++
+
+ + Status ++
- @foreach($participantesExcluidos as $participante)
+ @foreach($substituicoesProjeto as $subs)
-
-
diff --git a/resources/views/administrador/substituirParticipante.blade.php b/resources/views/administrador/substituirParticipante.blade.php
index a36b0fcccbb9bb0fcc25bb135971f284bcadab41..d4a3c1a90818aba3a3a69fecd5ff9c85747ff2cd 100644
--- a/resources/views/administrador/substituirParticipante.blade.php
+++ b/resources/views/administrador/substituirParticipante.blade.php
@@ -58,7 +58,7 @@
-
- {{$participante->user->name}}-{{date('d-m-Y', strtotime($participante->created_at))}} - {{date('d-m-Y', strtotime($participante->deleted_at))}}-
-
-
-
-
+
+
+ {{$subs->participanteSubstituido()->withTrashed()->first()->user->name}}+{{date('d-m-Y', strtotime($subs->participanteSubstituido()->withTrashed()->first()->created_at))}} - @if($subs->participanteSubstituido()->withTrashed()->first()->deleted_at == null) Atualmente @else {{date('d-m-Y', strtotime($subs->participanteSubstituido()->withTrashed()->first()->deleted_at))}} @endif+
+
+ {{$subs->participanteSubstituto()->withTrashed()->first()->user->name}}+{{date('d-m-Y', strtotime($subs->participanteSubstituto()->withTrashed()->first()->created_at))}} - @if($subs->participanteSubstituto()->withTrashed()->first()->deleted_at == null) Atualmente @else {{date('d-m-Y', strtotime($subs->participanteSubstituto()->withTrashed()->first()->deleted_at))}} @endif+
+ @if($subs->tipo == 'ManterPlano')
+
+ Manter Plano+ @elseif($subs->tipo == 'TrocarPlano') +Alterar Plano+ @elseif($subs->tipo == 'Completa') +Completa+ @endif +
+ @if($subs->status == 'Finalizada')
+
- Concluída+ @elseif($subs->status == 'Negada') +Negada+ @elseif($subs->status == 'Em Aguardo') +Pendente+ @endif
-
-
+
+
-
+
+
-
-
+
-
+ Informações Participante+
+
+
+ Informações Participante- + +
+ @include('administrador.vizualizarParticipante', ['visualizarSubstituido' => 1])
+
- @include('administrador.substituirParticipanteForm', ['visualizarOnly' => 1])
+
+
@endforeach
+
+
-
+
+
+
+
+ Informações Participante+ + +
+ @include('administrador.vizualizarParticipante')
+
+
@@ -88,161 +88,107 @@
@include('administrador.substituirParticipanteForm')
Substituições Pendentes+Substituições
-
-
- - Participante Substituido --
-
- - Participante Substituto --
-
+ - Tipo --
+
+ + Participante Substituido ++
+
+ + Participante Substituto ++
+
+ + Tipo ++
+
+ Status ++
- @foreach($substituicoesPendentes as $substituicao)
-
- @endif
-
- @if($substituicoesNegadas->count() > 0)
-
-
-
-
+ @foreach($substituicoesProjeto as $subs)
+ {{$substituicao->participanteSubstituido->user->name}}
-
{{$substituicao->participanteSubstituto->user->name}}+{{$subs->participanteSubstituido()->withTrashed()->first()->user->name}}+{{date('d-m-Y', strtotime($subs->participanteSubstituido()->withTrashed()->first()->created_at))}} - @if($subs->participanteSubstituido()->withTrashed()->first()->deleted_at == null) Atualmente @else {{date('d-m-Y', strtotime($subs->participanteSubstituido()->withTrashed()->first()->deleted_at))}} @endif
- @if($substituicao->tipo == 'ManterPlano')
-
- Manter Plano- @elseif($substituicao->tipo == 'TrocarPlano') -Alterar Plano- @elseif($substituicao->tipo == 'Completa') -Completa- @endif -Substituições Negadas-
-
- @endif
+
-
-
-
-
-
- - Participante Substituido --
-
- - Participante Substituto --
-
- - Tipo --
-
- - Justificativa --
-
- - Data --
- @foreach($substituicoesNegadas as $substituicao)
-
-
-
- @endforeach
-
- @if($substituicao->participanteSubstituido()->first() != null)
-
- {{$substituicao->participanteSubstituido->user->name}}- @else -{{$substituicao->participanteSubstituido()->withTrashed()->first()->user->name}}- @endif -
-
{{$substituicao->participanteSubstituto()->withTrashed()->first()->user->name}}+{{$subs->participanteSubstituto()->withTrashed()->first()->user->name}}+{{date('d-m-Y', strtotime($subs->participanteSubstituto()->withTrashed()->first()->created_at))}} - @if($subs->participanteSubstituto()->withTrashed()->first()->deleted_at == null) Atualmente @else {{date('d-m-Y', strtotime($subs->participanteSubstituto()->withTrashed()->first()->deleted_at))}} @endif
- @if($substituicao->tipo == 'ManterPlano')
+ @if($subs->tipo == 'ManterPlano')
Manter Plano- @elseif($substituicao->tipo == 'TrocarPlano') + @elseif($subs->tipo == 'TrocarPlano')Alterar Plano- @elseif($substituicao->tipo == 'Completa') + @elseif($subs->tipo == 'Completa')Completa@endif
-
- {{$substituicao->justificativa}} -
-
- {{$substituicao->concluida_em}} + @if($subs->status == 'Finalizada') +Concluída+ @elseif($subs->status == 'Negada') +Negada+ @elseif($subs->status == 'Em Aguardo') +Pendente+ @endif
+
+
-
@@ -345,6 +291,8 @@
inputsForm.push(document.getElementById('anexoTermoCompromisso'+idParticipante));
inputsForm.push(document.getElementById('anexoComprovanteMatricula'+idParticipante));
+ inputsForm.push(document.getElementById('anexoCurriculoLattes'+idParticipante));
+ inputsForm.push(document.getElementById('anexoAutorizacaoPais'+idParticipante));
if(checkboxInput.checked){
inputsForm.forEach(function(item,indice,array){
diff --git a/resources/views/administrador/vizualizarParticipante.blade.php b/resources/views/administrador/vizualizarParticipante.blade.php
index ebdbd01d13801c5e4a1ec15e186b9d995d69aeb8..f30859bdeb49d5bc9de44ea287e0b968304db49d 100644
--- a/resources/views/administrador/vizualizarParticipante.blade.php
+++ b/resources/views/administrador/vizualizarParticipante.blade.php
@@ -8,40 +8,48 @@
Histórico de participantes-
-
-
- - Nome/Periodo --
- @foreach($participantesExcluidos as $participante)
-
-
-
-
-
+
+
+
+
@endforeach
+
-
-
-
- Informações Participante+
+
+
+ Informações Participante- -
- @include('administrador.substituirParticipanteForm', ['visualizarOnly' => 1])
+
+ @include('administrador.vizualizarParticipante')
+
@component('componentes.input', ['label' => 'Nome completo'])
-
+
@endcomponent
@component('componentes.input', ['label' => 'E-mail'])
-
+
@endcomponent
@component('componentes.input', ['label' => 'Data de nascimento'])
-
+
@endcomponent
@component('componentes.input', ['label' => 'CPF'])
-
+
@endcomponent
@component('componentes.input', ['label' => 'RG'])
-
+
@endcomponent
@component('componentes.input', ['label' => 'Celular'])
-
+
@endcomponent
+
+
+ @component('componentes.input', ['label' => 'Link do Currículo Lattes'])
+
+ @endcomponent
+
+ Endereço@@ -50,13 +58,13 @@
@component('componentes.input', ['label' => 'CEP'])
-
+
@endcomponent
@component('componentes.select', ['label' => 'Estado'])
@endcomponent
@@ -64,24 +72,24 @@
@component('componentes.input', ['label' => 'Cidade'])
-
+
@endcomponent
@component('componentes.input', ['label' => 'Bairro'])
-
+
@endcomponent
@component('componentes.input', ['label' => 'Rua'])
-
+
@endcomponent
@component('componentes.input', ['label' => 'Número'])
-
+
@endcomponent
-
+
@component('componentes.input', ['label' => 'Instituição de Ensino'])
-
@component('componentes.input', ['label' => 'Curso'])
-
@@ -118,14 +126,14 @@
@component('componentes.select', ['label' => 'Turno'])
@component('componentes.select', ['label' => 'Total de períodos/anos do curso'])
@@ -134,7 +142,7 @@
@component('componentes.select', ['label' => 'Período/Ano atual'])
@@ -142,7 +150,7 @@
@component('componentes.select', ['label' => 'Ordem de prioridade'])
@@ -150,22 +158,92 @@
@component('componentes.input', ['label' => 'Coeficiente de rendimento'])
-
+
@endcomponent
+
+
+
+ Documentos Complementares+
+
+
+ @component('componentes.input', ['label' => 'Termo de Compromisso (.pdf)'])
+
+ @endcomponent
+
+ @if($subs->participanteSubstituto()->withTrashed()->first()->anexoTermoCompromisso)
+
+ @else
+
+
+ @endif
+
+ +
+ @component('componentes.input', ['label' => 'Comprovante de Matrícula (.pdf)'])
+
+ @endcomponent
+
+ @if($subs->participanteSubstituto()->withTrashed()->first()->anexoComprovanteMatricula)
+
+ @else
+
+
+ @endif
+ +
+
+
+ @component('componentes.input', ['label' => 'Curriculo Lattes (.pdf)'])
+
+ @endcomponent
+
+ @if($subs->participanteSubstituto()->withTrashed()->first()->anexoLattes)
+
+ @else
+
+
+ @endif
+
+ +
+ @component('componentes.input', ['label' => 'Autorização dos Pais (.pdf)'])
+
+ @endcomponent
+
+
+ @if($subs->participanteSubstituto()->withTrashed()->first()->anexoAutorizacaoPais)
+
+ @else
+
+
+ @endif
+ + Plano de trabalho
- @if($subs->participanteSubstituido->planoTrabalho)
+ @if($subs->participanteSubstituido()->withTrashed()->first()->planoTrabalho)
-
@else
{{$subs->participanteSubstituido->planoTrabalho->titulo}}+{{$subs->participanteSubstituido()->withTrashed()->first()->planoTrabalho->titulo}}
@@ -194,37 +272,44 @@
@component('componentes.input', ['label' => 'Nome completo'])
-
+
@endcomponent
@component('componentes.input', ['label' => 'E-mail'])
-
+
@endcomponent
@component('componentes.input', ['label' => 'Data de nascimento'])
-
+
@endcomponent
@component('componentes.input', ['label' => 'CPF'])
-
+
@endcomponent
@component('componentes.input', ['label' => 'RG'])
-
+
@endcomponent
@component('componentes.input', ['label' => 'Celular'])
-
+
+ @endcomponent
+
+
+
@@ -236,13 +321,13 @@
+ @component('componentes.input', ['label' => 'Link do Currículo Lattes'])
+
@endcomponent
@component('componentes.input', ['label' => 'CEP'])
-
+
@endcomponent
@component('componentes.select', ['label' => 'Estado'])
@@ -250,24 +335,24 @@
@component('componentes.input', ['label' => 'Cidade'])
-
+
@endcomponent
@component('componentes.input', ['label' => 'Bairro'])
-
+
@endcomponent
@component('componentes.input', ['label' => 'Rua'])
-
+
@endcomponent
@component('componentes.input', ['label' => 'Número'])
-
+
@endcomponent
-
+
@component('componentes.input', ['label' => 'Instituição de Ensino'])
-
@component('componentes.input', ['label' => 'Curso'])
-
@@ -304,14 +389,14 @@
@component('componentes.select', ['label' => 'Turno'])
@component('componentes.select', ['label' => 'Total de períodos/anos do curso'])
@@ -320,7 +405,7 @@
@component('componentes.select', ['label' => 'Período/Ano atual'])
@@ -328,7 +413,7 @@
@component('componentes.select', ['label' => 'Ordem de prioridade'])
@@ -336,7 +421,7 @@
@component('componentes.input', ['label' => 'Coeficiente de rendimento'])
-
+
@endcomponent
@@ -367,9 +452,9 @@
@endcomponent
- @if($subs->participanteSubstituto->anexoComprovanteMatricula)
+ @if($subs->participanteSubstituto()->withTrashed()->first()->anexoComprovanteMatricula)
@else
@@ -383,9 +468,25 @@
@endcomponent
- @if($subs->participanteSubstituto->anexoLattes)
+ @if($subs->participanteSubstituto()->withTrashed()->first()->anexoLattes)
+
+ @else
+
+
+ @endif
+
+ +
+ @component('componentes.input', ['label' => 'Autorização dos Pais (.pdf)'])
+
+ @endcomponent
+
+
+ @if($subs->participanteSubstituto()->withTrashed()->first()->anexoAutorizacaoPais)
@else
@@ -401,12 +502,12 @@
|