@extends('layouts.admin') @section('content')

Editar atendimento

@csrf @method('PUT') @alerts @endalerts

@button([ 'icon' => 'save', 'label' => 'Salvar', 'class' => 'btn-primary' ]) @endbutton @if ($agendamento->agendavel->tipo() == 'associado') @button([ 'route' => 'admin.servidores.edit', 'routeParams' => ['servidor' => $agendamento->agendavel], 'icon' => 'arrow-left', 'label' => 'Associado', 'class' => 'btn-secondary' ]) @endbutton @else @button([ 'route' => 'admin.funcionarios.edit', 'routeParams' => ['funcionario' => $agendamento->agendavel], 'icon' => 'arrow-left', 'label' => 'Funcionário', 'class' => 'btn-secondary' ]) @endbutton @endif @button([ 'route' => 'admin.processos-juridicos.edit', 'routeParams' => ['pessoa' => $agendamento->agendavel, 'tipo' => $agendamento->agendavel->tipo(), 'id' => $processo], 'icon' => 'arrow-left', 'label' => 'Processo Jurídico', 'class' => 'btn-secondary' ]) @endbutton
@endsection