From 832c482da2860e19723a114de51c21b125b936b4 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 22 Dec 2025 17:38:22 +0530 Subject: [PATCH] changed logic in sticker pdf service --- app/Services/StickerPdfService.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/Services/StickerPdfService.php b/app/Services/StickerPdfService.php index 06b2816..f4777ec 100644 --- a/app/Services/StickerPdfService.php +++ b/app/Services/StickerPdfService.php @@ -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;