diff --git a/app/modules_app/invoices/export_excel.php b/app/modules_app/invoices/export_excel.php index 3d5c4c0..0759903 100644 --- a/app/modules_app/invoices/export_excel.php +++ b/app/modules_app/invoices/export_excel.php @@ -358,8 +358,9 @@ foreach ($invoices as $invIdx => $inv) { // --- Add Clickable Website Link --- // We'll move the link slightly down or put it in I1 with the QR - $sheet->setCellValue("I" . $invRow, 'musadaq.intaleqapp.com'); - $sheet->getCell("I" . $invRow)->getHyperlink()->setUrl('https://musadaq.intaleqapp.com/'); + $sheet->setCellValue("I" . $invRow, 'musadaq.intaleqapp.com/verify'); + $verifyUrl = "https://musadaq.intaleqapp.com/index.php?route=verify&id=" . $inv['id']; + $sheet->getCell("I" . $invRow)->getHyperlink()->setUrl($verifyUrl); $sheet->getStyle("I" . $invRow)->applyFromArray([ 'font' => ['color' => ['argb' => 'FFFFFFFF'], 'underline' => true, 'size' => 8], 'alignment' => ['horizontal' => Alignment::HORIZONTAL_LEFT, 'vertical' => Alignment::VERTICAL_TOP],