diff --git a/public/frontend/css/style.css b/public/frontend/css/style.css
index 75f4a6c..33b80c9 100644
--- a/public/frontend/css/style.css
+++ b/public/frontend/css/style.css
@@ -1649,6 +1649,30 @@ table.lightgrey-weekends tbody td:nth-child(n+6) {
.available-dates h5{
margin-bottom: 0;
}
+.zabuto-calendar.table>thead>tr>th,
+.zabuto-calendar.table>thead:first-child>tr:first-child>td {
+ color: #000000;
+}
+.zabuto-calendar.table>thead:first-child>tr:first-child>td{
+ pointer-events: all;
+}
+table.lightgrey-weekends tbody td:nth-child(n+6) {
+ background-color: #f3f3f3;
+ color: #d30000;
+ }
+.event-colourful {
+ color: #bdbdbd;
+ cursor: not-allowed;
+}
+.event-colourful .zabuto-calendar__day{
+ pointer-events: none;
+}
+.event-clickable{
+ pointer-events: all !important;
+ color: #000000;
+ cursor: pointer;
+ box-shadow: 0 1px 5px rgb(0 0 0 / 20%), 0 2px 2px rgb(0 0 0 / 14%), 0 3px 1px -2px rgb(0 0 0 / 12%) !important;
+}
/* appointment page css ends */
/* Footer Css */
diff --git a/resources/views/appointment.blade.php b/resources/views/appointment.blade.php
index cb9b89f..f70c88b 100644
--- a/resources/views/appointment.blade.php
+++ b/resources/views/appointment.blade.php
@@ -22,7 +22,7 @@
+ Migration | Visa Services
@@ -134,6 +134,7 @@
});
function displayCalendar($calender,id){
var id = id;
+ var now = new Date();
$calender.zabuto_calendar({
data: [
@foreach($educationAppointments as $appointment)
@@ -148,23 +149,29 @@
},
@endforeach
],
- classname: 'table clickable table-bordered lightgrey-weekends',
+ classname: 'table event-colourful table-bordered lightgrey-weekends',
week_starts: 'monday',
show_days: true,
cell_border: true,
- today: true,
show_days: true,
weekstartson: 0,
- today_markup: '[day]',
navigation_markup: {
prev: '',
next: ''
- }
+ },
+ events:[
+ @foreach($educationAppointments as $appointment)
+ {
+ date: "{{ $appointment->date }}",
+ "classname": "clickable event-clickable"
+ },
+ @endforeach
+ ]
});
$calender.on('zabuto:calendar:day', function (e) {
-
+ var now = new Date();
var date = e.date;
//get available time for selected date
@@ -185,6 +192,14 @@
}
});
+
+ if (e.today) {
+ $(e.element).html(''+ e.date.getDate() +'');
+ } 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) {
diff --git a/resources/views/layout/app.blade.php b/resources/views/layout/app.blade.php
index 905722b..1643068 100644
--- a/resources/views/layout/app.blade.php
+++ b/resources/views/layout/app.blade.php
@@ -4,6 +4,7 @@
+
@yield('title')
@@ -186,7 +187,7 @@
-
@foreach($services as $service)
-
@endforeach
@@ -201,7 +202,7 @@
-
@foreach(App\Models\VisaService::where('status',1)->get() as $visa_service)
-
@endforeach
diff --git a/resources/views/services.blade.php b/resources/views/services.blade.php
index c80b828..fe489d0 100644
--- a/resources/views/services.blade.php
+++ b/resources/views/services.blade.php
@@ -83,14 +83,14 @@
-
+
-
Business Visa
-
Unleash your entrepreneurial spirit in Australia.
-
Learn More
+
Job Ready Program
+
Get into the job market with a correct set of skills.
+
Learn More