@php $regularCheckup = $regularCheckup ?? null; $lockRegistrationSchedule = $lockRegistrationSchedule ?? false; $registrationDate = $lockRegistrationSchedule ? (string) $regularCheckup?->checkup_date : old('checkup_date', today()->toDateString()); $registrationTime = $lockRegistrationSchedule ? $regularCheckup?->checkup_time?->format('H:i') ?? '' : old('checkup_time', now()->format('H:i')); @endphp