@extends('layouts.admin') @push('css') @endpush @push('js') @endpush @section('content')

Editar servidor

@csrf @method('PUT') @alerts @endalerts
@if ($servidorEAssociado || $servidorDesfiliadoTemporariamente)
@elseif ($servidorDesfiliadoDefinitivamente)
@if ($matricula->motivo_desligamento->isFalecido())
@elseif ($matricula->motivo_desligamento->isAny($motivosExoneracao))
@endif @endif
Contatos

@include('components.telefones', ['telefones' => $servidor->contatos()->telefones()->get(), 'malaDireta' => true]) @include('components.emails', ['emails' => $servidor->contatos()->emails()->get(), 'malaDireta' => true])
Endereços

@button([ 'route' => 'admin.servidores.enderecos.create', 'routeParams' => ['servidor' => $servidor], 'icon' => 'plus', 'label' => 'Incluir', 'class' => 'btn-primary' ]) @endbutton
@include('components.listagem-endereco', ['enderecos' => $servidor->enderecos])
Dados Funcionais

@button([ 'route' => 'admin.servidores.registros.create', 'routeParams' => ['servidor' => $servidor], 'icon' => 'plus', 'label' => 'Incluir', 'class' => 'btn-primary' ]) @endbutton
@include('components.listagem-registros', ['registros' => $servidor->registros])

@button([ 'icon' => 'save', 'label' => 'Salvar', 'class' => 'btn-primary' ]) @endbutton @if ($servidor->trashed()) @button([ 'icon' => 'refresh-ccw', 'label' => 'Restaurar', 'class' => 'btn-primary btn-restaurar-servidor' ]) @endbutton @endif @if ($servidorEAssociado) @button([ 'icon' => 'credit-card', 'route' => 'admin.servidores.desfilia-form', 'routeParams' => ['servidor' => $servidor], 'label' => 'Desfiliar', 'class' => 'btn-secondary' ]) @endbutton @elseif ($servidorDesfiliadoTemporariamente) @button([ 'icon' => 'credit-card', 'route' => 'admin.servidores.afilia-form', 'routeParams' => ['servidor' => $servidor], 'label' => 'Reafiliar', 'class' => 'btn-secondary' ]) @endbutton @button([ 'icon' => 'credit-card', 'route' => 'admin.servidores.desfilia-form', 'routeParams' => ['servidor' => $servidor], 'label' => 'Desfiliar definit.', 'class' => 'btn-secondary' ]) @endbutton @elseif ($servidorDesfiliadoDefinitivamente) @button([ 'icon' => 'credit-card', 'route' => 'admin.servidores.religamento-extraordinario-form', 'routeParams' => ['servidor' => $servidor], 'label' => 'Relig. extraordinário', 'class' => 'btn-secondary' ]) @endbutton @button([ 'icon' => 'credit-card', 'route' => 'admin.servidores.afilia-form', 'routeParams' => ['servidor' => $servidor], 'label' => 'Afiliar', 'class' => 'btn-secondary' ]) @endbutton @else @button([ 'icon' => 'credit-card', 'route' => 'admin.servidores.afilia-form', 'routeParams' => ['servidor' => $servidor], 'label' => 'Afiliar', 'class' => 'btn-secondary' ]) @endbutton @endif @button([ 'route' => 'admin.servidores.dependentes.index', 'routeParams' => ['servidor' => $servidor], 'icon' => 'users', 'label' => 'Dependentes', 'class' => 'btn-secondary' ]) @endbutton @button([ 'route' => 'admin.servidores.convenios.index', 'routeParams' => ['servidor' => $servidor], 'icon' => 'list', 'label' => 'Convênios', 'class' => 'btn-secondary' ]) @endbutton @button([ 'route' => 'admin.servidores.documentos.index', 'routeParams' => ['servidor' => $servidor], 'icon' => 'file', 'label' => 'Documentos', 'class' => 'btn-secondary' ]) @endbutton @button([ 'icon' => 'file-text', 'label' => 'Processos', 'class' => 'btn-secondary', 'route' => 'admin.processos-juridicos.index', 'routeParams' => ['pessoa' => $servidor->id, 'tipo' => 'associado'] ]) @endbutton @button([ 'route' => 'admin.guia-atendimento.create', 'routeParams' => ['servidor' => $servidor], 'class' => 'btn-secondary', 'label' => 'Atender', 'icon' => 'clipboard' ]) @endbutton @button([ 'route' => 'admin.anamnese-atendimento.create-edit', 'routeParams' => ['pessoa' => $servidor, 'tipo' => 'associado'], 'class' => 'btn-secondary', 'label' => 'Anamnese', 'icon' => 'clipboard' ]) @endbutton @button([ 'route' => 'admin.servidores.movimentacoes.index', 'routeParams' => ['servidor' => $servidor], 'icon' => 'list', 'label' => 'Movimentações', 'class' => 'btn-secondary' ]) @endbutton @button([ 'route' => 'admin.servidores.falecimento-form', 'routeParams' => ['servidor' => $servidor], 'icon' => 'x', 'label' => 'Falecimento', 'class' => 'btn-secondary' ]) @endbutton @if (count($todosDocumentosImprimir) > 0) @button([ 'icon' => 'printer', 'label' => 'Imprimir documentos', 'class' => 'btn-secondary', 'id' => 'btn-imprimir-documentos', ]) @endbutton @endif @button([ 'route' => 'admin.servidores.index', 'icon' => 'arrow-left', 'label' => 'Voltar', 'class' => 'btn-secondary' ]) @endbutton
@endsection