add grading, attendnace management

This commit is contained in:
root
2026-04-29 17:39:33 -04:00
parent 8beeed883f
commit df5266c5b5
27 changed files with 386 additions and 157 deletions
@@ -147,19 +147,19 @@ class WhatsappContactService
}
$rows = DB::table('student_class as sc')
->select("
sc.class_section_id,
u.id AS primary_id,
u.firstname AS primary_firstname,
u.lastname AS primary_lastname,
u.email AS primary_email,
u.cellphone AS primary_phone,
sp.id AS second_id,
sp.secondparent_firstname AS second_firstname,
sp.secondparent_lastname AS second_lastname,
sp.secondparent_email AS second_email,
sp.secondparent_phone AS second_phone
")
->select([
'sc.class_section_id',
'u.id as primary_id',
'u.firstname as primary_firstname',
'u.lastname as primary_lastname',
'u.email as primary_email',
'u.cellphone as primary_phone',
'sp.id as second_id',
'sp.secondparent_firstname as second_firstname',
'sp.secondparent_lastname as second_lastname',
'sp.secondparent_email as second_email',
'sp.secondparent_phone as second_phone',
])
->join('students as s', 's.id', '=', 'sc.student_id')
->join('users as u', 'u.id', '=', 's.parent_id')
->leftJoin('parents as sp', function ($join) {