$this->uuid, 'address_line' => $this->address_line, 'household_size' => $this->household_size, 'coordinates' => $this->coordinates ? [ 'lat' => $this->coordinates->latitude, 'lng' => $this->coordinates->longitude, ] : null, 'barangay' => BarangayResource::make($this->whenLoaded('barangay')), 'head' => UserResource::make($this->whenLoaded('head')), 'verification_status' => $this->verification_status, 'verified_at' => $this->verified_at?->toIso8601String(), 'rejection_reason' => $this->rejection_reason, 'proof_of_residency_uploaded' => (bool) $this->proof_of_residency_path, 'assigned_drop_off_point' => DropOffPointResource::make($this->whenLoaded('assignedDropOffPoint')), 'members' => HouseholdMemberResource::collection($this->whenLoaded('members')), 'member_count' => $this->whenCounted('members'), 'created_at' => $this->created_at?->toIso8601String(), 'updated_at' => $this->updated_at?->toIso8601String(), ]; } }