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

Substituir Participante

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

Formação Atual

Nome/Periodo
@foreach($participantes as $participante)

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

{{date('d-m-Y', strtotime($participante->created_at))}} - Atualmente
@endforeach
@if($substituicoesPendentes->count() > 0)

Substituições Pendentes

Participante Substituido
Participante Substituto
Tipo
@foreach($substituicoesPendentes as $substituicao)

{{$substituicao->participanteSubstituido->user->name}}

{{$substituicao->participanteSubstituto->user->name}}

@if($substituicao->tipo == 'ManterPlano')
Manter Plano
@elseif($substituicao->tipo == 'TrocarPlano')
Alterar Plano
@elseif($substituicao->tipo == 'Completa')
Completa
@endif
@endforeach
@endif @if($substituicoesNegadas->count() > 0)

Substituições Negadas

Participante Substituido
Participante Substituto
Tipo
Justificativa
Data
@foreach($substituicoesNegadas as $substituicao)
@if($substituicao->participanteSubstituido()->first() != null)

{{$substituicao->participanteSubstituido->user->name}}

@else

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

@endif

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

@if($substituicao->tipo == 'ManterPlano')
Manter Plano
@elseif($substituicao->tipo == 'TrocarPlano')
Alterar Plano
@elseif($substituicao->tipo == 'Completa')
Completa
@endif

{{$substituicao->justificativa}}

{{$substituicao->concluida_em}}

@endforeach
@endif

Histórico de participantes

Nome/Periodo
@foreach($participantesExcluidos as $participante)

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

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