@extends('layouts.main') @section('title', 'Ver Agendamento - Clinix AI') @section('page-title', 'Detalhes do Agendamento') @section('page-subtitle', 'Informações completas do agendamento') @section('content')
@if(session('success'))
{{ session('success') }}
@endif

Agendamento #{{ $appointment->id }}

@switch($appointment->status) @case('scheduled') Agendado @break @case('confirmed') Confirmado @break @case('attended') Atendido @break @case('cancelled') Cancelado @break @endswitch
@if($appointment->status != 'cancelled' && $appointment->status != 'attended') Editar @if(!$appointment->confirmed)
@csrf @method('PATCH')
@endif @endif

PACIENTE

{{ $appointment->patient ? $appointment->patient->name : 'Paciente não definido' }}

{{ $appointment->patient ? $appointment->patient->email : '-' }}

{{ $appointment->patient ? $appointment->patient->phone : '-' }}

@can('patients.export') @if($appointment->patient && !$appointment->patient->is_anonymized)

Exportar dados (LGPD / JSON)

@endif @endcan @can('rectify', $appointment->patient) @if($appointment->patient && !$appointment->patient->is_anonymized)

Retificar dados do paciente

@endif @endcan @can('anonymize', $appointment->patient) @if($appointment->patient && !$appointment->patient->is_anonymized)
@csrf
@endif @endcan

MÉDICO

{{ $appointment->doctor ? 'Dr. ' . $appointment->doctor->name : 'Médico não definido' }}

{{ $appointment->doctor ? $appointment->doctor->email : '-' }}

DATA E HORÁRIO

{{ \Carbon\Carbon::parse($appointment->appointment_date)->format('d/m/Y') }}

{{ \Carbon\Carbon::parse($appointment->start_time)->format('H:i') }} - {{ \Carbon\Carbon::parse($appointment->end_time)->format('H:i') }} ({{ $appointment->duration }} min)

TIPO DE CONSULTA

@if($appointment->isHealthInsurance()) Convênio {{ $appointment->healthInsuranceOperator?->name ?? 'Operadora não informada' }} @else Particular @endif

CLASSIFICAÇÃO CLÍNICA

@switch($appointment->appointment_type) @case('routine') Consulta de Rotina @break @case('return') Retorno @break @case('first_time') Primeira Consulta @break @case('emergency') Urgência @break @default {{ $appointment->appointment_type }} @break @endswitch

@if($preAnamnesis ?? null)

Pré-anamnese do paciente

Completude: {{ $preAnamnesis->completion_percentage ?? 0 }}% @if($preAnamnesis->analyzed_at) · IA analisada em {{ $preAnamnesis->analyzed_at->format('d/m/Y H:i') }} @endif

Analisar com IA
@endif @if($appointment->reason)

MOTIVO DA CONSULTA

{{ $appointment->reason }}

@endif @if($appointment->notes)

OBSERVAÇÕES INTERNAS

{{ $appointment->notes }}

@endif @if($appointment->status == 'cancelled')

MOTIVO DO CANCELAMENTO

{{ $appointment->cancellation_reason }}

Cancelado em {{ $appointment->cancelled_at->format('d/m/Y H:i') }}

@endif
Voltar @if($appointment->status != 'cancelled' && $appointment->status != 'attended') @endif
@endsection