@extends('layouts.app') @section('content')
@if (session('sucesso')) @endif @if(session('erro')) @endif

Substituir Participante

{{$edital->nome}}: {{$projeto->titulo}}

Formação Atual

Nome/Período
@foreach($participantes as $i => $participante)

{{$participante->user->name}}

{{date('d-m-Y', strtotime($participante->data_entrada))}} - Atualmente
where('participanteSubstituido_id',$participante->id)->where('status', 'Em Aguardo')) > 0) || (count($desligamentosProjeto->where('participante_id', $participante->id)->where('status', 1)) > 0)) style="pointer-events: none; cursor: default; color:gray;" @endif > @if((count($substituicoesProjeto->where('participanteSubstituido_id',$participante->id)->where('status', 'Em Aguardo')) > 0) || (count($desligamentosProjeto->where('participante_id', $participante->id)->where('status', 1)) > 0)) @else @endif
@endforeach

Substituições

Participante Substituído
Participante Substituto
Tipo
Status
Justificativa
@foreach($substituicoesProjeto as $subs)

{{$subs->participanteSubstituido()->withTrashed()->first()->user->name}}

{{date('d-m-Y', strtotime($subs->participanteSubstituido()->withTrashed()->first()->data_entrada))}} - @if($subs->participanteSubstituido()->withTrashed()->first()->data_saida == null) Atualmente @else {{date('d-m-Y', strtotime($subs->participanteSubstituido()->withTrashed()->first()->data_saida))}} @endif

{{$subs->participanteSubstituto()->withTrashed()->first()->user->name}}

{{date('d-m-Y', strtotime($subs->participanteSubstituto()->withTrashed()->first()->data_entrada))}} - @if($subs->participanteSubstituto()->withTrashed()->first()->data_saida == null) Atualmente @else {{date('d-m-Y', strtotime($subs->participanteSubstituto()->withTrashed()->first()->data_saida))}} @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
@if($subs->status == 'Em Aguardo')
Pendente
@else

Visualizar

@endif
@endforeach

Desligamentos

Participante
Status
Justificativa
@foreach($projeto->desligamentos as $desligamento)

{{$desligamento->participante()->withTrashed()->first()->user->name}}

{{date('d-m-Y', strtotime($desligamento->created_at))}}
{{$desligamento->getStatus()}}
{{$desligamento->justificativa}}
@endforeach
@endsection @section('javascript') @endsection