@php
$daysUntil = \Carbon\Carbon::now()->startOfDay()->diffInDays(\Carbon\Carbon::parse($recurringAppointment->next_appointment_date)->startOfDay(), false);
$isPast = \Carbon\Carbon::parse($recurringAppointment->next_appointment_date)->isPast();
$isClose = $daysUntil <= $recurringAppointment->reminder_days && !$isPast;
@endphp
{{ \Carbon\Carbon::parse($recurringAppointment->next_appointment_date)->format('d/m/Y') }}
{{ __('recurring-appointments.timeRemaining') }}
{{ \Carbon\Carbon::parse($recurringAppointment->next_appointment_date)->diffForHumans() }}
@if(!$isPast)
({{ $daysUntil }} {{ __('recurring-appointments.days') }})
@endif
{{ __('recurring-appointments.notificationStatus') }}
{{ $recurringAppointment->notification_sent ? __('recurring-appointments.notificationSent') : __('recurring-appointments.notificationPending') }}
{{ __('recurring-appointments.originalDate') }}
{{ \Carbon\Carbon::parse($recurringAppointment->originalAppointment->date)->format('d/m/Y H:i') }}