addres qoshish da api o'zgartirildi

This commit is contained in:
2026-04-23 16:57:00 +05:00
parent 18b652902f
commit 75be0410ad
8 changed files with 11 additions and 4 deletions

View File

@@ -106,10 +106,17 @@ class ConclusionController extends Controller
$pdf->AddPage($size2['orientation'], [$size2['width'], $size2['height']]);
$pdf->useTemplate($tpl);
// All pages: bottom-right corner, white background
$sz = 22;
$qrX = $size2['width'] - $sz - 8;
$qrY = $size2['height'] - $sz - 6;
if ($i === 1) {
// First page: right side, in the blank area below header separator lines
$sz = 35;
$qrX = $size2['width'] - $sz - 18;
$qrY = 15;
} else {
// Other pages: bottom-right
$sz = 22;
$qrX = $size2['width'] - $sz - 8;
$qrY = $size2['height'] - $sz - 6;
}
$pdf->SetFillColor(255, 255, 255);
$pdf->Rect($qrX - 1, $qrY - 1, $sz + 2, $sz + 2, 'F');
$pdf->Image($qrPath, $qrX, $qrY, $sz, $sz);