fix certificate qr code verification

This commit is contained in:
root
2026-05-28 02:15:08 -04:00
parent 0654668530
commit b4a06903e2
3 changed files with 5 additions and 17 deletions
@@ -346,10 +346,10 @@ class CertificateController extends BaseController
'student_id' => $sid, 'student_id' => $sid,
'student_name' => $student['firstname'] . ' ' . $student['lastname'], 'student_name' => $student['firstname'] . ' ' . $student['lastname'],
'grade' => $this->formatGrade($student['grade'] ?? ''), 'grade' => $this->formatGrade($student['grade'] ?? ''),
'cert_date' => $certDateDb, //'cert_date' => $certDateDb,
'school_year' => $schoolYear, 'school_year' => $schoolYear,
'class_section_id' => $classSectionId ?: null, 'class_section_id' => $classSectionId ?: null,
'issued_by' => $issuedBy, //'issued_by' => $issuedBy,
'issued_at' => $issuedAt, 'issued_at' => $issuedAt,
]); ]);
$student['cert_number'] = $certNumber; $student['cert_number'] = $certNumber;
+2 -2
View File
@@ -64,9 +64,9 @@
<th>Certificate #</th> <th>Certificate #</th>
<th>Student</th> <th>Student</th>
<th>Grade</th> <th>Grade</th>
<th>Cert Date</th> <!--th>Cert Date</th-->
<th>School Year</th> <th>School Year</th>
<th>Issued By</th> <!--th>Issued By</th-->
<th>Issued At</th> <th>Issued At</th>
</tr> </tr>
</thead> </thead>
-12
View File
@@ -52,18 +52,6 @@
<div class="field-label">School Year</div> <div class="field-label">School Year</div>
<div class="field-value"><?= esc($record['school_year'] ?? '—') ?></div> <div class="field-value"><?= esc($record['school_year'] ?? '—') ?></div>
</div> </div>
<div class="col-6">
<div class="field-label">Certificate Date</div>
<div class="field-value">
<?= $record['cert_date'] ? esc(date('F j, Y', strtotime($record['cert_date']))) : '—' ?>
</div>
</div>
<div class="col-6">
<div class="field-label">Issued By</div>
<div class="field-value">
<?= esc(trim(($record['admin_firstname'] ?? '') . ' ' . ($record['admin_lastname'] ?? '')) ?: '—') ?>
</div>
</div>
<div class="col-12"> <div class="col-12">
<div class="field-label">Issued On</div> <div class="field-label">Issued On</div>
<div class="field-value"> <div class="field-value">