fix teacher and parent routes
This commit is contained in:
@@ -52,12 +52,12 @@ class ParentAttendanceReportCalendarService
|
||||
$rows = DB::table('calendar_events')
|
||||
->select('date')
|
||||
->where('no_school', 1)
|
||||
->groupStart()
|
||||
->where('school_year', $schoolYear)
|
||||
->orWhere('school_year IS NULL', null, false)
|
||||
->groupEnd()
|
||||
->where('date >=', $rangeStartStr)
|
||||
->where('date <=', $rangeEndStr)
|
||||
->where(function ($query) use ($schoolYear) {
|
||||
$query->where('school_year', $schoolYear)
|
||||
->orWhereNull('school_year');
|
||||
})
|
||||
->where('date', '>=', $rangeStartStr)
|
||||
->where('date', '<=', $rangeEndStr)
|
||||
->get()
|
||||
->toArray();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user