diff --git a/resources/views/appointment.blade.php b/resources/views/appointment.blade.php
index 9437473..1531711 100644
--- a/resources/views/appointment.blade.php
+++ b/resources/views/appointment.blade.php
@@ -152,7 +152,7 @@
});
$calender.on('zabuto:calendar:day', function (e) {
-
+ var now = new Date();
var date = e.date;
//get available time for selected date
@@ -173,6 +173,15 @@
}
});
+
+
+ if (e.today) {
+ $(e.element).css('color', 'blue');
+ } else if (e.date.getTime() < now.getTime()) {
+ $(e.element).html(''+ e.date.getDate() +'');
+ } else {
+ $(e.element).html(''+ e.date.getDate() +'');
+ }
})
}
function dispalyAppointments(appointments,formated_date,id) {