I am wanting to pull data from a database (i'm using Laravel as the framework) that has a selection of dates to then show the user on the frontend calendar these dates are unavailable and block them out so they can't select them.
My db structure is:

I have the standard code from jQueryUI website:
<link rel="stylesheet" href="/css/redmond/jquery-ui-1.10.4.custom.css">
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<script>
$(function() {
$( "#from" ).datepicker({
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 2,
onClose: function( selectedDate ) {
$( "#to" ).datepicker( "option", "minDate", selectedDate );
}
});
$( "#to" ).datepicker({
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 2,
onClose: function( selectedDate ) {
$( "#from" ).datepicker( "option", "maxDate", selectedDate );
}
});
});
</script>
So how would I get my data into the calendar to display only available dates. I'm trying to make a simple reservation calendar.
Thanks in advanced.