@php $branding = $appointment->clinic?->resolvedBranding(); @endphp @include('mail.partials.branding-header', ['branding' => $branding])

Olá, {{ $appointment->patient->name ?? 'paciente' }},

@if($kind === 'scheduled')

Seu agendamento na clínica {{ $appointment->clinic->name ?? config('app.name') }} foi registrado.

@elseif($kind === 'confirmed')

Seu agendamento na clínica {{ $appointment->clinic->name ?? config('app.name') }} foi confirmado.

@else

Seu agendamento na clínica {{ $appointment->clinic->name ?? config('app.name') }} foi cancelado.

@if($appointment->cancellation_reason)

Motivo informado: {{ $appointment->cancellation_reason }}

@endif @endif

Data: {{ $appointment->appointment_date?->format('d/m/Y') ?? '—' }}
Horário: {{ $appointment->start_time ? \Illuminate\Support\Str::substr((string) $appointment->start_time, 0, 5) : '—' }}
@if($appointment->doctor) Profissional: {{ $appointment->doctor->name }}
@endif

@include('mail.partials.branding-footer', ['branding' => $branding])