Skip to content

Commit b118cca

Browse files
authored
Merge pull request #23 from seiyanz16/main
feat: add certificate number
2 parents ada453d + 868cfa7 commit b118cca

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

app/Http/Controllers/Api/ExportController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ public function exportCertificate(Request $request, $id)
248248

249249
$internDate = $user->internDates()->where('company_id', $id)->first();
250250
$scores = $user->scores()->where('company_id', $id)->get();
251+
$noSertif = $request->input('no_sertif');
251252

252253
if ($scores->isEmpty()) {
253254
return response()->json(['message' => 'Scores not found! Call the mentor to add scores first!'], 400);
@@ -262,6 +263,7 @@ public function exportCertificate(Request $request, $id)
262263
: 'N/A';
263264

264265
$formFields = [
266+
'no_sertif' => 'No. ' . $noSertif,
265267
'nama_siswa' => $user->name,
266268
'ttl' => $formattedDateOfBirth,
267269
'nis' => $user->nis,
-248 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)