changed logic in sticker pdf service
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Gemini PR Review / Gemini PR Review (pull_request) Successful in 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 11s
Laravel Pint / pint (pull_request) Failing after 2m16s
Laravel Larastan / larastan (pull_request) Failing after 2m44s

This commit is contained in:
dhanabalan
2025-12-22 17:38:22 +05:30
parent 2fc1fb73b7
commit 832c482da2

View File

@@ -16,9 +16,16 @@ class StickerPdfService
$structure = StickerStructureDetail::where('sticker_id', $stickerId)
->first();
$stickerId = $structure->sticker_id;
// $stickerId = $structure->sticker_id;
$elements = StickerDetail::where('sticker_structure_detail_id', $stickerId)->get();
// $elements = StickerDetail::where('sticker_structure_detail_id', $stickerId)->get();
// dd($elements);
$structureId = $structure->id;
$elements = StickerDetail::where(
'sticker_structure_detail_id',
$structureId
)->get();
$width = (float) $structure->sticker_width;
$height = (float) $structure->sticker_height;