'integer', 'document_zone' => 'integer', ]; /** * Lookup zone for a country by service type. * Returns null if country not found OR zone is 0 (origin country). */ public static function lookupZone(string $country, string $serviceType): ?int { $row = self::where('country_name', $country)->first(); if (! $row) return null; $zone = $serviceType === 'document' ? $row->document_zone : $row->parcel_zone; return ($zone && $zone > 0) ? (int) $zone : null; } }