Quick answer: Hold part of the day for walk-ins, book the rest, and fill gaps with a waitlist.
Split the day
Block some slots for walk-ins and open the rest online.
Use a waitlist
Offer open slots to waitlisted clients first.
More
See Zivly for barbershops and the barbershop software comparison.