Implement household, QR sale, team helpers assignment, and helper endpoints
This commit is contained in:
@@ -22,6 +22,11 @@ class QrCodeBatchResource extends JsonResource
|
||||
'purpose' => $this->purpose,
|
||||
'target_area' => $this->whenLoaded('targetArea', fn () => $this->targetArea?->code),
|
||||
'target_store_id' => $this->target_store_id,
|
||||
'household' => $this->whenLoaded('household', fn () => $this->household ? [
|
||||
'id' => $this->household->id,
|
||||
'address' => $this->household->address_line,
|
||||
'head_name' => $this->household->head?->full_name,
|
||||
] : null),
|
||||
'created_by' => $this->whenLoaded('createdBy', fn () => $this->createdBy?->full_name),
|
||||
'printed_at' => $this->printed_at?->toIso8601String(),
|
||||
'expires_at' => $this->expires_at?->toIso8601String(),
|
||||
|
||||
Reference in New Issue
Block a user