Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### 26. Disabling-unavailable-dates - This plugin lock the date that we cannot use. - Define out the plugins that we want to use - We can define the option under the lockPlugin key - The minimum would be the current date and time - Filter the date whether it is pickup or not - A $avaialbleDates variable was created in checkoutController whether the $availability(dates or slots) has the particular slots. - The hasSlots method was implemented in the app\Bookings\DateCollection class - Die and dump the $avaialableDates - Grab the date and grab the date object for the value of the lets grab the slots count, and casts this to an array - Die and dump the $avaialableDates - Grab the date and grab the date object for the value of the lets grab the slots count, and casts this to an array - Die and dump the $avaialableDates - The result will be the weekend will be escaped from the array - Remove the dd - Make $availableDates in the blade views to work as json encoded with in JavaScript, in the CheckoutController __invoke method, use the inside the calender - Output the about data by json encoding the PHP array - Check the available dates - Check the output in the console - Output the not available dates - Change the appointment according to the day you are checking.
- Loading branch information