!warning
isAvailableAt()is deprecated in favor ofisBookableAt()andgetBookableSlots(). Use the bookable APIs for all new code.
// Check if the doctor has at least one bookable slot on this date
$doctor->isBookableAt('2025-01-15');
// Find conflicts
$conflicts = Zap::findConflicts($schedule);
$hasConflicts = Zap::hasConflicts($schedule);
// Query schedules
$doctor->schedulesForDate('2025-01-15')->get();
$doctor->schedulesForDateRange('2025-01-01', '2025-01-31')->get();
// Filter by type
$doctor->appointmentSchedules()->get();
$doctor->availabilitySchedules()->get();
$doctor->blockedSchedules()->get();
// Check schedule type
$schedule->isAvailability();
$schedule->isAppointment();
$schedule->isBlocked();